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. Question about tag : <form> and runat="server".</form>

Question about tag : <form> and runat="server".</form>

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavascriptasp-netsysadmin
4 Posts 3 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.
  • L Offline
    L Offline
    lsh486love
    wrote on last edited by
    #1

    Hello. I made a master page whose name is "main.master". and I used this tag :

    And.. I made a sub page which is connected with the master page. I alreay know I shouldn't use the tag; like this. So, I made coding like the following this below. <form> <div align="center"> <hr/> </div> <p>Sample textarea follows:</p> <textarea id="yourFieldNameHere" style="width:814px; height:95px" runat="server"> </textarea><br/> <script type ="text/javascript" language="JavaScript1.2"> editor_generate('yourFieldNameHere'); </script> In the area of , unless I use runat="server", it won't work. It won't show the Text Editor. (I'm making Text Editor though.^^) In addition, if I make this way :<script type ="text/javascript" language="JavaScript1.2" runat="server">, then, there is a message "JavaScript1.2 is not a language applied for ASP.NET". But, no matter how I change "language = "JavaScript" runat="server", it still doesn't work. Any helps?? Thank you..</x-turndown>

    S P 3 Replies Last reply
    0
    • L lsh486love

      Hello. I made a master page whose name is "main.master". and I used this tag :

      And.. I made a sub page which is connected with the master page. I alreay know I shouldn't use the tag; like this. So, I made coding like the following this below. <form> <div align="center"> <hr/> </div> <p>Sample textarea follows:</p> <textarea id="yourFieldNameHere" style="width:814px; height:95px" runat="server"> </textarea><br/> <script type ="text/javascript" language="JavaScript1.2"> editor_generate('yourFieldNameHere'); </script> In the area of , unless I use runat="server", it won't work. It won't show the Text Editor. (I'm making Text Editor though.^^) In addition, if I make this way :<script type ="text/javascript" language="JavaScript1.2" runat="server">, then, there is a message "JavaScript1.2 is not a language applied for ASP.NET". But, no matter how I change "language = "JavaScript" runat="server", it still doesn't work. Any helps?? Thank you..</x-turndown>

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      I dont Think U have to Use

      tag again i.e. the masterpage has a form tag But If u want to use the Script tag then use it in Content place holder Like Below

      <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

      <script type="text/javascript">
      function checkDate(sender, args) {
          if (sender.\_selectedDate > new Date()) {
              alert("You cannot select a day greater than today!");
              sender.\_selectedDate = new Date();
              // set the date back to the current date
              sender.\_textbox.set\_Value(sender.\_selectedDate.format(sender.\_format))
          }
      }
        </script>
      

      If It Helps Click It as Answer

      1 Reply Last reply
      0
      • L lsh486love

        Hello. I made a master page whose name is "main.master". and I used this tag :

        And.. I made a sub page which is connected with the master page. I alreay know I shouldn't use the tag; like this. So, I made coding like the following this below. <form> <div align="center"> <hr/> </div> <p>Sample textarea follows:</p> <textarea id="yourFieldNameHere" style="width:814px; height:95px" runat="server"> </textarea><br/> <script type ="text/javascript" language="JavaScript1.2"> editor_generate('yourFieldNameHere'); </script> In the area of , unless I use runat="server", it won't work. It won't show the Text Editor. (I'm making Text Editor though.^^) In addition, if I make this way :<script type ="text/javascript" language="JavaScript1.2" runat="server">, then, there is a message "JavaScript1.2 is not a language applied for ASP.NET". But, no matter how I change "language = "JavaScript" runat="server", it still doesn't work. Any helps?? Thank you..</x-turndown>

        S Offline
        S Offline
        sashidhar
        wrote on last edited by
        #3

        Sorry I again posted the same answer

        If It Helps Click It as Answer

        1 Reply Last reply
        0
        • L lsh486love

          Hello. I made a master page whose name is "main.master". and I used this tag :

          And.. I made a sub page which is connected with the master page. I alreay know I shouldn't use the tag; like this. So, I made coding like the following this below. <form> <div align="center"> <hr/> </div> <p>Sample textarea follows:</p> <textarea id="yourFieldNameHere" style="width:814px; height:95px" runat="server"> </textarea><br/> <script type ="text/javascript" language="JavaScript1.2"> editor_generate('yourFieldNameHere'); </script> In the area of , unless I use runat="server", it won't work. It won't show the Text Editor. (I'm making Text Editor though.^^) In addition, if I make this way :<script type ="text/javascript" language="JavaScript1.2" runat="server">, then, there is a message "JavaScript1.2 is not a language applied for ASP.NET". But, no matter how I change "language = "JavaScript" runat="server", it still doesn't work. Any helps?? Thank you..</x-turndown>

          P Offline
          P Offline
          Prabhakar Parihar
          wrote on last edited by
          #4

          i think you use your script tag in between tag editor_generate('yourFieldNameHere'); May be try then firt is not reponse well editor_generate('yourFieldNameHere'); Prabhkar

          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