I am using master page a header(user control).I am using one dropdownlist in content page and a button in header .i need two form tags run @ server that is not possible.
I am accessing the value from of textbox on header through public property, I need this value for search purpose, on codebehind how I can achieve this is there any other way?

Recommended Answers

All 2 Replies

you can use oops concept...first find header in your page and then find its controls

You will need to be careful where you use the findControl though. If you are using it in Page_Load expect difficulties as the control may not have been created yet. I had this problem once and I had to force the control to load before using findControl. Just FYI.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.