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