Click here to Skip to main content
15,905,616 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
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 />


Can anyone help me please?
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 
Questiongetting an issue when we click on back button of the browser Pin
getaccessyr4-Dec-09 0:08
getaccessyr4-Dec-09 0:08 
AnswerRe: getting an issue when we click on back button of the browser Pin
sashidhar4-Dec-09 0:45
sashidhar4-Dec-09 0:45 
QuestionValidations in Multiview Pin
sris 4263-Dec-09 23:01
sris 4263-Dec-09 23:01 
AnswerRe: Validations in Multiview Pin
sashidhar3-Dec-09 23:07
sashidhar3-Dec-09 23:07 

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.