Click here to Skip to main content
15,910,787 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to store first page's primary key key value in second pages foreign key attribute. Pin
Abhishek Sur17-Feb-10 9:48
professionalAbhishek Sur17-Feb-10 9:48 
I think you are talking about holding the page state.

There are lots of options you have to maintain the page state. But as the key is very small, you can go for Session.
Use

Session.Add("pkey", yourkey);

Now from the second page:

string mykey = Session["pkey"] as string;

I think you will find the data that is stored during submission of Page 1.
Wink | ;)
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

InfoBox Visual Studio 2010 Extension
Windows7 API Code Pack
Simplify Code Using NDepend

GeneralRe: how to store first page's primary key key value in second pages foreign key attribute. Pin
jattscorpion17-Feb-10 12:31
jattscorpion17-Feb-10 12:31 
QuestionHow to set the sender address (Field From) usin MAPI Pin
nahelpa17-Feb-10 6:41
nahelpa17-Feb-10 6:41 
QuestionEvent on asp:calendar Pin
_ASPAle_17-Feb-10 6:06
_ASPAle_17-Feb-10 6:06 
AnswerRe: Event on asp:calendar Pin
Brij17-Feb-10 19:22
mentorBrij17-Feb-10 19:22 
GeneralRe: Event on asp:calendar Pin
_ASPAle_18-Feb-10 0:04
_ASPAle_18-Feb-10 0:04 
QuestionNeed some assistance with adding a datarow to a datatable Pin
Will Talley17-Feb-10 5:34
Will Talley17-Feb-10 5:34 
AnswerRe: Need some assistance with adding a datarow to a datatable Pin
Abhishek Sur17-Feb-10 5:59
professionalAbhishek Sur17-Feb-10 5:59 
GeneralRe: Need some assistance with adding a datarow to a datatable Pin
Will Talley18-Feb-10 2:38
Will Talley18-Feb-10 2:38 
AnswerRe: Need some assistance with adding a datarow to a datatable Solved! Pin
Will Talley18-Feb-10 4:58
Will Talley18-Feb-10 4:58 
Questionbinding data to a data list Pin
arindam201017-Feb-10 5:18
arindam201017-Feb-10 5:18 
AnswerRe: binding data to a data list Pin
Abhishek Sur17-Feb-10 6:02
professionalAbhishek Sur17-Feb-10 6:02 
GeneralRe: binding data to a data list Pin
arindam201017-Feb-10 6:56
arindam201017-Feb-10 6:56 
GeneralRe: binding data to a data list Pin
Abhishek Sur17-Feb-10 9:44
professionalAbhishek Sur17-Feb-10 9:44 
AnswerRe: binding data to a data list Pin
Anurag Gandhi17-Feb-10 6:37
professionalAnurag Gandhi17-Feb-10 6:37 
GeneralRe: binding data to a data list Pin
arindam201017-Feb-10 6:54
arindam201017-Feb-10 6:54 
GeneralRe: binding data to a data list Pin
Anurag Gandhi17-Feb-10 15:52
professionalAnurag Gandhi17-Feb-10 15:52 
QuestionWeb Service Protection with Client Certificates Pin
captainone17-Feb-10 3:55
captainone17-Feb-10 3:55 
AnswerRe: Web Service Protection with Client Certificates Pin
Ennis Ray Lynch, Jr.17-Feb-10 5:19
Ennis Ray Lynch, Jr.17-Feb-10 5:19 
GeneralRe: Web Service Protection with Client Certificates Pin
captainone18-Feb-10 17:46
captainone18-Feb-10 17:46 
GeneralRe: Web Service Protection with Client Certificates Pin
captainone18-Feb-10 18:19
captainone18-Feb-10 18:19 
GeneralRe: Web Service Protection with Client Certificates Pin
Ennis Ray Lynch, Jr.19-Feb-10 4:51
Ennis Ray Lynch, Jr.19-Feb-10 4:51 
GeneralRe: Web Service Protection with Client Certificates Pin
captainone19-Feb-10 7:06
captainone19-Feb-10 7:06 
QuestionGridView Image button Pin
Abbas_here17-Feb-10 3:55
Abbas_here17-Feb-10 3:55 
AnswerRe: GridView Image button Pin
Abhishek Sur17-Feb-10 6:05
professionalAbhishek Sur17-Feb-10 6:05 

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.