Click here to Skip to main content
15,927,694 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTab Container Ajax Control Pin
gautamamit87-Mar-09 0:07
gautamamit87-Mar-09 0:07 
Questionhow to disable Back Button in Internet Browser Pin
ballameharmurali7-Mar-09 0:05
ballameharmurali7-Mar-09 0:05 
AnswerRe: how to disable Back Button in Internet Browser Pin
ABitSmart7-Mar-09 0:32
ABitSmart7-Mar-09 0:32 
AnswerRe: how to disable Back Button in Internet Browser Pin
Jitendra R Wadhwani8-Mar-09 2:41
Jitendra R Wadhwani8-Mar-09 2:41 
QuestionRedirect from one ASP.NET mobile page to another Pin
ReachMe@CodeProject6-Mar-09 23:17
ReachMe@CodeProject6-Mar-09 23:17 
AnswerRe: Redirect from one ASP.NET mobile page to another Pin
Yusuf7-Mar-09 9:11
Yusuf7-Mar-09 9:11 
Questionhow to insert selected rows of a gridview with multiple pages to a database in one click Pin
Poven6-Mar-09 22:23
Poven6-Mar-09 22:23 
AnswerRe: how to insert selected rows of a gridview with multiple pages to a database in one click Pin
Jitendra R Wadhwani8-Mar-09 2:53
Jitendra R Wadhwani8-Mar-09 2:53 
Hello,

for your issue, you will have to include a few lines of code in your web-page.

( I AM ASSUMING YOU ARE USING ASP.NET 2.0 WITH C#. BELOW LOGIC REMAINS SAME WITH ANY FRAMEWORK AND ANY LANGUAGE)

1.) include a collection like object and make it a session variable.
e.g. Session["SelectedIds"] = Array[20];

2.) In this Array[20] you will need to keep including the " ROW IDENTIFIERS " to keep track of the row.

3.) While you are on page 1 of the gridview, let the user select whichever rows he wants, and then trap the event when he clicks on " page 2" or the "next button" of the gridview.

4.) here inside this event, Find the SelectedRows of the grid through the gridviews properties or iterate through the gridview control row-by-row to get to the checkbox control and check if its Checked property is true. If yes, the " row identifier" of this row to which this selected checkbox belongs should be stored in the Array[20].

5.) Finally store this Array[20] in the session.
6.) Repeat the above process for each navigation within the gridview pagination.

7.) finally on click of some "Submit" like button give a call to your Database and write a stored proc wherein you can pass this collection of selected ids, Array[20], and do the relevant processing to select the requried columns from the database and insert into the final table in the database as desired.

Let me know if this helps.

PLEASE DO NOT FORGET TO MARK AS ANSWER IF FOUND USEFUL/RELEVANT, SO THAT OTHERS CAN FIND IT EASILY.

Software Developer,
Pune,
India

QuestionJavaScript MessageBox With "Yes" and "No" Button!!! Pin
Sr...Frank6-Mar-09 21:55
Sr...Frank6-Mar-09 21:55 
AnswerRe: JavaScript MessageBox With "Yes" and "No" Button!!! Pin
Vasudevan Deepak Kumar6-Mar-09 21:59
Vasudevan Deepak Kumar6-Mar-09 21:59 
GeneralRe: JavaScript MessageBox With "Yes" and "No" Button!!! Pin
Sr...Frank6-Mar-09 23:32
Sr...Frank6-Mar-09 23:32 
QuestionHow to keep url static like" www.xyz.com" even on opening different links of the site. [modified] Pin
Dev S6-Mar-09 20:51
Dev S6-Mar-09 20:51 
AnswerRe: How to keep url static like" www.xyz.com" even on opening different links of the site. Pin
Vasudevan Deepak Kumar6-Mar-09 21:32
Vasudevan Deepak Kumar6-Mar-09 21:32 
AnswerRe: How to keep url static like" www.xyz.com" even on opening different links of the site. Pin
dan!sh 6-Mar-09 21:32
professional dan!sh 6-Mar-09 21:32 
QuestionDotnet nuke very urgent Pin
Maxy556-Mar-09 20:42
Maxy556-Mar-09 20:42 
AnswerRe: Dotnet nuke very urgent Pin
Vasudevan Deepak Kumar6-Mar-09 21:34
Vasudevan Deepak Kumar6-Mar-09 21:34 
QuestionAssigning DataSet value to dropdownlist Pin
Praneeth Babu K6-Mar-09 20:16
Praneeth Babu K6-Mar-09 20:16 
AnswerRe: Assigning DataSet value to dropdownlist Pin
Calin Tatar7-Mar-09 0:07
Calin Tatar7-Mar-09 0:07 
AnswerRe: Assigning DataSet value to dropdownlist Pin
Dev S7-Mar-09 0:10
Dev S7-Mar-09 0:10 
AnswerRe: Assigning DataSet value to dropdownlist Pin
srinivasan_sk7-Mar-09 10:19
srinivasan_sk7-Mar-09 10:19 
QuestionStoppnig video playing in IFrame Pin
SunithaNallana6-Mar-09 19:29
SunithaNallana6-Mar-09 19:29 
QuestionSave and Delete Data Pin
Sarfaraj Ahmed6-Mar-09 14:56
Sarfaraj Ahmed6-Mar-09 14:56 
AnswerRe: Save and Delete Data Pin
Yusuf6-Mar-09 16:04
Yusuf6-Mar-09 16:04 
GeneralRe: Save and Delete Data Pin
Sarfaraj Ahmed7-Mar-09 4:10
Sarfaraj Ahmed7-Mar-09 4:10 
GeneralRe: Save and Delete Data Pin
sohighthesky8-Mar-09 22:42
sohighthesky8-Mar-09 22:42 

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.