borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Asp.net and Authentication problem?)Next Topic (ASP.NET DATAGRID EXPORT INTO EXCEL) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : Dialog boxes Of Asp.net
Poster Message
samsundar
Level: Whizz Kid

Registered: 13-05-2006
Posts: 16

icon Dialog boxes Of Asp.net

Hi, iam new to Asp.net.I would like to know how we can view dialogboxes on asp.net pages...Plz help me...if any links or examples are greatly appreciated..

____________________________
Regards

SamSundar

22-06-2006 at 04:59 AM
View Profile Send Email to User Show All Posts | Quote Reply
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488
icon Re: Dialog boxes Of Asp.net

You don't, not in ASP.NET anyways. If you want a simple alert or question you could use javascript.

____________________________
Eggheads unite! You have nothing to lose but your yolks.

30-06-2006 at 12:41 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Bharathi
Level: Scholar

Registered: 11-04-2005
Posts: 31
icon Re: Dialog boxes Of Asp.net

Hi,

The first and usual technique of implementing dialog box is to put javascript to the particular event (usually click event) of the control. Its really a easy way when your application already know when to open a dialog box when the page load to the browser.

Here is the simple example, put a button form control to the web page and insert the following code.

btnOpen1.Attributes.Add("onclick", "alert('GOT IT?');")  

its a one line code to pop a alert message to the user.

Same way, suppose you want that, the application open a confirmation dialog box from where the user can select his option. You can use this method very well. Like, you want to open a confirmation dialog box when user click on the delete button of the page. Simply use following code for that :

btnDelete.Attributes.Add("onclick", "if(confirm('Are you sure to delete?')){}else{return false}")  

it will create a small javascript code to the browser. When user select "No" from the confirmation dialog box, it will return false. Hence nothing will happen. And if user select "Yes", it will return true and will post the page.

Regards
bhar
books for programmers
http://www.vkinfotek.com

14-08-2006 at 05:16 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : ASP.Net : Dialog boxes Of Asp.net
Previous Topic (Asp.net and Authentication problem?)Next Topic (ASP.NET DATAGRID EXPORT INTO EXCEL) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder