Click here to Skip to main content
16,008,010 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how i can update web application on client hosting server Pin
Vasudevan Deepak Kumar3-Jun-08 20:32
Vasudevan Deepak Kumar3-Jun-08 20:32 
GeneralRe: how i can update web application on client hosting server Pin
eyeseetee3-Jun-08 21:42
eyeseetee3-Jun-08 21:42 
GeneralRe: how i can update web application on client hosting server Pin
wasimsharp4-Jun-08 0:52
wasimsharp4-Jun-08 0:52 
QuestionHow can I get the HTML of a ASP control before rendering? Pin
Venkatesh Mookkan3-Jun-08 18:31
Venkatesh Mookkan3-Jun-08 18:31 
AnswerRe: How can I get the HTML of a ASP control before rendering? Pin
RajeevKumarSharma3-Jun-08 18:47
RajeevKumarSharma3-Jun-08 18:47 
GeneralRe: How can I get the HTML of a ASP control before rendering? Pin
Venkatesh Mookkan3-Jun-08 19:14
Venkatesh Mookkan3-Jun-08 19:14 
GeneralRe: How can I get the HTML of a ASP control before rendering? Pin
eyeseetee3-Jun-08 21:40
eyeseetee3-Jun-08 21:40 
QuestionPassing of data from one form to another Pin
Nicole_H3-Jun-08 11:39
Nicole_H3-Jun-08 11:39 
My project runs like this, from page1 I would get the username entered into the textbox.. In page2, I'll be displaying the name of the user based from his username.. Page2 also includes some buttons (like frmPersonalInfo, frmMedicalHistory, etc) that when the user clicks, it will lead them to a more detailed information..

But for example, I have another page (page2.1) and I want to get some value from page2.. It doesn't display anything at all when I'm on page2.1

I'm using a database for data access..

The main purpose of the data access from one form to another is for me to be able to create sql queries..



Code:

Page1

string pcode = txtUser.Text.ToString();
Response.Redirect("frmPage2.aspx?PCode=" + pcode);


Page2

protected void frmPage2_Activate(object sender, EventArgs e)
{
string patientcode = Request.QueryString["PCode"].ToString();

}

protected void btnPersonalInfo_Click(object sender, EventArgs e)
{
Response.Redirect("frmPage2.1.aspx?Code=" + patientcode);
}



Page2.1

protected void frmPag2.1_Activate(object sender, EventArgs e)
{
string code = Request.QueryString["Code"].ToString();

lbl.Text = code;

}



The passing of value from page1 to page2 actually works...

In page2.1, I used a label for try purposes only (lbl).. I just wanted to know if I could display the data there.

But when I run the program, it doesn't display anything eventhough the visibility is set to true..

I'm thinking that maybe because the "patientcode" variable in page2 was initialized not as a global variable.. So, maybe that's why page2.1 displays a null value??

What can you suggest for solution?

Thank you!
AnswerRe: Passing of data from one form to another Pin
Jacob Dixon3-Jun-08 16:26
Jacob Dixon3-Jun-08 16:26 
QuestionOk, this is driving me insane Pin
Mustafa Ismail Mustafa3-Jun-08 8:20
Mustafa Ismail Mustafa3-Jun-08 8:20 
AnswerRe: Ok, this is driving me insane Pin
Yusuf3-Jun-08 9:23
Yusuf3-Jun-08 9:23 
GeneralRe: Ok, this is driving me insane Pin
Mustafa Ismail Mustafa4-Jun-08 11:32
Mustafa Ismail Mustafa4-Jun-08 11:32 
Questionvigener cipher code Pin
LoLo73-Jun-08 7:40
LoLo73-Jun-08 7:40 
AnswerRe: vigener cipher code Pin
Yusuf3-Jun-08 9:40
Yusuf3-Jun-08 9:40 
QuestionMailMessage [modified] Pin
Assaf823-Jun-08 6:16
Assaf823-Jun-08 6:16 
AnswerRe: MailMessage Pin
SomeGuyThatIsMe3-Jun-08 7:55
SomeGuyThatIsMe3-Jun-08 7:55 
GeneralRe: MailMessage Pin
Assaf823-Jun-08 10:51
Assaf823-Jun-08 10:51 
GeneralRe: MailMessage Pin
SomeGuyThatIsMe3-Jun-08 11:08
SomeGuyThatIsMe3-Jun-08 11:08 
GeneralRe: MailMessage Pin
w2093-Jun-08 21:46
w2093-Jun-08 21:46 
AnswerRe: MailMessage Pin
Gayani Devapriya3-Jun-08 8:20
Gayani Devapriya3-Jun-08 8:20 
QuestionDetailsView Fields Pin
DanB19833-Jun-08 5:03
DanB19833-Jun-08 5:03 
AnswerRe: DetailsView Fields Pin
DanB19833-Jun-08 5:27
DanB19833-Jun-08 5:27 
QuestionI'm needing a module Test Online, pls help me. Pin
Vunt15103-Jun-08 4:09
Vunt15103-Jun-08 4:09 
AnswerRe: I'm needing a module Test Online, pls help me. Pin
eyeseetee3-Jun-08 4:15
eyeseetee3-Jun-08 4:15 
AnswerRe: I'm needing a module Test Online, pls help me. Pin
MHASSANF3-Jun-08 4:16
MHASSANF3-Jun-08 4:16 

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.