PDA

View Full Version : اجرا نشدن ChangePassword



mohsen200162
دوشنبه 14 مهر 1393, 08:25 صبح
سلام از یک کنترل ChangePassword استفاده می کنم ولی این ارور رو می گیره چطور درستش کنم
Control 'ContentPlaceHolder1_ChangePassword1' of type 'ChangePassword' must be placed inside a form tag with runat=server. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Control 'ContentPlaceHolder1_ChangePassword1' of type 'ChangePassword' must be placed inside a form tag with runat=server.

Source Error:

این کدش
<asp:ChangePassword ID="ChangePassword1" runat="server"></asp:ChangePassword>

parvizwpf
دوشنبه 14 مهر 1393, 09:42 صبح
ظاهرا این کنترل رو خارج از محدوده تگ فرم اصلی نوشتید یا اینکه تگ فرم شما دارای خصوصیت:
runat=server
نیست.