Convert html contols to asp.net controls programatically
-
Hello All, I have got a web design template in .HTML format. I want to parse the html file and convert that into .Aspx format programatically and then add to my ASP.Net project and start coding that. for e.g. if i have <input type="text" value="hello" /> tag in my html page, i want this to be converted as an asp.net control programatically <asp:textbox id="TextBox1" runat="server" /> I want for all the html controls to be converted into asp.net controls. Is there any tool available for this. Thanx in Advance
-
Hello All, I have got a web design template in .HTML format. I want to parse the html file and convert that into .Aspx format programatically and then add to my ASP.Net project and start coding that. for e.g. if i have <input type="text" value="hello" /> tag in my html page, i want this to be converted as an asp.net control programatically <asp:textbox id="TextBox1" runat="server" /> I want for all the html controls to be converted into asp.net controls. Is there any tool available for this. Thanx in Advance
Imran. Mohammed wrote:
Is there any tool available for this.
nope there is no such tool. Sorry, you're on your own. You could add runtat=server to the HTML control, but they will still be html control that run on the server.
Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
-
Imran. Mohammed wrote:
Is there any tool available for this.
nope there is no such tool. Sorry, you're on your own. You could add runtat=server to the HTML control, but they will still be html control that run on the server.
Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
-
I know runat=server attribute. What i want is: Is there any way to change the html controls to asp.net controls programatically.
no, unless you write a code to handle all possible cases
Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]