hi!
i wanted to get the posted values from other page. i dont want to use the quesrrystrng. is there a way todo this kinda process. thanks in advance.
Printable View
hi!
i wanted to get the posted values from other page. i dont want to use the quesrrystrng. is there a way todo this kinda process. thanks in advance.
I've not actually done this myself but it should be pretty easy.
Something like
and then on your recieving page (webpage.aspx in this case)Code:<form id="Form1" action="webpage.aspx" method=post runat="server">
Where "txtText" is a control on your form.Code:Dim strText As String
strText = Request.Form("txtText")
I'm only guessing, so if you try it let me know if it's right, cheers.
Or you could always store the values in session variables which is what i tend to do.
it doesnt work with .aspx pages. i tried it but i found the other way
Server.Transfer("target.aspx", True)
if u use true the values are preserved. but i am getting an error
"The View State is invalid for this page and might be corrupted"
if u guys know about this please help
thanks
get the value from the database because u must b edoing authentication and u have a context.user.identity value then get the value from there.I hope your contect.user,identity.name is primary value.try this..
Hey ...
Have you thought of storing the data in session variables or cookies ... idealy session variables
Regards,
Harris :wave: