Click here to Skip to main content
15,886,724 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Display pop up data Pin
Peace ON19-Jul-10 22:45
Peace ON19-Jul-10 22:45 
GeneralRe: Display pop up data Pin
SatyaKeerthi1519-Jul-10 23:08
SatyaKeerthi1519-Jul-10 23:08 
QuestionRe: Display pop up data Pin
Peace ON19-Jul-10 23:50
Peace ON19-Jul-10 23:50 
AnswerRe: Display pop up data Pin
SatyaKeerthi1520-Jul-10 0:34
SatyaKeerthi1520-Jul-10 0:34 
AnswerRe: Display pop up data Pin
Peace ON20-Jul-10 1:23
Peace ON20-Jul-10 1:23 
GeneralRe: Display pop up data Pin
SatyaKeerthi1520-Jul-10 1:26
SatyaKeerthi1520-Jul-10 1:26 
AnswerRe: Display pop up data Pin
Peace ON20-Jul-10 1:42
Peace ON20-Jul-10 1:42 
GeneralRe: Display pop up data Pin
SatyaKeerthi1520-Jul-10 2:44
SatyaKeerthi1520-Jul-10 2:44 
AnswerRe: Display pop up data Pin
Peace ON20-Jul-10 3:56
Peace ON20-Jul-10 3:56 
GeneralRe: Display pop up data Pin
SatyaKeerthi1520-Jul-10 18:36
SatyaKeerthi1520-Jul-10 18:36 
QuestionPost Date Alert Issue in Localization Pin
Amit Patel198519-Jul-10 22:34
Amit Patel198519-Jul-10 22:34 
AnswerRe: Post Date Alert Issue in Localization Pin
Peace ON19-Jul-10 22:54
Peace ON19-Jul-10 22:54 
GeneralRe: Post Date Alert Issue in Localization Pin
Amit Patel198519-Jul-10 23:22
Amit Patel198519-Jul-10 23:22 
GeneralRe: Post Date Alert Issue in Localization Pin
Peace ON19-Jul-10 23:59
Peace ON19-Jul-10 23:59 
QuestionParallels Plesk Panel API RPC Protocol Pin
Eaverae19-Jul-10 22:03
Eaverae19-Jul-10 22:03 
QuestionHide ASP.Net Web User Control (.ascx) using Javascript/Code Behind Pin
NTheOne19-Jul-10 20:03
NTheOne19-Jul-10 20:03 
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 

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.