Click here to Skip to main content
15,885,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
ASP.NET
<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>
Posted
Updated 6-May-13 0:23am
v3
Comments
Thanks7872 6-May-13 5:36am    
Remove unnecessary code.Only post the code where you encountered the error.
vijay__p 6-May-13 5:40am    
Can you post your html with js on jsFiddle?

1 solution

Hi,
In Html page you can not use directly asp.net controls like
ASP.NET
<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
HTML
<input type="text" name="Txtname" id="Txtname" />

and instead of
ASP.NET
<asp:button id="Btn" runat="server" text="Send" xmlns:asp="#unknown" />

this to
HTML
<input type="button" name="Btn" value="Send" id="Btn" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900