Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 alert box

Author  Topic 

shemayb
Posting Yak Master

159 Posts

Posted - 2007-09-27 : 02:00:58
is there an alert box in c#?

Funnyfrog

Zoroaster
Aged Yak Warrior

702 Posts

Posted - 2007-09-27 : 09:08:49
Like a pop-up alert box? To my knowledge you would have to make a client side call and have the client language create the alert.




Future guru in the making.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-09-27 : 09:48:29
yes there is.
but it's implementation is different in windows or web programming.

so can you please specify clearly what and where you want to do it.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

nirene
Yak Posting Veteran

98 Posts

Posted - 2007-09-29 : 05:57:26
Hai Shemayb,

alert in .vb code behind

Convert this to C#

RegisterStartupScript("myAlert", "<script>alert('Alert Message')</script>")

Nirene
Go to Top of Page

rgombina
Constraint Violating Yak Guru

319 Posts

Posted - 2007-10-09 : 16:31:20
One option:

<asp:Button ID="Button2" runat="server" Text="Button" OnClientClick="return confirm('This is a popup!')" />
Go to Top of Page

shemayb
Posting Yak Master

159 Posts

Posted - 2007-10-11 : 16:52:14
thanks for your help..

Funnyfrog
Go to Top of Page

rgombina
Constraint Violating Yak Guru

319 Posts

Posted - 2007-10-12 : 14:39:33
No problem. You can also make that an OnClick and call Javascript to further add logics.
Go to Top of Page
   

- Advertisement -