Dialog Box

dsgreen57

Well-known member
Joined
Mar 31, 2003
Messages
66
OK, I need to open a dialog window; easy enough except I dont want any toolbar, menubar, titlebar etc. Reading Microsofts site this is easy enough if it is a hta (trusted application) but how do you do it in ASP.NET it ignores the titlebar property

Code so far...


Code:
// Create a url with the warehouse key and product key from the DataGrid row
					string url = "ProductDetails.aspx?Warehouse=";
					url += ((Label)e.Item.FindControl("Label11")).Text;
					url += "&ProductId=" + ((Label)e.Item.FindControl("Label12")).Text;

					// Create a features string
					string features = "height=320;width=160;left=100;top=50;";
					features += "toolbar=no;menubar=no;location=no;status=no;titlebar=no;";

					// Create a client-side script to open the window
					string script = "<script language=javascript>";
					script += "window.showModelessDialog(" + url + ", , " + features + ");";
					script += "</script>";

					// Write it into output stream for immediate execution
					Response.Write(script);
 
Last edited by a moderator:
I not sure whether there is "titlebar" property, but this is nothing to do with ASP.NET, even you do in HTML or PHP, it will give you the same result...
 
I would have to disagree; even though not strictly ASP.NET it is a valid operation to perform from an ASP.NET page; and can only be done it seems from hta page extension. Microsoft must have thought of this and there MUST be a way of doing it.

Sooner or later somebody is going to want to open a seperate search page from aspx page with no titlebar (as I do); and it seems you can only do it from a hta page.
 
Back
Top