|
there are 4 text boxes in one web form. how to pass values entered in those textboxes to other web form by using query string method. please help .i have searched everywhere on the internet. thanks in advance
In the document I provided a link to, the first section is "To use a query string to pass information". Follow those instructions, using a different field name for each text box.
My question is : I am using 4 text boxes in one web form. when button is click all the data in the text boxes should pass to other web form as a text.
I don't understand what you mean by "as a text", but you might find helpful information in the MSDN document that goes with this sample: http://msdn.microsoft.com/en-u s/library/6c3yc kfw.aspx
Nothing happens when I press the "Use HttpPost" button in IE9 but it works well in firefox 13. I checked the source code of both of the two browsers, then I found that IE9 missed the javascript postback functions, why? Is this a bug of IE9?
IE9 works fine with "Use HttpPost" for me. Could your IE9 have JavaScript disabled? If that's not it, you might try opening a thread at forums.asp.net or stackoverflow.com, as the problem appears to be in IE9 configuration rather than the sample code.
public string DataToSend { get { return DataToSendTextBox.Text; } }
This illustrates the public properties method of passing data. See PublicPropertiesPage.aspx where the data in the property is received.
Hi, How do you pass the querystring if you are using master pages and content pages for example, i have a master page and two content pages, the first page which is a contentpage sends a response.redirect to the second content page, using your example doesn't show the query string on the master pages url?.
When passing data from one content page to another content page, master page is not in scene. Secondly when we use Response.Redirect() method, we need to pass the query string like string url="Second.asp x?fieldname1=da ta1&fieldname2= data2 Response.Redire ct(ur); We can also use Server.Tranfer( ) method instead of redirecting like this. It automatically passes the data in current content page to next content page. We can use Hidden Fields/Cookies/ Session variables to hold data in second page and use for processing further.