Writing to Database

  • Thread starter Thread starter Always Learning
  • Start date Start date
A

Always Learning

Hi Guys,

I am still searching for an answer to this question. Can you help me?

If I have a field on a .aspx form, the classic Textbox1. How do I send the
Textbox1.Text to an .Asp page and assign it to say rs("Name") variable.
Because I have used Request.Redirect("writetodb.asp") in my button click
event, I thought I could use
rs("Name") = request.form("Textbox1") but this does not work.

I am using this method because I am trying to create a new .net input form
based on an old .asp form and then calling the original .asp page to write
to the database. If I could just convert the .net form variables to the
variables I used in my original .Asp page all would be ok.

Any ideas would be greatly appreciated.

Best Regards,

Steve Wilson.
 
Hi Gav,
Thanks for the response.
Is there no way to reference the request form variables like classic asp?

Best regards,

Steve Wilson.
 
I'm not sure about that, sorry. I've not done it from aspx to asp but I have
from aspx to aspx and the only ways I know to do it is, to either put it in
the URL as said before... or to use session variables.

Sorry I can't help you more.

Gav
 
Steve,

you can not use the session variable in the asp page... what is wrong with
putting it in the url of the page?

The only way I can see you achieving what you want is by either sending the
variables in the url like I mentioned before or better yet why don't you
write a new web service to go with your new web application and get that to
write the variables to the database. It is easy enough to do.

Gavin
 
Back
Top