Why the screen will auto enlarge the all the thing in form???

Last post 10-13-2006 1:44 AM by byan. 2 replies.

Sort Posts:

  • Why the screen will auto enlarge the all the thing in form???

    09-04-2006, 5:21 AM
    • Member
      230 point Member
    • byan
    • Member since 02-06-2006, 9:12 PM
    • Malaysia
    • Posts 46

    Inside the form, I declare one button to call the function to pop out another screen using this code below.

    Response.Write("<scr" & "ipt language='javascript'>window.open('report1.aspx','_blank', 'menubar=no, resizable=yes, width=1024,height=768, scrollbars=yes, status=no')</scr" & "ipt>")

    but after call out, the main screen all the thing will be bigger. or i try to call alert message write as below,

    Response.Write("<scr" & "ipt language=javascript>alert('Cannot Empty Product Code!')</scr" & "ipt>")

    it also will en-large all the thing in main page! why? how to solve this problem?

     

     

     

  • Re: Why the screen will auto enlarge the all the thing in form???

    09-04-2006, 8:05 AM
    Answer
    • All-Star
      98,563 point All-Star
    • mbanavige
    • Member since 11-06-2003, 1:29 PM
    • New England, USA
    • Posts 10,389
    • Moderator
      TrustedFriends-MVPs

    you should not use response.write to register your scripts.

    read this: http://forums.asp.net/thread/1262387.aspx

     

    Mike Banavige
    ~~~~~~~~~~~~
    Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/
  • Re: Why the screen will auto enlarge the all the thing in form???

    10-13-2006, 1:44 AM
    • Member
      230 point Member
    • byan
    • Member since 02-06-2006, 9:12 PM
    • Malaysia
    • Posts 46

    I finally know how to write the register client script!

    Me.ClientScript.RegisterStartupScript(Me.GetType, 0, "<scr" & "ipt language='javascript'>alert('Cannot Empty')</scr" & "ipt>")

     anywhere also thanks to your guide and reply! mbanavige

     

Page 1 of 1 (3 items)