Click here to Skip to main content
15,889,795 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Retrieve the value of a control of the master page Pin
amina891-Apr-11 2:11
amina891-Apr-11 2:11 
GeneralRe: Retrieve the value of a control of the master page Pin
Not Active1-Apr-11 2:29
mentorNot Active1-Apr-11 2:29 
AnswerRe: Retrieve the value of a control of the master page Pin
gr33d1-Apr-11 4:53
gr33d1-Apr-11 4:53 
GeneralRe: Retrieve the value of a control of the master page Pin
amina894-Apr-11 12:08
amina894-Apr-11 12:08 
AnswerRe: Retrieve the value of a control of the master page Pin
Prasanta_Prince14-Apr-11 1:10
Prasanta_Prince14-Apr-11 1:10 
Questionproblem in displaying the data in datagrid` Pin
manikumar_gutti31-Mar-11 23:14
manikumar_gutti31-Mar-11 23:14 
AnswerRe: problem in displaying the data in datagrid` Pin
Deshpande.anagha1-Apr-11 0:43
Deshpande.anagha1-Apr-11 0:43 
AnswerRe: problem in displaying the data in datagrid` Pin
ktrrzn5-Apr-11 15:18
ktrrzn5-Apr-11 15:18 
Hi Mani,

in your problem, u can save your last data in datatable variable.
To use session variable,
Session["mySearchResult"] = searchResultTable;
  searchResultGridView.DataSource = searchResultTable;
  searchResultGridView.DataBind();


When u search new keyword and return data back from server, save it in temp table.
then retrieve your previous saved table from Session. and Loop through every row again
and add it into old table and re-save it to Session.
newSearchResultTable = // new search result data from server;
 searchResultTable  = Session["mySearchResult"] as DataTable;    // get back from session
 foreach(DataRow row in newSearchResultTable.Rows)               // loop every rows
 {
     searchResultTable.Rows.Add(row);                            // add to existing table
 }

 Session["mySearchResult"] = searchResultTable;                  // save back and bind again
 searchResultGridView.DataSource = searchResultTable;
 searchResultGridView.DataBind();



Hint: when u enable the "EnableViewState" to false, your selected info will not be avaliable from the server.

Hope it works,
QuestionCaptcha and Client IP Pin
Priya Prk31-Mar-11 22:57
Priya Prk31-Mar-11 22:57 
AnswerRe: Captcha and Client IP Pin
L Viljoen31-Mar-11 23:09
professionalL Viljoen31-Mar-11 23:09 
QuestionA login problem Pin
Farhad Eft31-Mar-11 20:49
Farhad Eft31-Mar-11 20:49 
AnswerRe: A login problem Pin
Venkatesh Mookkan31-Mar-11 21:01
Venkatesh Mookkan31-Mar-11 21:01 
GeneralRe: A login problem Pin
Farhad Eft31-Mar-11 21:24
Farhad Eft31-Mar-11 21:24 
AnswerRe: A login problem Pin
C#Coudou31-Mar-11 21:02
C#Coudou31-Mar-11 21:02 
GeneralRe: A login problem Pin
Farhad Eft31-Mar-11 21:23
Farhad Eft31-Mar-11 21:23 
GeneralRe: A login problem Pin
Farhad Eft31-Mar-11 21:26
Farhad Eft31-Mar-11 21:26 
GeneralRe: A login problem Pin
C#Coudou3-Apr-11 22:13
C#Coudou3-Apr-11 22:13 
AnswerRe: A login problem [modified] Pin
davidnz2-Apr-11 10:57
davidnz2-Apr-11 10:57 
AnswerRe: A login problem Pin
SamRST4-Apr-11 21:19
SamRST4-Apr-11 21:19 
QuestionProblem with a require input field DropDownList if old records have null in this field Pin
kbalias31-Mar-11 20:42
kbalias31-Mar-11 20:42 
AnswerRe: Problem with a require input field DropDownList if old records have null in this field Pin
ktrrzn5-Apr-11 15:39
ktrrzn5-Apr-11 15:39 
QuestionHelp how to get the list of printer in the client computer Pin
C#Coudou31-Mar-11 15:17
C#Coudou31-Mar-11 15:17 
AnswerRe: Help how to get the list of printer in the client computer Pin
Not Active31-Mar-11 16:59
mentorNot Active31-Mar-11 16:59 
GeneralRe: Help how to get the list of printer in the client computer Pin
C#Coudou31-Mar-11 18:07
C#Coudou31-Mar-11 18:07 
GeneralRe: Help how to get the list of printer in the client computer Pin
Not Active1-Apr-11 0:59
mentorNot Active1-Apr-11 0:59 

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.