Click here to Skip to main content
15,894,825 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: AspDotNetStoreFront Skinning Pin
Adam Maras4-Dec-09 17:45
Adam Maras4-Dec-09 17:45 
GeneralRe: AspDotNetStoreFront Skinning Pin
22084-Dec-09 20:05
22084-Dec-09 20:05 
QuestionPrevious Page Pin
Munteanu Ciprian4-Dec-09 9:14
Munteanu Ciprian4-Dec-09 9:14 
AnswerRe: Previous Page Pin
Abhishek Sur4-Dec-09 11:55
professionalAbhishek Sur4-Dec-09 11:55 
QuestionAJAX control Toolkit Accordion Control problem Pin
Faisal Khatri4-Dec-09 5:18
Faisal Khatri4-Dec-09 5:18 
AnswerRe: AJAX control Toolkit Accordion Control problem Pin
keyur satyadev4-Dec-09 21:36
keyur satyadev4-Dec-09 21:36 
AnswerRe: AJAX control Toolkit Accordion Control problem Pin
Mark Graham7-Dec-09 0:33
Mark Graham7-Dec-09 0:33 
RantPostBackUrl Pin
Munteanu Ciprian4-Dec-09 3:13
Munteanu Ciprian4-Dec-09 3:13 
Here's my problem: I have a button and when I click it I want to open a new page. I know that I can do this thing very easy by setting the PostBackUrl property of the button. But here's what I want to do: on my page I have a textbox and, for example when I press the button I want to test the text from the TextBox and if it's ok I want to show the new page; if not I want to display a message. I want to do that using c# language, and not JavaScript. I've tried this:
<br />
       protected void Button1_Click(object sender, EventArgs e)<br />
        {<br />
            if (TextBox1.Text == "something")<br />
                Button1.PostBackUrl = "NewPage.aspx";<br />
            else<br />
               ....................<br />
<br />
        }<br />
<br />


Ok, everithing is fine until now. But when I press the button, assuming that in my textbox I've written "something", the NewPage isn't displayed. My current page is loaded again and when I press the button again then NewPage.aspx is displayed. And I don't know why this is happening.
Can anyone help me please?
GeneralRe: PostBackUrl Pin
OriginalGriff4-Dec-09 4:08
mveOriginalGriff4-Dec-09 4:08 
GeneralRe: PostBackUrl Pin
Mark Graham7-Dec-09 0:37
Mark Graham7-Dec-09 0:37 
GeneralRe: PostBackUrl Pin
Mark Graham7-Dec-09 0:50
Mark Graham7-Dec-09 0:50 
RantPostBackUrl Pin
Munteanu Ciprian4-Dec-09 3:11
Munteanu Ciprian4-Dec-09 3:11 
GeneralRe: PostBackUrl Pin
Vimalsoft(Pty) Ltd4-Dec-09 4:07
professionalVimalsoft(Pty) Ltd4-Dec-09 4:07 
QuestionHow to invoke Anchor tag click event without clicking in asp.net Pin
Nekkantidivya4-Dec-09 1:39
Nekkantidivya4-Dec-09 1:39 
AnswerRe: How to invoke Anchor tag click event without clicking in asp.net Pin
saini arun4-Dec-09 1:58
saini arun4-Dec-09 1:58 
AnswerRe: How to invoke Anchor tag click event without clicking in asp.net Pin
Abhishek Sur4-Dec-09 3:00
professionalAbhishek Sur4-Dec-09 3:00 
QuestionProblem setting Header Image in GridView Control Pin
CrazyCoder264-Dec-09 0:12
CrazyCoder264-Dec-09 0:12 
AnswerRe: Problem setting Header Image in GridView Control Pin
sashidhar4-Dec-09 0:38
sashidhar4-Dec-09 0:38 
GeneralRe: Problem setting Header Image in GridView Control Pin
CrazyCoder264-Dec-09 0:54
CrazyCoder264-Dec-09 0:54 
GeneralRe: Problem setting Header Image in GridView Control Pin
Petr Pechovic4-Dec-09 1:01
professionalPetr Pechovic4-Dec-09 1:01 
GeneralRe: Problem setting Header Image in GridView Control Pin
sashidhar4-Dec-09 1:02
sashidhar4-Dec-09 1:02 
GeneralRe: Problem setting Header Image in GridView Control Pin
CrazyCoder264-Dec-09 1:34
CrazyCoder264-Dec-09 1:34 
AnswerRe: Problem setting Header Image in GridView Control Pin
sashidhar4-Dec-09 1:18
sashidhar4-Dec-09 1:18 
GeneralRe: Problem setting Header Image in GridView Control Pin
CrazyCoder264-Dec-09 1:53
CrazyCoder264-Dec-09 1:53 
GeneralRe: Problem setting Header Image in GridView Control Pin
sashidhar4-Dec-09 17:34
sashidhar4-Dec-09 17:34 

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.