Writing to Database

  • Thread starter Always Learning
  • 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.
 
A

Always Learning

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

Best regards,

Steve Wilson.
 
G

Gav

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
 
G

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top