Click here to Skip to main content
15,912,021 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: BUG?- Username randomly appearing in Text Form Control (Only in Firefox) Pin
RajeevKumarSharma1-Jun-09 23:12
RajeevKumarSharma1-Jun-09 23:12 
QuestionQuestion about connection strings to an Oracle DB Pin
Nostrom01-Jun-09 12:32
Nostrom01-Jun-09 12:32 
AnswerRe: Question about connection strings to an Oracle DB Pin
Colin Angus Mackay1-Jun-09 20:59
Colin Angus Mackay1-Jun-09 20:59 
QuestionAuthenticate users Pin
hahii1-Jun-09 11:05
hahii1-Jun-09 11:05 
AnswerRe: Authenticate users Pin
Christian Graus1-Jun-09 11:29
protectorChristian Graus1-Jun-09 11:29 
AnswerRe: Authenticate users Pin
Colin Angus Mackay1-Jun-09 13:36
Colin Angus Mackay1-Jun-09 13:36 
QuestionInsert statement (please read again.) Pin
hahii1-Jun-09 10:57
hahii1-Jun-09 10:57 
AnswerRe: Insert statement (please read again.) Pin
Christian Graus1-Jun-09 11:30
protectorChristian Graus1-Jun-09 11:30 
AnswerRe: Insert statement (please read again.) Pin
Colin Angus Mackay1-Jun-09 13:32
Colin Angus Mackay1-Jun-09 13:32 
AnswerRe: Insert statement (please read again.) Pin
Colin Angus Mackay1-Jun-09 13:38
Colin Angus Mackay1-Jun-09 13:38 
Questionlogin controls Pin
hahii1-Jun-09 10:50
hahii1-Jun-09 10:50 
AnswerRe: login controls Pin
Christian Graus1-Jun-09 11:30
protectorChristian Graus1-Jun-09 11:30 
QuestionSending values of GridView, Datatable in asp.net in session Pin
ashutosh_karna1-Jun-09 10:29
ashutosh_karna1-Jun-09 10:29 
AnswerRe: Sending values of GridView, Datatable in asp.net in session Pin
Christian Graus1-Jun-09 11:31
protectorChristian Graus1-Jun-09 11:31 
QuestionGridView Editing Pin
MacIntyre1-Jun-09 10:18
MacIntyre1-Jun-09 10:18 
AnswerRe: GridView Editing Pin
ToddHileHoffer1-Jun-09 10:26
ToddHileHoffer1-Jun-09 10:26 
QuestionHow to create HyperLink for field in Crystal CrossTab report ? Pin
David Mujica1-Jun-09 10:14
David Mujica1-Jun-09 10:14 
AnswerRe: How to create HyperLink for field in Crystal CrossTab report ? Pin
Member 204565326-Feb-11 9:22
Member 204565326-Feb-11 9:22 
QuestionInsert into table Pin
hahii1-Jun-09 10:14
hahii1-Jun-09 10:14 
AnswerRe: Insert into table Pin
David Mujica1-Jun-09 10:20
David Mujica1-Jun-09 10:20 
Questionmembership and Roles Pin
hahii1-Jun-09 9:02
hahii1-Jun-09 9:02 
QuestionHow to pass & retrieve gridview as session variable. Pin
ashutosh_karna1-Jun-09 8:18
ashutosh_karna1-Jun-09 8:18 
Hello Friends, I am new to asp.net , so please help me out.

I have made a small gridview ( without any database connectivity) on page(Default.aspx). The user fills up one of the column with numeric data & clicks a button & control is transferred to another
page(Results.aspx).

Can anybody tell me how can I pass the whole gridview as session varaible & then retrieve it in another page & further retrieve the column filled up by the user.

Code in "Result.aspx"
protected void Page_Load(object sender, EventArgs e)
{
DataView dv1 = new DataView();
DataTable dt1 = new DataTable();
Session["A"] = dv1.Table.Columns["A"];

}

protected void TextBox1_TextChanged(object sender, EventArgs e)
{
// double[] data = new double[Session["A"]]; // WRONG CODE . PLEASE CORRECT IT
// WRITE CODE FOR RETRIEVING COLUMN THAT USER HAS FILLED UP IN GRIDVIEW IN default.aspx
}



Code in "Default.aspx" :
protected void Button1_Click(object sender, EventArgs e)
{
Server.Transfer("NewPage.aspx");
// HOW TO PASS GRIDVIEW ALONG WITH USER DATA
}
AnswerRe: How to pass & retrieve gridview as session variable. Pin
Ibrahim Bello1-Jun-09 9:11
Ibrahim Bello1-Jun-09 9:11 
GeneralRe: How to pass & retrieve gridview as session variable. Pin
Not Active1-Jun-09 9:32
mentorNot Active1-Jun-09 9:32 
AnswerRe: How to pass & retrieve gridview as session variable. Pin
Not Active1-Jun-09 9:25
mentorNot Active1-Jun-09 9:25 

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.