Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. the style changed problem by alert message box

the style changed problem by alert message box

Scheduled Pinned Locked Moved ASP.NET
questionwpftoolshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Seraph_summer
    wrote on last edited by
    #1

    I found that in my webpage, once the alert messagebox (as follows) is shown then some control styles (such as, location, font size and so on) are changed in a unexpected way. what is the reason then? anyone suffered this problem before? Response.Write("<script>alert(sth is here!')</script>");

    A 1 Reply Last reply
    0
    • S Seraph_summer

      I found that in my webpage, once the alert messagebox (as follows) is shown then some control styles (such as, location, font size and so on) are changed in a unexpected way. what is the reason then? anyone suffered this problem before? Response.Write("<script>alert(sth is here!')</script>");

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      I think this is not good practice to write the response. Rather use this.ClientScript.RegisterStartupScript(this.GetType(), "myscript", "alert('sth is here!')", true); RegisterStartupScript is there to write javascript output to the client, so why use Response.Write. :)

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups