Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

i made a custom alert control (vwd express 2005) out of this, http://slayeroffice.com/code/custom_alert/, i did some alteration on css to support IE browsers without position:fixed, and took off the mispelled (dunno if intensionally) visibility property (no use for this, fixing it wouldnt show the alert)

 

now, my question is this, popping the alert after postback would cause an exception, but it can be resolved by using setTimeout (in js), so i added it, but in some cases where the page would load longer than expected i end up with this error.

 

"Internet Explorer cannot open the Internet site http://localhost:2220/alert/default.aspx

Operation aborted"

 

then with a "Cannot find server - The page cannot be displayed"

 

it seems that RegisterClientScriptBlock is called too soon, is there a way to place it at the end of the file, somewhat

 

</html>
<script language="javascript">
alert("here");
</script>

 

anyone?

customalert.zip

Edited by lamy

slow down when you need to hurry, stop when you need to move on,

look back when you need to forget, or you might slip and leave sanity

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...