Click here to Skip to main content
15,920,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListBox close Pin
quiteSmart2-Feb-07 1:15
quiteSmart2-Feb-07 1:15 
GeneralRe: ListBox close Pin
bobsugar2222-Feb-07 2:55
bobsugar2222-Feb-07 2:55 
AnswerRe: ListBox close Pin
Luc Pattyn2-Feb-07 0:23
sitebuilderLuc Pattyn2-Feb-07 0:23 
GeneralRe: ListBox close Pin
blue_arc2-Feb-07 1:34
blue_arc2-Feb-07 1:34 
AnswerRe: ListBox close Pin
J4amieC2-Feb-07 2:09
J4amieC2-Feb-07 2:09 
GeneralRe: ListBox close Pin
quiteSmart2-Feb-07 2:17
quiteSmart2-Feb-07 2:17 
QuestionSystem.Text.Encoding.Unicode.GetString() does not properly works in Vista... please help??? Pin
Waqas Nasir1-Feb-07 23:42
Waqas Nasir1-Feb-07 23:42 
QuestionResponse.redirect Pin
acodman1-Feb-07 23:22
acodman1-Feb-07 23:22 
Can someone please tell me what is wrong with this code in C#

have 2 web pages: page A and PageB


in page_load event for pageA I want the page to assign a value into a session variable and redirects to pageB, like this:

PageA

Session["Refid"]=1;
Respone.Redirect("pageb?refid="+ Session["Refid"]);
.
When I step run my codebehind by pressing F10, I notice it goes to the catch Exception part of my try...catch event and still redirects to pageB which shoudn't be. I believe once an error is raised it should print the error message instead of redirecting to pageB.

can someone help me out.

Thanks
AnswerRe: Response.redirect Pin
Christian Graus1-Feb-07 23:48
protectorChristian Graus1-Feb-07 23:48 
GeneralRe: Response.redirect Pin
acodman2-Feb-07 0:36
acodman2-Feb-07 0:36 
GeneralRe: Response.redirect Pin
Parwej Ahamad2-Feb-07 0:41
professionalParwej Ahamad2-Feb-07 0:41 
AnswerRe: Response.redirect Pin
Parwej Ahamad2-Feb-07 0:32
professionalParwej Ahamad2-Feb-07 0:32 
AnswerRe: Response.redirect Pin
Ajay R Ojha2-Feb-07 0:40
Ajay R Ojha2-Feb-07 0:40 
GeneralRe: Response.redirect Pin
blue_arc2-Feb-07 1:18
blue_arc2-Feb-07 1:18 
GeneralRe: Response.redirect Pin
acodman2-Feb-07 2:06
acodman2-Feb-07 2:06 
GeneralRe: Response.redirect Pin
acodman2-Feb-07 2:11
acodman2-Feb-07 2:11 
QuestionEncryption and decryption Pin
sjs4u1-Feb-07 23:13
sjs4u1-Feb-07 23:13 
AnswerRe: Encryption and decryption Pin
S. Senthil Kumar2-Feb-07 5:59
S. Senthil Kumar2-Feb-07 5:59 
QuestionHow to convert ascii to char Pin
vaibhavnvag1-Feb-07 22:47
vaibhavnvag1-Feb-07 22:47 
AnswerRe: How to convert ascii to char Pin
Parwej Ahamad1-Feb-07 22:56
professionalParwej Ahamad1-Feb-07 22:56 
GeneralRe: How to convert ascii to char Pin
aSarafian2-Feb-07 2:22
aSarafian2-Feb-07 2:22 
Questionbindinglist Problem Pin
mark_w_1-Feb-07 22:45
mark_w_1-Feb-07 22:45 
QuestionHow to create SSIS package for Flat file to Destination DB Pin
NK71-Feb-07 22:44
NK71-Feb-07 22:44 
QuestionWindows Service that runs on test pc but not on product pc! Pin
Gajolsen1-Feb-07 22:43
Gajolsen1-Feb-07 22:43 
Questionhow to convert a short array to a byte array? Pin
bouli1-Feb-07 22:26
bouli1-Feb-07 22:26 

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.