|
-
Oct 2nd, 2003, 09:50 AM
#1
Thread Starter
Member
Request.form method
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.
-
Oct 2nd, 2003, 10:07 AM
#2
I've not actually done this myself but it should be pretty easy.
Something like
Code:
<form id="Form1" action="webpage.aspx" method=post runat="server">
and then on your recieving page (webpage.aspx in this case)
Code:
Dim strText As String
strText = Request.Form("txtText")
Where "txtText" is a control on your form.
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.
Last edited by Fishcake; Oct 2nd, 2003 at 10:11 AM.
-
Oct 2nd, 2003, 10:25 AM
#3
Thread Starter
Member
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
-
Oct 7th, 2003, 06:00 AM
#4
Hyperactive Member
u try this way
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..
-
Oct 8th, 2003, 04:52 AM
#5
Member
Hey ...
Have you thought of storing the data in session variables or cookies ... idealy session variables
Regards,
Harris
You'll get life just for once so don't waste it .......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|