VB SCript in .NET?


S

StudentMCDBA

I'm trying to display a message box when user click a button. In VBScript I
can to do it with msgbox() function , but in ASP.NET how I do this?

Thanks,

WBG
 
Ad

Advertisements

T

Tom Spink

Hi, You cannot, because ASP.NET is run on the server, not on the client. You
must execute client code, in VBScript or JavaScript to do this.

'===
<SCRIPT><!--
alert('A Message!');
--></SCRIPT>
'===

--
HTH,
-- Tom Spink, Über Geek

Woe be the day VBC.EXE says, "OrElse what?"

Please respond to the newsgroup,
so all can benefit
 
C

Cor

Hi

(I changed it here so watch little errors)

MyButton.Attributes("onclick") = "javascript:alert('Hello! does this
help!!');"

Cor
 
Ad

Advertisements

C

CJ Taylor

Herfried,

Hey... no one was asking on how obsolete the tag was... =)

Also, its still pretty heavily used... however, I would recommend adding the
language attribute to it...
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VB script to VB.Net back to VB script 4
Running a VB .NET app as a login script 0
VB to .Net 6
C# to VB .NET 1
VB and .NET Framework 5
Datagrid VB net 4
VB .Net vs VB 2005 express 2
Ghost 10 and VB 6 and VB .NET 1

Top