2
Is there a way or a tool, just to avoid rewriting, to replace a code developed in Webforms and transport it to MVC? In Webforms there are runat=server, user control, Asp: Label etc... Example of part of the code to be replaced:
<asp:ScriptManager ID="scpManager" runat="server" OnPreRender="scpManager_PreRender">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Label ID="Label10" runat="server" BackColor="#E1EBF2" Font-Bold="True" Font-Size="12pt"
ForeColor="#666666" Text="CNPJ: " Style="margin-left: 10px;"></asp:Label>
<asp:TextBox ID="txtCnpj" runat="server" Width="175px"></asp:TextBox>
<asp:Button ID="cmdPesquisar" runat="server" OnClick="cmdPesquisar_Click"
Text="Pesquisar" Width="106px" Style="margin-left: 10px;" />
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<div style="position: absolute; width: 99%; height: 99%; z-index: 1;">
<br />
<asp:Image ID="imgCarregando" runat="server" ImageUrl="~/Images/Carregando.gif"
Style="position: absolute; top: -27px; left: 393px; height: 32px;" Width="32px" />
<asp:Label ID="lblAtualiza" Style="position: absolute; top: -17px; left: 440px;" runat="server" Font-Size="12pt" ForeColor="#6D7CA3" Text="Pesquisando..."></asp:Label>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
Alias I think that not only html will have to be redone but a lot of code, after all not work with native webcontrols . net and yes with html normal Controls.
– Dorathoto
I’ve been waiting for this. The job we don’t want is what we have to do.
– pnet