Click here to Skip to main content
15,915,078 members
Home / Discussions / ASP.NET
   

ASP.NET

 
JokeRe: Debug ASP.NET on Vista ? Pin
Sathesh Sakthivel4-Sep-07 18:38
Sathesh Sakthivel4-Sep-07 18:38 
Questionhow to avoid postback on button click event in asp.net/javascript? Pin
dreddy74-Sep-07 8:22
dreddy74-Sep-07 8:22 
AnswerRe: how to avoid postback on button click event in asp.net/javascript? Pin
Christian Graus4-Sep-07 8:30
protectorChristian Graus4-Sep-07 8:30 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
dreddy74-Sep-07 9:49
dreddy74-Sep-07 9:49 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
Christian Graus4-Sep-07 10:21
protectorChristian Graus4-Sep-07 10:21 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
dreddy74-Sep-07 11:26
dreddy74-Sep-07 11:26 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
Christian Graus4-Sep-07 11:29
protectorChristian Graus4-Sep-07 11:29 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
ChrisKo4-Sep-07 12:08
ChrisKo4-Sep-07 12:08 
My guess is that he's using an ASP:Button control for the print button and using the OnClientClick property for the javascript. I think a postback will happen in this instance and that might be what's causing the problem. I'm not sure how that script will affect the postback if you return false; as Christian mentioned.

Maybe if you use
button.Attributes.Add("OnClick","Javascript:PrintMethod();return false;");
instead of the OnClientClick property it will behave differently. I don't have time to test this out right now, but maybe that would work?
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
Christian Graus4-Sep-07 14:59
protectorChristian Graus4-Sep-07 14:59 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
Lucky Sheikh5-Sep-07 0:36
Lucky Sheikh5-Sep-07 0:36 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
dreddy75-Sep-07 4:25
dreddy75-Sep-07 4:25 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
dreddy75-Sep-07 4:51
dreddy75-Sep-07 4:51 
GeneralRe: how to avoid postback on button click event in asp.net/javascript? Pin
Lucky Sheikh5-Sep-07 18:35
Lucky Sheikh5-Sep-07 18:35 
QuestionExtending the delete/edit buttons in gridview Pin
kumswa4-Sep-07 7:59
kumswa4-Sep-07 7:59 
AnswerRe: Extending the delete/edit buttons in gridview Pin
Christian Graus4-Sep-07 8:16
protectorChristian Graus4-Sep-07 8:16 
QuestionViewState Problem Pin
RoyRose784-Sep-07 6:41
RoyRose784-Sep-07 6:41 
AnswerRe: ViewState Problem Pin
Christian Graus4-Sep-07 6:56
protectorChristian Graus4-Sep-07 6:56 
GeneralRe: ViewState Problem Pin
RoyRose784-Sep-07 8:16
RoyRose784-Sep-07 8:16 
GeneralRe: ViewState Problem Pin
Christian Graus4-Sep-07 8:29
protectorChristian Graus4-Sep-07 8:29 
Questione-commerce functionality ASP.NET shopping carts Pin
SAS254-Sep-07 6:19
SAS254-Sep-07 6:19 
AnswerRe: e-commerce functionality ASP.NET shopping carts Pin
Lucky Sheikh5-Sep-07 0:34
Lucky Sheikh5-Sep-07 0:34 
QuestionSSO and Debugging on XP Pro - domain issues Pin
davidhart4-Sep-07 6:06
davidhart4-Sep-07 6:06 
Questionhow can i show a pdf file in asp.net ? Pin
B.A4-Sep-07 5:52
B.A4-Sep-07 5:52 
AnswerRe: how can i show a pdf file in asp.net ? Pin
Christian Graus4-Sep-07 6:01
protectorChristian Graus4-Sep-07 6:01 
GeneralRe: how can i show a pdf file in asp.net ? Pin
B.A4-Sep-07 6:17
B.A4-Sep-07 6:17 

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.