Click here to Skip to main content
15,909,741 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to check cookies are enable or disable in borwser Pin
Abhishek Sur28-Dec-09 4:45
professionalAbhishek Sur28-Dec-09 4:45 
QuestionGridView SelectedIndex error:'Index out of range' Pin
MATTXtwo27-Dec-09 17:35
MATTXtwo27-Dec-09 17:35 
AnswerRe: GridView SelectedIndex error:'Index out of range' Pin
Rock Star.28-Dec-09 4:53
Rock Star.28-Dec-09 4:53 
Questionhow to count the column value Pin
Fired.Fish.Gmail27-Dec-09 14:55
Fired.Fish.Gmail27-Dec-09 14:55 
AnswerRe: how to count the column value Pin
meeram39527-Dec-09 19:22
meeram39527-Dec-09 19:22 
AnswerRe: how to count the column value Pin
Abhishek Sur27-Dec-09 21:36
professionalAbhishek Sur27-Dec-09 21:36 
GeneralRe: how to count the column value Pin
Fired.Fish.Gmail28-Dec-09 14:27
Fired.Fish.Gmail28-Dec-09 14:27 
QuestionUnable to disable the button Pin
vnr27-Dec-09 6:16
vnr27-Dec-09 6:16 
Hi,

In my application i have a form where in which when i submit the form by clicking on the submit button it will do some operation .This operation has to be performed only once so i have disabled that button once it gets clicked to avoid the multiple clicks of it by writing the code

Button1.Enabled = false;

in the button click event , this is working fine but when i am redirecting to another page after completion of the operation in that button click code , the button is not getting disabled .Because of this, even though i have disabled the button when a user clicks on the button multiple times that particular operation is getting executed the number of times the button is clicked instead only once .

here is my button click code

protected void Button1_Click(object sender, EventArgs e)
{
Button1.Enabled = false;
Response.Redirect("http://abc.com/test.apsx");
}

Please can anyone help me to resolve this problem

Thanks in advance
AnswerRe: Unable to disable the button Pin
Brij27-Dec-09 7:21
mentorBrij27-Dec-09 7:21 
GeneralRe: Unable to disable the button Pin
vnr27-Dec-09 7:31
vnr27-Dec-09 7:31 
GeneralRe: Unable to disable the button Pin
Brij27-Dec-09 7:45
mentorBrij27-Dec-09 7:45 
GeneralRe: Unable to disable the button Pin
vnr27-Dec-09 18:43
vnr27-Dec-09 18:43 
GeneralRe: Unable to disable the button Pin
Brij28-Dec-09 8:35
mentorBrij28-Dec-09 8:35 
GeneralRe: Unable to disable the button Pin
vnr28-Dec-09 19:16
vnr28-Dec-09 19:16 
QuestionRedirection from global.aspx Pin
Amit Patel198527-Dec-09 2:19
Amit Patel198527-Dec-09 2:19 
AnswerRe: Redirection from global.aspx Pin
Abhijit Jana27-Dec-09 2:37
professionalAbhijit Jana27-Dec-09 2:37 
GeneralRe: Redirection from global.aspx Pin
Rock Star.28-Dec-09 4:49
Rock Star.28-Dec-09 4:49 
GeneralRe: Redirection from global.aspx Pin
Abhijit Jana28-Dec-09 6:51
professionalAbhijit Jana28-Dec-09 6:51 
QuestionSetting HiddenField via jQuery not working in code behind Pin
Gareth H26-Dec-09 23:20
Gareth H26-Dec-09 23:20 
QuestionRe: Setting HiddenField via jQuery not working in code behind [modified] Pin
Gareth H28-Dec-09 6:20
Gareth H28-Dec-09 6:20 
AnswerRe: Setting HiddenField via jQuery not working in code behind Pin
Gareth H28-Dec-09 7:28
Gareth H28-Dec-09 7:28 
Questionconfirm message box. Pin
Amit Patel198526-Dec-09 7:12
Amit Patel198526-Dec-09 7:12 
AnswerRe: confirm message box. Pin
dan!sh 26-Dec-09 18:21
professional dan!sh 26-Dec-09 18:21 
Questionfree forum script in asp.net Pin
dift26-Dec-09 5:08
dift26-Dec-09 5:08 
AnswerRe: free forum script in asp.net Pin
Abhishek Sur26-Dec-09 5:29
professionalAbhishek Sur26-Dec-09 5:29 

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.