473,320 Members | 1,799 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,320 software developers and data experts.

DHTML Methods in ASP

Hi All,

I am a bit of a newbie but have a reasonable grasp of using ASP.net code.

One thing I have wanted to find our for sometime is if there is a way to
invoke DHTML methods from or after running an ASP.net event.

For example/
I can open a modal dialog using the DHTML method
<input type = "button" onclick = "window.showmodaldialog("webpage.aspx")">

When I finish on this modal dialog, I can close it with
<input type = "button" onclick = "window.close()">

Is there a way run some ASP code and invoke these or other DHTML methods, or
finish the ASP code and then send a command to the browser to execute one of
these DHTML methods. The reason I want do this is I want to store some data
on either the main page of the modaldialog before opening or closing the
modal dialog.

I have been able to functionally do what I need with
Response.Redirect("webpage.aspx")
but I prefer the look of a dialog box for this function instead of going to
a new page.

Thanks in advance.

Bob T


Nov 18 '05 #1
1 1350
i cant say much about dhtml but i know you can attach javascript to a
web control

eg
TextBox1.Attributes("onclick")="javascript:alert(' Hello! you just
clicked me!');"

Bob T wrote:
Hi All,

I am a bit of a newbie but have a reasonable grasp of using ASP.net code.

One thing I have wanted to find our for sometime is if there is a way to
invoke DHTML methods from or after running an ASP.net event.

For example/
I can open a modal dialog using the DHTML method
<input type = "button" onclick = "window.showmodaldialog("webpage.aspx")">

When I finish on this modal dialog, I can close it with
<input type = "button" onclick = "window.close()">

Is there a way run some ASP code and invoke these or other DHTML methods, or
finish the ASP code and then send a command to the browser to execute one of
these DHTML methods. The reason I want do this is I want to store some data
on either the main page of the modaldialog before opening or closing the
modal dialog.

I have been able to functionally do what I need with
Response.Redirect("webpage.aspx")
but I prefer the look of a dialog box for this function instead of going to
a new page.

Thanks in advance.

Bob T


Nov 18 '05 #2

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

Similar topics

6
by: viator | last post by:
Hello everybody. I am a student doing my masters in Comp. Sci. Will some explain to me why it seems completely two worlds when taking about DHTML in NN and IE. Is there any way to write truly...
3
by: Chris Leonard | last post by:
Hi. I've copied some code from a book which will enable me to make a layer around a page, my aim is to do something a little more complex but this I thought would get me started. Anyway, I've...
11
by: Thomas | last post by:
I am trying to produce a table dynamically when the user presses "add to queue". It works great in Mozilla, but it is formatted incorrectly in IE. What I meant by the checkbox was that it should be...
2
by: Frances Del Rio | last post by:
please, can you go to http://www.francesdelrio.com/dhtml/ when you click the name of the character the font color for all the lines of that character should change.. this is a simple DHTML...
3
by: Chris Ryan | last post by:
Is there a way to change the displayed text on a web page using some combination of Javascript and DHTML? NOT in a text box. As far as I know (with my limited knowledge) the only way you can do...
1
by: Steve | last post by:
Hi; I have heard about a few very good books on DHTML, but the most modern ones seem to have been published in 2002. Have any _significant_ changes in DHTML or the standard DOM happened since...
5
by: parksch2 | last post by:
Hi all, I'm having a hard time with the use of my DHTML menu and video on my site. The video is served using Windows Media Player. Short of hiding it, I can't seem to get my DHTML menu to appear...
0
by: Rashad Rivera | last post by:
Hay gang, I know how to create assemblies with JScript, C# and VB that work in DHTML, dispite what others have told me, but when I look at the object in Debug time from the DHTML script, I do...
4
by: ciprian.dosoftei | last post by:
Hello, I just finished a tutorial website regarding the development of DHTML popups. The site features several examples with downloadable samples. It also feature more complex effects like...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.