A
A
AcidBat2015-07-16 00:34:07
ASP.NET
AcidBat, 2015-07-16 00:34:07

How to extract form data to aspx.cs file?

Given: two files, say default.aspx and default.aspx.cs. The default.aspx page has a form (with id, say, form1) with various inputs and a submit button.
Task: by clicking on the submit button, transfer all the entered information to the default.aspx.cs file and save it there as variables (each input has its own variable).
How to implement it?
PS I am writing a project in pure ASP.NET 4.5.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Therapyx, 2015-07-16
@AcidBat

I started writing a bunch of text, but I realized that I would be writing tutu for another half an hour, giving my example xD And I found a good guide for you.
www.codeproject.com/Articles/8055/Transferring-pag...
I did it this way, there is a button in the gridview. On clicking it, it takes the row ID. And sends to another page where it is caught. And based on this ID of this table, you can make any SQL queries, saving the information where necessary. With regular text fields, it should be easier :)
p.s. Naturally, all these manipulations should be in the codebehind c#. If you fail, I can give examples on some metas.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question