Click here to Skip to main content
15,884,986 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hide ASP.Net Web User Control (.ascx) using Javascript/Code Behind [modified] Pin
Tej Aj19-Jul-10 20:14
Tej Aj19-Jul-10 20:14 
GeneralRe: Hide ASP.Net Web User Control (.ascx) using Javascript/Code Behind Pin
NTheOne19-Jul-10 21:05
NTheOne19-Jul-10 21:05 
QuestionProblem with Xml and Xsd Pin
AndyASPVB19-Jul-10 9:54
AndyASPVB19-Jul-10 9:54 
AnswerRe: Problem with Xml and Xsd Pin
brunoseixas19-Jul-10 10:07
brunoseixas19-Jul-10 10:07 
AnswerRe: Problem with Xml and Xsd Pin
Ennis Ray Lynch, Jr.19-Jul-10 10:12
Ennis Ray Lynch, Jr.19-Jul-10 10:12 
GeneralRe: Problem with Xml and Xsd Pin
AndyASPVB19-Jul-10 10:17
AndyASPVB19-Jul-10 10:17 
GeneralRe: Problem with Xml and Xsd Pin
Ennis Ray Lynch, Jr.19-Jul-10 10:27
Ennis Ray Lynch, Jr.19-Jul-10 10:27 
QuestionNeed to get codwebehind access to a new GridView row inserted using JQuery Pin
Adam Brown 319-Jul-10 7:35
Adam Brown 319-Jul-10 7:35 
I have a databound GridView that I populate from the codebehind and the data appears correctly on the form. The user has the option to add another row to the GridView from data selected on a popup window. I successfully added this new row to the GridView using jQuery. Here is the code I used to copy the last row in the GridView, and then I updated the last row cell by cell after that.

$('#<%=grdUsers.ClientID%> tbody>tr:last').clone(true).insertAfter('#<%=grdUsers.ClientID%> tbody>tr:last');
$('#<%=grdUsers.ClientID%> tbody>tr:last').find("td:nth-child(1)").text(strFirstName);
$('#<%=grdUsers.ClientID%> tbody>tr:last').find("td:nth-child(2)").text(strLastName);


Here is how I am trying to loop through rows in codebehind:

foreach (GridViewRow row in grdUsers.Rows)
{
}


The problem is that when I try to access the contents of the GridView from the codebehind after postback, I do not have access to the row I added via jQuery on the client side. The row does not appear in the grdUsers.Rows collection.

What is the best way to get this data over to the server side so I can access it and save the data in session using my standard save routines?
AnswerRe: Need to get codwebehind access to a new GridView row inserted using JQuery [modified] Pin
Not Active19-Jul-10 8:48
mentorNot Active19-Jul-10 8:48 
QuestionClick() event not working in firefox Pin
kjsl2k919-Jul-10 3:47
kjsl2k919-Jul-10 3:47 
AnswerRe: Click() event not working in firefox Pin
T M Gray19-Jul-10 4:19
T M Gray19-Jul-10 4:19 
GeneralRe: Click() event not working in firefox Pin
kjsl2k919-Jul-10 5:42
kjsl2k919-Jul-10 5:42 
AnswerRe: Click() event not working in firefox Pin
Ennis Ray Lynch, Jr.19-Jul-10 4:46
Ennis Ray Lynch, Jr.19-Jul-10 4:46 
AnswerRe: Click() event not working in firefox Pin
Not Active19-Jul-10 5:36
mentorNot Active19-Jul-10 5:36 
Questionupdate table with select statement Pin
Amit Patel198519-Jul-10 0:48
Amit Patel198519-Jul-10 0:48 
AnswerRe: update table with select statement Pin
Prosanta Kundu online19-Jul-10 1:45
Prosanta Kundu online19-Jul-10 1:45 
AnswerRe: update table with select statement Pin
Peace ON19-Jul-10 2:03
Peace ON19-Jul-10 2:03 
QuestionUnable to connect to any of the specified MySQL hosts with asp.net Pin
Amit Patel198518-Jul-10 23:57
Amit Patel198518-Jul-10 23:57 
AnswerRe: Unable to connect to any of the specified MySQL hosts with asp.net Pin
Ankur\m/19-Jul-10 3:16
professionalAnkur\m/19-Jul-10 3:16 
QuestionHow to use tree view control? Pin
sazib18-Jul-10 21:02
sazib18-Jul-10 21:02 
AnswerRe: How to use tree view control? Pin
Peace ON18-Jul-10 21:04
Peace ON18-Jul-10 21:04 
AnswerRe: How to use tree view control? Pin
Prosanta Kundu online18-Jul-10 23:30
Prosanta Kundu online18-Jul-10 23:30 
QuestionDynamic Controls Problem Pin
vishnukamath18-Jul-10 20:12
vishnukamath18-Jul-10 20:12 
AnswerRe: Dynamic Controls Problem Pin
Prosanta Kundu online18-Jul-10 20:38
Prosanta Kundu online18-Jul-10 20:38 
GeneralRe: Dynamic Controls Problem Pin
vishnukamath18-Jul-10 20:51
vishnukamath18-Jul-10 20:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.