Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a page with a gridview:
Person.aspx
ID||Name||Mail||Phone

the value of this gridview is saved in an SQL table named Person.

under the gridview there is a button(Add Task)
if you click on it, you will get to another page(Task.aspx) with 3 TextBoxes:
Title, Task, & Deadline; the value of this Textboxes is saved in an SQL table named Task.

The SQL Table Task has 4 columns Titel, Task, Deadline AND Name.

Soo long story short: I want that, if you choose a Person from the gridview an add a task the Name of the Person should be saved automatically into the SQL Table Task "Name"

What I have tried:

I think it should be SelectedIndexChanged Methode, but unfortunately, nothing comes to my mind
Posted
Updated 15-Nov-16 4:06am
v2
Comments
[no name] 15-Nov-16 8:13am    
"SelectedIndexChanged", okay and? I don't see your SelectedIndexChanged event handler anywhere in your posting. In fact, I don't see any C# code at all in your posting. Sounds more like you want us to write your code for you.
Member 12802669 15-Nov-16 8:17am    
Yes? What do you want to see the gridview??? As mentioned earlier, I dont know what code should I write.....
[no name] 15-Nov-16 8:51am    
Yes what? Yes you think we are going to write your code for you? No that is not going to happen.
"What do you want to see the gridview", no I do not what to see your gridview. I would much rather see that you have at least tried to do this yourself before coming here and begging people to do your job for you.

1 solution

Suggesting you to try something like this ASP.Net Pass or Send GridView Row Values to other Page with HyperLink[^]

once you get row information(from page 1) in next page, use that information to add into "TASK" table along with second page information

Hope this helps.
 
Share this answer
 

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