Master Page and Forms in ASP.net
-
Dear All. I am working on ASP.net 2.0 and using Master Page in which I used one user control and using a text box and button control for searching on the top. The logo.ascx files which used in Master page is as follows:
Now I want to take the text in the text box to another aspx page please tell me a better suggestion. <%@ previous page> does not works in User Controls. Also I am confused with
tag how to use it in the Master there is a tag which is mandatory. Then I want to fetch the data of textbox to use as search criteria in my SQL Query. Please help me I have tries all possible ways I can do. But I did not got any proper solution. I need it urgently. Thanks in Advance.
-
Dear All. I am working on ASP.net 2.0 and using Master Page in which I used one user control and using a text box and button control for searching on the top. The logo.ascx files which used in Master page is as follows:
Now I want to take the text in the text box to another aspx page please tell me a better suggestion. <%@ previous page> does not works in User Controls. Also I am confused with
tag how to use it in the Master there is a tag which is mandatory. Then I want to fetch the data of textbox to use as search criteria in my SQL Query. Please help me I have tries all possible ways I can do. But I did not got any proper solution. I need it urgently. Thanks in Advance.
-
Dear All. I am working on ASP.net 2.0 and using Master Page in which I used one user control and using a text box and button control for searching on the top. The logo.ascx files which used in Master page is as follows:
Now I want to take the text in the text box to another aspx page please tell me a better suggestion. <%@ previous page> does not works in User Controls. Also I am confused with
tag how to use it in the Master there is a tag which is mandatory. Then I want to fetch the data of textbox to use as search criteria in my SQL Query. Please help me I have tries all possible ways I can do. But I did not got any proper solution. I need it urgently. Thanks in Advance.
You could create a property on your master page to return the text of the text box and then you can reference this using MyMaster. (or something like that - can't remember off the top of my head).
-
You could create a property on your master page to return the text of the text box and then you can reference this using MyMaster. (or something like that - can't remember off the top of my head).
Please Reply with proper example because I have these things already, creating property on master page, creating simple form without runat tag and previous page property and postback url things but I couldn't make it working so I need an exact working model. Thanks