Click here to Skip to main content
15,299,255 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wrote a simple code to submit value :

XML
<form action="register.aspx" method="POST">
   <input type="text" name="name"><br/>
   <input type="submit" name="submit">
</form>



But I have to write a code to get the posted value in register.aspx file and have to insert it into database.

How I can get this value in register.aspx page????

Please help me to ahead.

Thanks in advance......
Posted

   
Comments
Аslam Iqbal 22-Apr-14 5:41am
   
nice link
Ajith K Gatty 22-Apr-14 6:06am
   
Ha ha. I just Googled it on behalf of rayhan12345. Nothing else. Anyways Thanks. :p
rayhan12345 22-Apr-14 5:57am
   
thanks a lot
Ajith K Gatty 22-Apr-14 6:04am
   
Welcome :)
Use
ASP.NET
<asp:Button..../>
instead of
HTML
<input..../>
.
   
Comments
rayhan12345 22-Apr-14 5:32am
   
but then... ???
Аslam Iqbal 22-Apr-14 5:38am
   
In visual studio, view the page in design view, double click on button. That will create a method in associate aspx.cs file. There write your C# code.

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