我的HTML代码的错误更正 [英] error correction for my html code
问题描述
Hai,
我下载了一个模板并尝试使用visual studio编辑该模板。在尝试编辑其联系页面时,我将其文本框和按钮替换为工具箱文本框和按钮。但是它没有创建文本框而是显示错误显示错误创建控件值不能为空参数名称:frameworkname.which值这个错误引用。如果你可以帮我纠正这个错误,那将是你的好意。以下是HTML代码
< div id = templatemo_main >
< h2 > 联系信息< / h2 >
< < span class =code-leadattribute> div class = half float_l >
< h4 > 立即发送邮件给我们!< span class =code-keyword>< / h4 >
< p > 如果你有任何疑问,请告诉我们< / p >
< div id = contact_form >
名称:< asp:TextBox ID = Txtname runat = server 宽度 = 398 > < / asp:TextBox >
< br / >
您的电子邮件:< br / >
< asp:TextBox ID = txtmail runat = server 宽度 = 398 > < / asp:TextBox >
< br / >
主题:< br / >
< asp:TextBox ID = txtsubject runat = server 宽度 = 398 > < / asp:TextBox >
< br / >
消息:< br / >
< asp:TextBox ID = Txtmsge runat = <跨度class =code-keyword> server 宽度 = 398 高度 = 200 TextMode = MultiLine > < / asp:TextBox >
< br / >
< asp:按钮 ID = Btn runat = server 文本 = 发送 / >
< / div < span class =code-keyword>>
< / div >
在Html页面中,您不能直接使用asp.net控件,例如
< asp:textbox xmlns:asp = #unknown / > 或< asp:按钮 xmlns:asp = #unknown / >标签。
所以请尝试使用此代码而不是
< asp:TextBox ID =Txtnamerunat =serverWidth =398>< / asp:TextBox>
this
< 输入 类型 = text name = Txtname id = Txtname / >
而不是< asp:按钮 id = Btn runat = server text = 发送 xmlns:asp = #unknown / < span class =code-keyword>>
this to
< input 类型 = 按钮 名称 = Btn value = 发送 id = Btn / > 跨度>
Hai,
I downloaded a template and tried to edit that template using visual studio.While trying to edit its contact page, I replaced its textbox and button with that of toolbox textbox and buttons.But it did''nt create the textbox instead displayed error showing "error creating control value cannot be null parameter name:frameworkname".which value does this error refer to.it would be kindful of you if you could help me correct this error.Following is the html code
<div id="templatemo_main">
<h2>Contact Information</h2>
<div class="half float_l">
<h4>Send us a message now!</h4>
<p>If you have any query,Please let us know</p>
<div id="contact_form">
Name:<asp:TextBox ID="Txtname" runat="server" Width="398"></asp:TextBox>
<br />
Your Email:<br />
<asp:TextBox ID="txtmail" runat="server" Width="398"></asp:TextBox>
<br />
Subject:<br />
<asp:TextBox ID="txtsubject" runat="server" Width="398"></asp:TextBox>
<br />
Message:<br />
<asp:TextBox ID="Txtmsge" runat="server" Width="398" Height="200" TextMode="MultiLine"></asp:TextBox>
<br />
<asp:Button ID="Btn" runat="server" Text="Send" />
</div>
</div>
Hi,
In Html page you can not use directly asp.net controls like
<asp:textbox xmlns:asp="#unknown" /> or <asp:button xmlns:asp="#unknown" />tags.
so please try this code instead of
<asp:TextBox ID="Txtname" runat="server" Width="398"></asp:TextBox>
this to
<input type="text" name="Txtname" id="Txtname" />
and instead of<asp:button id="Btn" runat="server" text="Send" xmlns:asp="#unknown" />
this to
<input type="button" name="Btn" value="Send" id="Btn" />
这篇关于我的HTML代码的错误更正的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!