Dynamic Web Dialogs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing code for web parts, but seeing as they are just glorified web controls & VB.NET is slightly older, I'm hoping that my query can be answered in this group. (Although I am posting this to the Sharepoint Developers group as well. Hope I'm not violating protocol.

I would like to have a link on my control that will popup a modeless dialog, but unlike the standard functions I will need to 'create' the HTML code for the dialog on-the-fly. Basically, I want to show information that will be in a property of my control, and this information could be changed for any implementation of the control. So I won't be able to reference a static URL, nor do I know how to have a HTML page refence a property of the current instance of the control

Has anyone tried this before? Is it actually possible, or am I trying to stretch things too far? Thanx in advance.
 
Hi Gary,

I am not sure if I understand you, however is this something as you mean?

TextBox1.Attributes("onblur") = "javascript:alert('Hello! Focus lost from
text box!!');"

Cor
 
Close but not quite. I've gone through the DHTML reference, and realised that the closest thing to what I want is the createPopup method of the window object. I am after something that allows me to create a usercontrol/webpart that can have a link/button on it that when clicked will bring up a web dialog similar to windows update download/install dialog, but with content that is created during the event but before display. I'm not too sure if there is anything apart from the createPopup method, and even if I do end up using it, it will require a lot of client-side code, so I would be very apreciative if someone knows a better way of doing this.
 
Back
Top