Click here to Skip to main content
15,920,383 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Sonia Gupta1-Jul-07 23:33
Sonia Gupta1-Jul-07 23:33 
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Fred_Smith1-Jul-07 23:47
Fred_Smith1-Jul-07 23:47 
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Sonia Gupta1-Jul-07 23:50
Sonia Gupta1-Jul-07 23:50 
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Fred_Smith1-Jul-07 23:52
Fred_Smith1-Jul-07 23:52 
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Sonia Gupta1-Jul-07 23:55
Sonia Gupta1-Jul-07 23:55 
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Fred_Smith2-Jul-07 0:00
Fred_Smith2-Jul-07 0:00 
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Sonia Gupta2-Jul-07 0:33
Sonia Gupta2-Jul-07 0:33 
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Fred_Smith2-Jul-07 0:44
Fred_Smith2-Jul-07 0:44 
I have it now:

You need to "return false" from the js function to stop the linkbutton posting back the page. Presumably, even if they press Cancel you don't want to to do anything, so you can a;lways return false.

In fact, if you aren't going to do any server-side processing of this utton, you could just make it an ordinary HTML button and avoid this, but anyway: try this:


lnkbtnlogout.Attributes.Add("onclick", "return confirm_delete()")

function confirm_delete()
{
if (confirm("Are you sure you want to exit ?")==true)
{
location.href="../login.aspx";
}
return false;
}
</script>


Fred
GeneralRe: messagebox in vb.net with asp.net 2.0 Pin
Sonia Gupta2-Jul-07 1:15
Sonia Gupta2-Jul-07 1:15 
GeneralRe: messagebox in vb.net with asp.net Pin
Sathesh Sakthivel2-Jul-07 2:01
Sathesh Sakthivel2-Jul-07 2:01 
GeneralRe: messagebox in vb.net with asp.net Pin
Imran Khan Pathan2-Jul-07 1:50
Imran Khan Pathan2-Jul-07 1:50 
AnswerRe: messagebox in vb.net with asp.net Pin
Imran Khan Pathan2-Jul-07 1:38
Imran Khan Pathan2-Jul-07 1:38 
AnswerRe: messagebox in vb.net with asp.net Pin
Chetan Ranpariya2-Jul-07 1:42
Chetan Ranpariya2-Jul-07 1:42 
QuestionTreeView in ASP.NET Pin
remex_1980_junyongwu1-Jul-07 21:21
remex_1980_junyongwu1-Jul-07 21:21 
QuestionRegistration page doubt Pin
saravanan051-Jul-07 21:12
saravanan051-Jul-07 21:12 
AnswerRe: Registration page doubt Pin
Sandeep Akhare1-Jul-07 21:27
Sandeep Akhare1-Jul-07 21:27 
GeneralRe: Registration page doubt Pin
honeyss1-Jul-07 21:57
honeyss1-Jul-07 21:57 
GeneralRe: Registration page doubt Pin
Sandeep Akhare1-Jul-07 22:27
Sandeep Akhare1-Jul-07 22:27 
Questionwant to show image in datagrid Pin
rathi ajay1-Jul-07 20:58
rathi ajay1-Jul-07 20:58 
AnswerRe: want to show image in datagrid Pin
honeyss1-Jul-07 21:20
honeyss1-Jul-07 21:20 
AnswerRe: want to show image in datagrid Pin
N a v a n e e t h1-Jul-07 22:34
N a v a n e e t h1-Jul-07 22:34 
QuestionAsp.net Roles Pin
Suryanairg1-Jul-07 20:53
Suryanairg1-Jul-07 20:53 
AnswerRe: Asp.net Roles Pin
kvijayajyothy1-Jul-07 21:29
kvijayajyothy1-Jul-07 21:29 
Questionhow to assign values in datatable? Pin
moomoooomoo1-Jul-07 20:04
moomoooomoo1-Jul-07 20:04 
AnswerRe: how to assign values in datatable? Pin
RepliCrux1-Jul-07 20:10
RepliCrux1-Jul-07 20:10 

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.