Hi,
you cannot do that from the code behind, that code is executed 100% in the
server, not in the client.
what you can do is send the code to the client to do so, define a JScript
function that open the windows as you want it and simply put the code to
call this method, there are several ways of doung it , like:
<scrupt>
function Callme( msg)
{
alert( msg );
}
</script>
<body runat=server id=theBody>
in the code behind
HtmlGenericControl theBody;
if ( somecondition)
theBody.AddAttribute( "onclick", "Callme('some error msg');");
}
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Rik Brooks" <rb*****@hhcc.com.donotspam> wrote in message
news:B1**********************************@microsof t.com...
I'm a little surprised. I tried to search for a way to open a modal dialog
using c# in a code behind file but couldn't really find it. I know there
is a
way to do it, but I guess I'm still struggling learning the help system.
Here is the deal. I am writing web based front ends. I'm right now writing
my error handler. It's designed to be quite powerful but for now all I
want
to do is pop up a modal window to which I can pass an error message.
That's
all.
Could someone point me in the right direction please?
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.
Animadverto est verus