1

I made an asp.net gridview using jQuery to select a row with css and I want to send this row to the server.

I've used a Query String but is there a better method to send the row to the server ?

sreejithsdev
  • 1,202
  • 12
  • 26
  • You can invoke a serverside function through jquery. [See this Answers][1] [1]: http://stackoverflow.com/questions/886903/calling-asp-net-server-side-method-via-jquery?rq=1 – sreejithsdev Jan 05 '13 at 19:15

2 Answers2

0

You could POST the row to the page that needs to deal with it.

Take a look at this answer.

Community
  • 1
  • 1
Frederik.L
  • 5,522
  • 2
  • 29
  • 41
0

Your approach seems okay if you need to pass everything, including the markup; otherwise, you can simply take the values in the cells of the row, and put them in hidden input elements and then post the form. As long as you give names to the hidden elements, you can easily retrieve them using:

Request.Params["InputElementName"]
Icarus
  • 63,293
  • 14
  • 100
  • 115