Click here to Skip to main content
15,911,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionuploading XML file Pin
Milind Panchal13-Aug-07 23:02
Milind Panchal13-Aug-07 23:02 
AnswerRe: uploading XML file Pin
Sandeep Akhare13-Aug-07 23:13
Sandeep Akhare13-Aug-07 23:13 
Questionsetting GridView's height dynamically Pin
vvijaykrishna13-Aug-07 22:09
vvijaykrishna13-Aug-07 22:09 
AnswerRe: setting GridView's height dynamically Pin
Imran Khan Pathan13-Aug-07 22:35
Imran Khan Pathan13-Aug-07 22:35 
QuestionAccess Data Types Pin
Whoami Whoami13-Aug-07 22:04
Whoami Whoami13-Aug-07 22:04 
AnswerRe: Access Data Types Pin
Whoami Whoami15-Sep-07 8:13
Whoami Whoami15-Sep-07 8:13 
Questionhow to pop-up a window in asp.net Pin
Priya S13-Aug-07 21:47
Priya S13-Aug-07 21:47 
AnswerRe: how to pop-up a window in asp.net Pin
Talal Sultan13-Aug-07 21:53
Talal Sultan13-Aug-07 21:53 
The only way is to use Javascript on the client side. You can add an attribute to do that to the ASP.NET control in Page_Load for example.

Assuming you have a button btnSubmit, you would do something like:

if (!IsPostBack)
{
  btnSubmit.Attributes.Add("onclick","return confirm('Submit report?');");
}

The first parameter of the Attributes.Add method is the clientside event, the second parameter is any Javascript code you would like to execute.


Talal

-- If this is a post that has been helpful to you, please vote for it. Thank you!

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook

GeneralRe: how to pop-up a window in asp.net Pin
N a v a n e e t h13-Aug-07 22:21
N a v a n e e t h13-Aug-07 22:21 
GeneralRe: how to pop-up a window in asp.net Pin
Talal Sultan13-Aug-07 22:41
Talal Sultan13-Aug-07 22:41 
GeneralRe: how to pop-up a window in asp.net Pin
John-ph13-Aug-07 23:05
John-ph13-Aug-07 23:05 
AnswerRe: how to pop-up a window in asp.net Pin
N a v a n e e t h13-Aug-07 22:19
N a v a n e e t h13-Aug-07 22:19 
AnswerRe: how to pop-up a window in asp.net Pin
nandhububbly13-Aug-07 22:48
nandhububbly13-Aug-07 22:48 
GeneralRe: how to pop-up a window in asp.net Pin
Priya S13-Aug-07 23:33
Priya S13-Aug-07 23:33 
QuestionHow to stop server side event firing based on client side event Pin
here2learn13-Aug-07 21:42
here2learn13-Aug-07 21:42 
AnswerRe: How to stop server side event firing based on client side event Pin
Talal Sultan13-Aug-07 22:10
Talal Sultan13-Aug-07 22:10 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn13-Aug-07 22:26
here2learn13-Aug-07 22:26 
AnswerRe: How to stop server side event firing based on client side event Pin
N a v a n e e t h13-Aug-07 22:23
N a v a n e e t h13-Aug-07 22:23 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn13-Aug-07 22:35
here2learn13-Aug-07 22:35 
GeneralRe: How to stop server side event firing based on client side event Pin
N a v a n e e t h13-Aug-07 22:55
N a v a n e e t h13-Aug-07 22:55 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn13-Aug-07 23:13
here2learn13-Aug-07 23:13 
GeneralRe: How to stop server side event firing based on client side event Pin
N a v a n e e t h14-Aug-07 0:00
N a v a n e e t h14-Aug-07 0:00 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn14-Aug-07 0:10
here2learn14-Aug-07 0:10 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn13-Aug-07 23:21
here2learn13-Aug-07 23:21 
AnswerRe: How do you dynamicly asign html atributes in C#? Pin
N a v a n e e t h13-Aug-07 21:32
N a v a n e e t h13-Aug-07 21:32 

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.