开发者

add class file using umbraco

开发者 https://www.devze.com 2023-03-12 12:29 出处:网络
i have a login page named test.ascx and also a test.ascx.cs.in the web config i set a database.i have problem when conneting to database.i write all the connetion oriented codes in a class file named

i have a login page named test.ascx and also a test.ascx.cs.in the web config i set a database.i have problem when conneting to database.i write all the connetion oriented codes in a class file named test.cs.how can i add this class file in umbraco.

ascx cod开发者_开发百科e is

<div style="border:solid 1px red;margin:50px 0px 0px 400px;width:275px; height: 98px;
text-align:center;">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:TextBox ID="txtpass" runat="server"></asp:TextBox><br />
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /><br />
<asp:Label ID="lblmsg" runat="server"></asp:Label>

</div>


you can add a usercontrol into umbraco by using macro. For this you have to create a web project and have to add its dll to your umbraco bin folder. If you have class files then by adding this dll you can use that class also.

you have to add the ascx files into usercontrol folder and have to create a macro using this usercontrol.

Please check the link

0

精彩评论

暂无评论...
验证码 换一张
取 消