Originally Posted by
Daniil
Hi,
I guess you don't recreate a control during DirectEvent and trying to access that control.
How do you create 'ctl00$Child1$btnForgottenPassWord' control?
Can you provide a full sample to reproduce?
Hello Daniil
this is the code i have one question
<asp:tablerow>
<asp:tablecell>
<ext:TextField ID="txtFirstName_Forgot" EmptyText="First Name" runat="server" LabelWidth="64">
</ext:TextField>
<asp:dropdownlist id="LAST_NAME" runat="server" visible="False" />
</asp:tablecell>
<asp:tablecell>
</asp:tablecell>
<asp:tablecell>
<ext:TextField ID="txtLAST_NAME_Forgot" EmptyText="Last Name" runat="server" LabelWidth="64">
</ext:TextField>
</asp:tablecell>
</asp:tablerow>
</asp:table>
<asp:hiddenfield id="arrFIRST_NAME" runat="server" />
<asp:dropdownlist id="FIRST_NAME" runat="server" visible="false"/>
<br />
<ext:Button ID="btnForgottenPassWord" runat="server" Text="Email My Password" CausesValidation="False"
PostBackUrl="Password/extPass.aspx" IconCls="add32" >
</ext:Button>
This is code part of that when i click on the button that will give the error like
An error has occurred because a control with id 'ctl00$Child1$btnForgottenPassWord' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.
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: An error has occurred because a control with id 'ctl00$Child1$btnForgottenPassWord' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): An error has occurred because a control with id 'ctl00$Child1$btnForgottenPassWord' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.]
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +839
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
i have one question
1.can i use asp: controls and ext:control in same page they give me some problem
the asp:label control not support with extnetcontrol like i assign the etx:textfield value to asp:label on click they not shown result
plz give me some result for the buttonclick