I have a master page with a treeview and I want to pass the onlick node value to a select statement that exists in the content page(in an sqldatasource control).
How can I do that?
skiabox
0
Light Poster
Recommended Answers
Jump to PostHi there
Try something like this
Dim MyTxt As TextBox MyTxt = CType(Page.Master.FindControl("ContentPlaceHolder1").FindControl("TextBox2"), TextBox) CType(Page.Master.FindControl("ContentPlaceHolder1").FindControl("TextBox1"), TextBox).Text = MyTxt.Text CType(Page.Master.FindControl("ScriptManager1"), ScriptManager).SetFocus(MyTxt.ClientID) ' ''Me.ScriptManager1.SetFocus(MyTxt.ClientID)
hope this helps you
All 3 Replies
reach_yousuf
2
Junior Poster
sknake
1,622
Senior Poster
Featured Poster
IdanS
12
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.