Click here to Skip to main content
16,019,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to insert 2 values in a table which i am passing to the page using query string.
i am using the formview control.
so these query string values need to be bound to the 2 ids.

is der a way to acess the textboxes i was thinking of using the oninserting event to modify the text boxes but i m 99%sure its stupid.:\

Can you suggest how smart ppl do it?
Posted

1 solution

That would be a very bad idea overall because it goes against the web basics. If you would pass and store these values using a query string, it would do so every time the webpage is requested. If the user would bookmark that web page it would update the values every time without the user understanding why they are changed back every time.

Have a look at this link for more info on the difference between GET and POST:
http://www.cs.tut.fi/~jkorpela/forms/methods.html[^]

Good luck!
 
Share this answer
 
Comments
navanit_kamble 6-Oct-11 12:36pm    
Alright i have now made a new class having those 2 fields as static variabels.
How do i do my insert oprtn now.
Thanks for that link :D
E.F. Nijboer 6-Oct-11 12:59pm    
You mean simlpy updating the database? Check these links:
http://www.codeproject.com/KB/database/simpledbreadwrite.aspx
http://www.codeproject.com/KB/database/mysqlinaspnet.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900