How to pass the Textbox value to next page in string builder

Posted by Jenniffer under ASP.NET on 12/31/2014 | Points: 10 | Views : 1543 | Status : [Member] | Replies : 1
I have attached my code. In tat aspx.cs page, i have used String-builder for creating seperate data column if i click the button tat s anchor tag, i want to redirect the page to another with the textbox value + Menuid, Prodid, ProdListid. How it possible?? Please help me out from this.

Thanks & Regards
JENI



Responses

Posted by: Sheonarayan on: 1/1/2015 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You can have asp:LinkButton that appears as anchor tag but executes a server side method. On click of this link in the server side method, save all that you want to pass to another page into session object and in another page at page_load or wherever retrieve from session.

Instead of session, you can use Cookies too however that is not suggested as some browser may have cookie disabled. Alternatively, you can pass as querystring also however your data gets exposed to the url.

Hope this helps.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Jenniffer, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response