473,378 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Message box at ASP.Net

Jul
Hi,

How create MsgBox or any analog of that function in ASP.Net?

Thanks
Nov 21 '05 #1
6 3474
Jul,

By instance,
\\\
Page.RegisterClientScriptBlock("clientScript", scriptString)
Dim str As String = "<script language " & _
"=javascript>alert('I hope this helps a little bit?');</script>"
Page.RegisterStartupScript("Startup", str)
///

I hope this helps?

Cor
Nov 21 '05 #2
Jul
Yes, it helps, but also couple questions:
1. Why I need to call RegisterClientScriptBlock?
2. Why after I press "Refresh (F5)" I get the message " The page cannot be
refreshed without resending the information..." . When I click "Retry" the
alert dialog appear again, but it has to appear only (in my case) when I
click Button on the form.

Thanks

"Cor Ligthert" <no************@planet.nl> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
Jul,

By instance,
\\\
Page.RegisterClientScriptBlock("clientScript", scriptString)
Dim str As String = "<script language " & _
"=javascript>alert('I hope this helps a little bit?');</script>"
Page.RegisterStartupScript("Startup", str)
///

I hope this helps?

Cor

Nov 21 '05 #3
Jul,
but it has to appear only (in my case) when I click Button on the form.


Than you have to ask that. You can place in the load event of the page.
Me.Button1.Attributes("onClick") = "alert('I hope this helps a little
bit?');"

I hope this helps?

Cor



By instance,
\\\
Page.RegisterClientScriptBlock("clientScript", scriptString)
Dim str As String = "<script language " & _
"=javascript>alert('I hope this helps a little bit?');</script>"
Page.RegisterStartupScript("Startup", str)
///

I hope this helps?

Cor


Nov 21 '05 #4
Jul
But can I include script/code to the Private Sub Button1_Click?
or always has to be in Load Event of the page?
and what cases I need to use RegisterClientScriptBlock or
RegisterStartupScript
"Cor Ligthert" <no************@planet.nl> wrote in message
news:eD*************@tk2msftngp13.phx.gbl...
Jul,
but it has to appear only (in my case) when I click Button on the form.


Than you have to ask that. You can place in the load event of the page.
Me.Button1.Attributes("onClick") = "alert('I hope this helps a little
bit?');"

I hope this helps?

Cor



By instance,
\\\
Page.RegisterClientScriptBlock("clientScript", scriptString)
Dim str As String = "<script language " & _
"=javascript>alert('I hope this helps a little bit?');</script>" Page.RegisterStartupScript("Startup", str)
///

I hope this helps?

Cor



Nov 21 '05 #5
Jul,

Register startup is "onload"
The attribute you can use where you want, don't forget that every sent the
information is refreshed.

I hope this helps?

Cor
Nov 21 '05 #6
Jul
Thanks for your explanations.
I will try but I am not sure that understand everything.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:u7*************@TK2MSFTNGP11.phx.gbl...
Jul,

Register startup is "onload"
The attribute you can use where you want, don't forget that every sent the
information is refreshed.

I hope this helps?

Cor

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hugh Welford | last post by:
Hi Using WIN XP and FP2000 Using CDO.message to out put a message from my site, I get the following error message 8004020f from using the code:- strsql = "SELECT * FROM details WHERE patid...
8
by: Brian Keating EI9FXB | last post by:
Would I be correct in saying that the only way to get a user message into a Windows form would be to use P/Invoke with Message? Of is there some part of the .NET API that I am totally un aware...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
2
by: Microsoft News | last post by:
What I have is a message box that pops up. It is another browser window. The code is a general function that you pass message, title and a key to. The box works great except, that if you are on a...
0
by: ronscottlangham | last post by:
I am working on a custom WCF EndpoingBehavior that will modify the messages coming in and out of my Service. I am having an error related to the modification of the message in the...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
3
by: Steven Allport | last post by:
I am working on processing eml email message using the email module (python 2.5), on files exported from an Outlook PST file, to extract the composite parts of the email. In most instances this...
0
by: Philluminati | last post by:
I have a Perl SOAP Server which returns this SOAP Message when invoked: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"...
2
by: bernd | last post by:
Hi netties, posted this in a different group already, which seems to be inappropriate. I create a message queue with msgget(), sent a 5-byte message to it with msgsnd() and try to receive the...
2
by: forums_mp | last post by:
Facing a design problem here and I'm not sure how to solve this. The system consists of bi-directional communication between a subject communicating with two (at least for now ) listeners. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.