Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Message Box in ASP.NET


Message #1 by hisunilj@y... on Thu, 24 Jan 2002 11:31:53
Hello all,



How can I pop up a message from ASP.NET? 

This message box has to be similar to the Javascript Message Box. The 

Javascript doesnt run in my ASPXC application for some reason.



Please help me out!!



Thanx in advance!!



Regards

SuniL
Message #2 by agaisin@c... on Thu, 24 Jan 2002 09:19:47 +0000
let me just clarify (acc. to my understanding)...

client side javascript still exists, and asp.net is a server side technology - it is processed on the server not the client.  So any
asp.net controls are really (basically) being converted into good old html (and css and javascript).

Now, about your question, there is no messagebox control for asp.net that I know of (is one for windows applications in .net...). 
If good old client-side javascript "doesn't run" where it "should", then something (like syntax) must be wrong with your page.

Interesting thing that you bring up - All the basic html controls encapsulate the old html elements, but I don't know of any
"Javascript controls" to encapsulate javscript functionality (except for validation when it's applied client side...).



hth,

Arthur Gaisin



---- Message from hisunilj@y... at Thu, 24 Jan 2002 11:31:53 ------

Hello all,



How can I pop up a message from ASP.NET? 

This message box has to be similar to the Javascript Message Box. The 

Javascript doesnt run in my ASPXC application for some reason.



Please help me out!!



Thanx in advance!!



Regards

SuniL








Message #3 by agaisin@c... on Thu, 24 Jan 2002 09:25:08 +0000
here's just one example:

http://www.bipinjoshi.com/asp/javascriptinaspnet.asp?id=10



-Arthur Gaisin



---- Message from agaisin@c... at Thu, 24 Jan 2002 09:19:47 +0000 ------

let me just clarify (acc. to my understanding)...

client side javascript still exists, and asp.net is a server side technology - it is processed on the server not the client.  So any
asp.net controls are really (basically) being converted into good old html (and css and javascript).

Now, about your question, there is no messagebox control for asp.net that I know of (is one for windows applications in .net...). 
If good old client-side javascript "doesn't run" where it "should", then something (like syntax) must be wrong with your page.

Interesting thing that you bring up - All the basic html controls encapsulate the old html elements, but I don't know of any
"Javascript controls" to encapsulate javscript functionality (except for validation when it's applied client side...).



hth,

Arthur Gaisin



---- Message from hisunilj@y... at Thu, 24 Jan 2002 11:31:53 ------

Hello all,



How can I pop up a message from ASP.NET? 

This message box has to be similar to the Javascript Message Box. The 

Javascript doesnt run in my ASPXC application for some reason.



Please help me out!!



Thanx in advance!!



Regards

SuniL

















Message #4 by "Greg Quinn" <greg@i...> on Thu, 24 Jan 2002 16:42:29 -0800
Hmm,



Strange, the ASP:Validator Validation Summary has a Show MessageBox

property, would be nice if .NET had something server side and more

customiseable then the JavaScript one. i,e so we could se the title, size,

and x,y origin etc. colors blah blah blah.



Greg





-----Original Message-----

From: agaisin@c... [mailto:agaisin@c...]

Sent: 24 January 2002 01:25

To: ASP+

Subject: [aspx] Re: Message Box in ASP.NET





here's just one example:

http://www.bipinjoshi.com/asp/javascriptinaspnet.asp?id=10



-Arthur Gaisin



---- Message from agaisin@c... at Thu, 24 Jan 2002 09:19:47

+0000 ------

let me just clarify (acc. to my understanding)...

client side javascript still exists, and asp.net is a server side

technology - it is processed on the server not the client.  So any asp.net

controls are really (basically) being converted into good old html (and css

and javascript).

Now, about your question, there is no messagebox control for asp.net that I

know of (is one for windows applications in .net...).  If good old

client-side javascript "doesn't run" where it "should", then something (like

syntax) must be wrong with your page.

Interesting thing that you bring up - All the basic html controls

encapsulate the old html elements, but I don't know of any "Javascript

controls" to encapsulate javscript functionality (except for validation when

it's applied client side...).



hth,

Arthur Gaisin



---- Message from hisunilj@y... at Thu, 24 Jan 2002 11:31:53 ------

Hello all,



How can I pop up a message from ASP.NET?

This message box has to be similar to the Javascript Message Box. The

Javascript doesnt run in my ASPXC application for some reason.



Please help me out!!



Thanx in advance!!



Regards

SuniL
























Message #5 by agaisin@c... on Thu, 24 Jan 2002 10:15:15 +0000
strange? not at all.

remember that what you see when requesting an aspx page is just plain old html (with css, javscript).

There's no new technology for the browsers.

(warning...all my opinions below)

So until/unless browser technologies change or are enhanced, all we're dealing with is html/javascript/css (=dhtml) and the only way
to have customized gui within a browser is to do it yourself - use activex controls (or .net equivalent or applets) or use dhtml to
make your own popup windows (could be as simple as a div tag that's absolutely positioned and z-index of more than anything else on
the page, and you show/hide it [or change it's display property]).  ASP.Net does a great job at making the development easier and
more powerful and it's revolutionary in many ways, but not in any ways that are visible (as in look and feel) of the user - the user
will always still be seeing the same old html - it may come up quicker, or be more scalable and take on more users (again not
necessarily visible to the user) and the site may be developed quicker, and the sites may be able to include more/richer
functionality in less time and they may be better quality and they may work on more browsers (w/less effort from the developers) but
they won't be seeing anything they couldn't have seen before.

I.E. - .net benefits developers and companies the most up front.  AND b/c of the benefits it gives to the developers and companies
users will inevitably benefit, but they're not suddenly going to be seeing funky stuff on web pages they never saw before (in fact,
I'd bet they'll get used to seeing more standard/less funky websites).



just my thoughts,

Arthur Gaisin



---- Message from "Greg Quinn" <greg@i...> at Thu, 24 Jan 2002 16:42:29 -0800 ------

Hmm,



Strange, the ASP:Validator Validation Summary has a Show MessageBox

property, would be nice if .NET had something server side and more

customiseable then the JavaScript one. i,e so we could se the title, size,

and x,y origin etc. colors blah blah blah.



Greg





-----Original Message-----

From: agaisin@c... [mailto:agaisin@c...]

Sent: 24 January 2002 01:25

To: ASP+

Subject: [aspx] Re: Message Box in ASP.NET





here's just one example:

http://www.bipinjoshi.com/asp/javascriptinaspnet.asp?id=10



-Arthur Gaisin



---- Message from agaisin@c... at Thu, 24 Jan 2002 09:19:47

+0000 ------

let me just clarify (acc. to my understanding)...

client side javascript still exists, and asp.net is a server side

technology - it is processed on the server not the client.  So any asp.net

controls are really (basically) being converted into good old html (and css

and javascript).

Now, about your question, there is no messagebox control for asp.net that I

know of (is one for windows applications in .net...).  If good old

client-side javascript "doesn't run" where it "should", then something (like

syntax) must be wrong with your page.

Interesting thing that you bring up - All the basic html controls

encapsulate the old html elements, but I don't know of any "Javascript

controls" to encapsulate javscript functionality (except for validation when

it's applied client side...).



hth,

Arthur Gaisin



---- Message from hisunilj@y... at Thu, 24 Jan 2002 11:31:53 ------

Hello all,



How can I pop up a message from ASP.NET?

This message box has to be similar to the Javascript Message Box. The

Javascript doesnt run in my ASPXC application for some reason.



Please help me out!!



Thanx in advance!!



Regards

SuniL

































Message #6 by Sunil Jamebkar <hisunilj@y...> on Thu, 24 Jan 2002 21:42:29 -0800 (PST)
Hello All,



Thanx to the reply for my posts. Well my problem is

slightly different and i will elaborate now :



=> I have surfed the bipinjosh site and used that

script "Response.Write("<script

language=javascript>alert('could not

delete')</script>");"

the problem occurs in the place of /Script, as CSharp

compiler (as its the language of the page) treats "/"

as a new line character and throws an error. 

I have also tried that script "Response.Write("<script

language=javascript>alert('could not

delete')<//script>");" the error disappears but the

message is also not displayed and in the view source,

it is printed as it is. 

<script language=javascript>

	alert('could not delete')

<//script>



=> I tried using aspvalidator, but it has its own

problam as it requires "ControlToValidate", and fires

only on that control.



=> now i am using plain Response.write to display the

message. This is having a problem as it displays the

response.write in the first compile itself and without

any action, the message is displayed.



=> what i want is there is a datagrid with a checkbox

in it against each record and a Delete button at the

top (like we have in the Web Mail interfaces). What i

want to do is when the person checks 3-4 checkboxes

and clicks on the delete button, then if theres some

error at the backend, it should display the error

message, which is not being displayed by the

Javascript (bipinjoshi.com) solution. 



I hope i have made the situation clear!!



Thanking you in advance!!



Warm Regards



Sunil.G.Jambekar



__________________________________________________

Do You Yahoo!?

Great stuff seeking new owners in Yahoo! Auctions! 

http://auctions.yahoo.com

Message #7 by "James Yang" <hyungsukyang@h...> on Fri, 25 Jan 2002 16:46:59 +1100
try this



Response.Write (@"your thing goes here");



----- Original Message ----- 

From: "Sunil Jamebkar" <hisunilj@y...>

To: "ASP+" <aspx@p...>

Sent: Friday, January 25, 2002 4:42 PM

Subject: [aspx] Re: Message Box in ASP.NET





> Hello All,

> 

> Thanx to the reply for my posts. Well my problem is

> slightly different and i will elaborate now :

> 

> => I have surfed the bipinjosh site and used that

> script "Response.Write("<script

> language=javascript>alert('could not

> delete')</script>");"

> the problem occurs in the place of /Script, as CSharp

> compiler (as its the language of the page) treats "/"

> as a new line character and throws an error.

> I have also tried that script "Response.Write("<script

> language=javascript>alert('could not

> delete')<//script>");" the error disappears but the

> message is also not displayed and in the view source,

> it is printed as it is.

> <script language=javascript>

> alert('could not delete')

> <//script>

> 

> => I tried using aspvalidator, but it has its own

> problam as it requires "ControlToValidate", and fires

> only on that control.

> 

> => now i am using plain Response.write to display the

> message. This is having a problem as it displays the

> response.write in the first compile itself and without

> any action, the message is displayed.

> 

> => what i want is there is a datagrid with a checkbox

> in it against each record and a Delete button at the

> top (like we have in the Web Mail interfaces). What i

> want to do is when the person checks 3-4 checkboxes

> and clicks on the delete button, then if theres some

> error at the backend, it should display the error

> message, which is not being displayed by the

> Javascript (bipinjoshi.com) solution.

> 

> I hope i have made the situation clear!!

> 

> Thanking you in advance!!

> 

> Warm Regards

> 

> Sunil.G.Jambekar

> 

> __________________________________________________

> Do You Yahoo!?

> Great stuff seeking new owners in Yahoo! Auctions!

> http://auctions.yahoo.com

> 




> 


  Return to Index