control that doen't run in an updatepanel

Discussion in 'ASP .Net Web Controls' started by Trapulo, Sep 30, 2007.

  1. Trapulo

    Trapulo Guest

    I'm trying to run a "captcha" web control. Full control source is available
    here:
    http://www.codeproject.com/aspnet/CaptchaControl.asp?forumid=124885&select=2250821&df=100&fr=76

    It doesn't work if I put it in an UpdatePanel (ASP.NET Ajax), but I cannot
    understand where is the problem. Basically I've an updatepanel with an asp
    panel inside. This panel is not visible when the page is loaded, but
    contains the captcha control. After the user select a command from the page
    (a linkbutton external to the updatepanel), I make visible the panel. All
    this is working: then captcha control is visibile, and I can see the image.
    All other form fields and asp.net validators that are in the same panel work
    well, but this control cannot be validated.

    Any idea?

    thanks
     
    Trapulo, Sep 30, 2007
    #1
    1. Advertising

  2. Hi Trapulo,

    From your description, you're using a 3rd party validation code control and
    found it won't work well within ASP.NET ajax update panel, correct?

    As for this particular control, I've also downloaded the source and demo
    and tested in my local environment. I found that the auhtor indicate that
    you should disable the ViewState (in his sample page, he disabled the
    <form>'s viewstate). I've tested the validation control in updatepanel and
    with updatepanel's viewstate disabled and seems it can work correctly.
    Would this be the cause of the problem you met?

    BTW, for make custom control compatible with aspx updatepanel, here is a
    forum aritcle maybe helpful:

    #HOWTO: Write controls compatible with UpdatePanel without linking to the
    ASP.NET AJAX DLL
    http://forums.asp.net/p/1040033/1445844.aspx

    Sincerely,

    Steven Cheng

    Microsoft MSDN Online Support Lead



    ==================================================

    Get notification to my posts through email? Please refer to
    http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
    ications.



    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    http://msdn.microsoft.com/subscriptions/support/default.aspx.

    ==================================================


    This posting is provided "AS IS" with no warranties, and confers no rights.


    --------------------
    >From: "Trapulo" <>
    >Subject: control that doen't run in an updatepanel
    >Date: Sun, 30 Sep 2007 19:47:50 +0200


    >
    >I'm trying to run a "captcha" web control. Full control source is

    available
    >here:
    >http://www.codeproject.com/aspnet/CaptchaControl.asp?forumid=124885&select=

    2250821&df=100&fr=76
    >
    >It doesn't work if I put it in an UpdatePanel (ASP.NET Ajax), but I cannot
    >understand where is the problem. Basically I've an updatepanel with an asp
    >panel inside. This panel is not visible when the page is loaded, but
    >contains the captcha control. After the user select a command from the

    page
    >(a linkbutton external to the updatepanel), I make visible the panel. All
    >this is working: then captcha control is visibile, and I can see the

    image.
    >All other form fields and asp.net validators that are in the same panel

    work
    >well, but this control cannot be validated.
    >
    >Any idea?
    >
    >thanks
    >
    >
    >
     
    Steven Cheng[MSFT], Oct 1, 2007
    #2
    1. Advertising

  3. Trapulo

    Trapulo Guest

    Hello Steven,
    I've created a new blank project to investigate the problem. In fact,
    starting with a blank page the control did work after I used the
    updatePanel. But then I discovered what is that make it unworking.

    I've created a simple schema as this, that is a simple model of my real and
    original page:

    <asp:UpdatePanel ID="UpdatePanel2" runat="server">

    <ContentTemplate>

    <asp:Button ID="btnShow" EnableViewState="false" runat="server" Text="show"
    />

    </ContentTemplate>

    </asp:UpdatePanel>

    <div>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" EnableViewState="False"
    UpdateMode="Conditional">

    <ContentTemplate>

    <asp:panel ID="panelOne" runat="server" Visible="false"
    EnableViewState="true">

    <cc1:CaptchaControl ID="CaptchaControl1" runat="server" />

    <asp:Button ID="Button1" runat="server" Text="Button" />

    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />

    </asp:panel>

    </ContentTemplate>

    </asp:UpdatePanel>

    </div>

    I've just this code on codebehind:

    Protected Sub btnShow_Click(ByVal sender As Object, ByVal e As
    System.EventArgs) Handles btnShow.Click

    Me.panelOne.Visible = True

    Me.UpdatePanel1.Update()

    End Sub



    I know that there are better way to create this behavor, but as I said this
    is only a part of myoriginal page and UI logic :)

    After I put the btnShow button in the updatePanel2, the captcha stopped
    working. So I think that there is some error using ASP.NET Ajax, but I
    cannot find where.



    Thanks







    "Steven Cheng[MSFT]" <> wrote in message
    news:...
    > Hi Trapulo,
    >
    > From your description, you're using a 3rd party validation code control
    > and
    > found it won't work well within ASP.NET ajax update panel, correct?
    >
    > As for this particular control, I've also downloaded the source and demo
    > and tested in my local environment. I found that the auhtor indicate that
    > you should disable the ViewState (in his sample page, he disabled the
    > <form>'s viewstate). I've tested the validation control in updatepanel
    > and
    > with updatepanel's viewstate disabled and seems it can work correctly.
    > Would this be the cause of the problem you met?
    >
    > BTW, for make custom control compatible with aspx updatepanel, here is a
    > forum aritcle maybe helpful:
    >
    > #HOWTO: Write controls compatible with UpdatePanel without linking to the
    > ASP.NET AJAX DLL
    > http://forums.asp.net/p/1040033/1445844.aspx
    >
    > Sincerely,
    >
    > Steven Cheng
    >
    > Microsoft MSDN Online Support Lead
    >
    >
    >
    > ==================================================
    >
    > Get notification to my posts through email? Please refer to
    > http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
    > ications.
    >
    >
    >
    > Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    > where an initial response from the community or a Microsoft Support
    > Engineer within 1 business day is acceptable. Please note that each follow
    > up response may take approximately 2 business days as the support
    > professional working with you may need further investigation to reach the
    > most efficient resolution. The offering is not appropriate for situations
    > that require urgent, real-time or phone-based interactions or complex
    > project analysis and dump analysis issues. Issues of this nature are best
    > handled working with a dedicated Microsoft Support Engineer by contacting
    > Microsoft Customer Support Services (CSS) at
    > http://msdn.microsoft.com/subscriptions/support/default.aspx.
    >
    > ==================================================
    >
    >
    > This posting is provided "AS IS" with no warranties, and confers no
    > rights.
    >
    >
    > --------------------
    >>From: "Trapulo" <>
    >>Subject: control that doen't run in an updatepanel
    >>Date: Sun, 30 Sep 2007 19:47:50 +0200

    >
    >>
    >>I'm trying to run a "captcha" web control. Full control source is

    > available
    >>here:
    >>http://www.codeproject.com/aspnet/CaptchaControl.asp?forumid=124885&select=

    > 2250821&df=100&fr=76
    >>
    >>It doesn't work if I put it in an UpdatePanel (ASP.NET Ajax), but I cannot
    >>understand where is the problem. Basically I've an updatepanel with an asp
    >>panel inside. This panel is not visible when the page is loaded, but
    >>contains the captcha control. After the user select a command from the

    > page
    >>(a linkbutton external to the updatepanel), I make visible the panel. All
    >>this is working: then captcha control is visibile, and I can see the

    > image.
    >>All other form fields and asp.net validators that are in the same panel

    > work
    >>well, but this control cannot be validated.
    >>
    >>Any idea?
    >>
    >>thanks
    >>
    >>
    >>

    >
     
    Trapulo, Oct 1, 2007
    #3
  4. Trapulo

    Trapulo Guest

    I've found that if the updatePanel that contains the Captcha control has
    Viewstate disable, it doesn't work in my scenario. If I enable it, then the
    catcha works

    BTW, can I ask you for a suggestion? This control stores "captcha codes" in
    asp.net Cache. Can this be a performance or other kind of problem? Is it
    better if I encrypt code and flow it as parameter in image url tag (<img
    src="blabla.aspx?code=encryptedCode"), and in viewstate or other client side
    store?


    "Trapulo" <> wrote in message
    news:...
    > Hello Steven,
    > I've created a new blank project to investigate the problem. In fact,
    > starting with a blank page the control did work after I used the
    > updatePanel. But then I discovered what is that make it unworking.
    >
    > I've created a simple schema as this, that is a simple model of my real
    > and original page:
    >
    > <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    >
    > <ContentTemplate>
    >
    > <asp:Button ID="btnShow" EnableViewState="false" runat="server"
    > Text="show" />
    >
    > </ContentTemplate>
    >
    > </asp:UpdatePanel>
    >
    > <div>
    >
    > <asp:UpdatePanel ID="UpdatePanel1" runat="server" EnableViewState="False"
    > UpdateMode="Conditional">
    >
    > <ContentTemplate>
    >
    > <asp:panel ID="panelOne" runat="server" Visible="false"
    > EnableViewState="true">
    >
    > <cc1:CaptchaControl ID="CaptchaControl1" runat="server" />
    >
    > <asp:Button ID="Button1" runat="server" Text="Button" />
    >
    > <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    >
    > </asp:panel>
    >
    > </ContentTemplate>
    >
    > </asp:UpdatePanel>
    >
    > </div>
    >
    > I've just this code on codebehind:
    >
    > Protected Sub btnShow_Click(ByVal sender As Object, ByVal e As
    > System.EventArgs) Handles btnShow.Click
    >
    > Me.panelOne.Visible = True
    >
    > Me.UpdatePanel1.Update()
    >
    > End Sub
    >
    >
    >
    > I know that there are better way to create this behavor, but as I said
    > this is only a part of myoriginal page and UI logic :)
    >
    > After I put the btnShow button in the updatePanel2, the captcha stopped
    > working. So I think that there is some error using ASP.NET Ajax, but I
    > cannot find where.
    >
    >
    >
    > Thanks
    >
    >
    >
    >
    >
    >
    >
    > "Steven Cheng[MSFT]" <> wrote in message
    > news:...
    >> Hi Trapulo,
    >>
    >> From your description, you're using a 3rd party validation code control
    >> and
    >> found it won't work well within ASP.NET ajax update panel, correct?
    >>
    >> As for this particular control, I've also downloaded the source and demo
    >> and tested in my local environment. I found that the auhtor indicate that
    >> you should disable the ViewState (in his sample page, he disabled the
    >> <form>'s viewstate). I've tested the validation control in updatepanel
    >> and
    >> with updatepanel's viewstate disabled and seems it can work correctly.
    >> Would this be the cause of the problem you met?
    >>
    >> BTW, for make custom control compatible with aspx updatepanel, here is a
    >> forum aritcle maybe helpful:
    >>
    >> #HOWTO: Write controls compatible with UpdatePanel without linking to the
    >> ASP.NET AJAX DLL
    >> http://forums.asp.net/p/1040033/1445844.aspx
    >>
    >> Sincerely,
    >>
    >> Steven Cheng
    >>
    >> Microsoft MSDN Online Support Lead
    >>
    >>
    >>
    >> ==================================================
    >>
    >> Get notification to my posts through email? Please refer to
    >> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
    >> ications.
    >>
    >>
    >>
    >> Note: The MSDN Managed Newsgroup support offering is for non-urgent
    >> issues
    >> where an initial response from the community or a Microsoft Support
    >> Engineer within 1 business day is acceptable. Please note that each
    >> follow
    >> up response may take approximately 2 business days as the support
    >> professional working with you may need further investigation to reach the
    >> most efficient resolution. The offering is not appropriate for situations
    >> that require urgent, real-time or phone-based interactions or complex
    >> project analysis and dump analysis issues. Issues of this nature are best
    >> handled working with a dedicated Microsoft Support Engineer by contacting
    >> Microsoft Customer Support Services (CSS) at
    >> http://msdn.microsoft.com/subscriptions/support/default.aspx.
    >>
    >> ==================================================
    >>
    >>
    >> This posting is provided "AS IS" with no warranties, and confers no
    >> rights.
    >>
    >>
    >> --------------------
    >>>From: "Trapulo" <>
    >>>Subject: control that doen't run in an updatepanel
    >>>Date: Sun, 30 Sep 2007 19:47:50 +0200

    >>
    >>>
    >>>I'm trying to run a "captcha" web control. Full control source is

    >> available
    >>>here:
    >>>http://www.codeproject.com/aspnet/CaptchaControl.asp?forumid=124885&select=

    >> 2250821&df=100&fr=76
    >>>
    >>>It doesn't work if I put it in an UpdatePanel (ASP.NET Ajax), but I
    >>>cannot
    >>>understand where is the problem. Basically I've an updatepanel with an
    >>>asp
    >>>panel inside. This panel is not visible when the page is loaded, but
    >>>contains the captcha control. After the user select a command from the

    >> page
    >>>(a linkbutton external to the updatepanel), I make visible the panel. All
    >>>this is working: then captcha control is visibile, and I can see the

    >> image.
    >>>All other form fields and asp.net validators that are in the same panel

    >> work
    >>>well, but this control cannot be validated.
    >>>
    >>>Any idea?
    >>>
    >>>thanks
    >>>
    >>>
    >>>

    >>

    >
    >
     
    Trapulo, Oct 1, 2007
    #4
  5. Thanks for your followup Trapulo,

    For the further memory pressure issue, I'm wondering whether your
    application will be a high available one that has large concurrent users,
    if not, I think such cache usage would be ok. Otherwise, surely, you can
    put the code into encrypted urlstring or page's html source.

    Sincerely,

    Steven Cheng

    Microsoft MSDN Online Support Lead


    This posting is provided "AS IS" with no warranties, and confers no rights.
    --------------------
    >From: "Trapulo" <>
    >References: <>

    <>
    <>
    >Subject: Re: control that doen't run in an updatepanel
    >Date: Mon, 1 Oct 2007 16:30:52 +0200


    >
    >I've found that if the updatePanel that contains the Captcha control has
    >Viewstate disable, it doesn't work in my scenario. If I enable it, then

    the
    >catcha works
    >
    >BTW, can I ask you for a suggestion? This control stores "captcha codes"

    in
    >asp.net Cache. Can this be a performance or other kind of problem? Is it
    >better if I encrypt code and flow it as parameter in image url tag (<img
    >src="blabla.aspx?code=encryptedCode"), and in viewstate or other client

    side
    >store?
    >
    >
    >"Trapulo" <> wrote in message
    >news:...
    >> Hello Steven,
    >> I've created a new blank project to investigate the problem. In fact,
    >> starting with a blank page the control did work after I used the
    >> updatePanel. But then I discovered what is that make it unworking.
    >>
    >> I've created a simple schema as this, that is a simple model of my real
    >> and original page:
    >>
    >> <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    >>
    >> <ContentTemplate>
    >>
    >> <asp:Button ID="btnShow" EnableViewState="false" runat="server"
    >> Text="show" />
    >>
    >> </ContentTemplate>
    >>
    >> </asp:UpdatePanel>
    >>
    >> <div>
    >>
    >> <asp:UpdatePanel ID="UpdatePanel1" runat="server"

    EnableViewState="False"
    >> UpdateMode="Conditional">
    >>
    >> <ContentTemplate>
    >>
    >> <asp:panel ID="panelOne" runat="server" Visible="false"
    >> EnableViewState="true">
    >>
    >> <cc1:CaptchaControl ID="CaptchaControl1" runat="server" />
    >>
    >> <asp:Button ID="Button1" runat="server" Text="Button" />
    >>
    >> <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    >>
    >> </asp:panel>
    >>
    >> </ContentTemplate>
    >>
    >> </asp:UpdatePanel>
    >>
    >> </div>
    >>
    >> I've just this code on codebehind:
    >>
    >> Protected Sub btnShow_Click(ByVal sender As Object, ByVal e As
    >> System.EventArgs) Handles btnShow.Click
    >>
    >> Me.panelOne.Visible = True
    >>
    >> Me.UpdatePanel1.Update()
    >>
    >> End Sub
    >>
    >>
    >>
    >> I know that there are better way to create this behavor, but as I said
    >> this is only a part of myoriginal page and UI logic :)
    >>
    >> After I put the btnShow button in the updatePanel2, the captcha stopped
    >> working. So I think that there is some error using ASP.NET Ajax, but I
    >> cannot find where.
    >>
    >>
    >>
    >> Thanks
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    >> "Steven Cheng[MSFT]" <> wrote in message
    >> news:...
    >>> Hi Trapulo,
    >>>
    >>> From your description, you're using a 3rd party validation code control
    >>> and
    >>> found it won't work well within ASP.NET ajax update panel, correct?
    >>>
    >>> As for this particular control, I've also downloaded the source and demo
    >>> and tested in my local environment. I found that the auhtor indicate

    that
    >>> you should disable the ViewState (in his sample page, he disabled the
    >>> <form>'s viewstate). I've tested the validation control in updatepanel
    >>> and
    >>> with updatepanel's viewstate disabled and seems it can work correctly.
    >>> Would this be the cause of the problem you met?
    >>>
    >>> BTW, for make custom control compatible with aspx updatepanel, here is a
    >>> forum aritcle maybe helpful:
    >>>
    >>> #HOWTO: Write controls compatible with UpdatePanel without linking to

    the
    >>> ASP.NET AJAX DLL
    >>> http://forums.asp.net/p/1040033/1445844.aspx
    >>>
    >>> Sincerely,
    >>>
    >>> Steven Cheng
    >>>
    >>> Microsoft MSDN Online Support Lead
    >>>
    >>>
    >>>
    >>> ==================================================
    >>>
    >>> Get notification to my posts through email? Please refer to
    >>>

    http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
    >>> ications.
    >>>
    >>>
    >>>
    >>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
    >>> issues
    >>> where an initial response from the community or a Microsoft Support
    >>> Engineer within 1 business day is acceptable. Please note that each
    >>> follow
    >>> up response may take approximately 2 business days as the support
    >>> professional working with you may need further investigation to reach

    the
    >>> most efficient resolution. The offering is not appropriate for

    situations
    >>> that require urgent, real-time or phone-based interactions or complex
    >>> project analysis and dump analysis issues. Issues of this nature are

    best
    >>> handled working with a dedicated Microsoft Support Engineer by

    contacting
    >>> Microsoft Customer Support Services (CSS) at
    >>> http://msdn.microsoft.com/subscriptions/support/default.aspx.
    >>>
    >>> ==================================================
    >>>
    >>>
    >>> This posting is provided "AS IS" with no warranties, and confers no
    >>> rights.
    >>>
    >>>
    >>> --------------------
    >>>>From: "Trapulo" <>
    >>>>Subject: control that doen't run in an updatepanel
    >>>>Date: Sun, 30 Sep 2007 19:47:50 +0200
    >>>
    >>>>
    >>>>I'm trying to run a "captcha" web control. Full control source is
    >>> available
    >>>>here:
    >>>>http://www.codeproject.com/aspnet/CaptchaControl.asp?forumid=124885&sele

    ct=
    >>> 2250821&df=100&fr=76
    >>>>
    >>>>It doesn't work if I put it in an UpdatePanel (ASP.NET Ajax), but I
    >>>>cannot
    >>>>understand where is the problem. Basically I've an updatepanel with an
    >>>>asp
    >>>>panel inside. This panel is not visible when the page is loaded, but
    >>>>contains the captcha control. After the user select a command from the
    >>> page
    >>>>(a linkbutton external to the updatepanel), I make visible the panel.

    All
    >>>>this is working: then captcha control is visibile, and I can see the
    >>> image.
    >>>>All other form fields and asp.net validators that are in the same panel
    >>> work
    >>>>well, but this control cannot be validated.
    >>>>
    >>>>Any idea?
    >>>>
    >>>>thanks
    >>>>
    >>>>
    >>>>
    >>>

    >>
    >>

    >
    >
    >
     
    Steven Cheng[MSFT], Oct 2, 2007
    #5
  6. Trapulo

    Trapulo Guest

    Thank you

    "Steven Cheng[MSFT]" <> wrote in message
    news:...
    > Thanks for your followup Trapulo,
    >
    > For the further memory pressure issue, I'm wondering whether your
    > application will be a high available one that has large concurrent users,
    > if not, I think such cache usage would be ok. Otherwise, surely, you can
    > put the code into encrypted urlstring or page's html source.
    >
    > Sincerely,
    >
    > Steven Cheng
    >
    > Microsoft MSDN Online Support Lead
    >
    >
    > This posting is provided "AS IS" with no warranties, and confers no
    > rights.
    > --------------------
    >>From: "Trapulo" <>
    >>References: <>

    > <>
    > <>
    >>Subject: Re: control that doen't run in an updatepanel
    >>Date: Mon, 1 Oct 2007 16:30:52 +0200

    >
    >>
    >>I've found that if the updatePanel that contains the Captcha control has
    >>Viewstate disable, it doesn't work in my scenario. If I enable it, then

    > the
    >>catcha works
    >>
    >>BTW, can I ask you for a suggestion? This control stores "captcha codes"

    > in
    >>asp.net Cache. Can this be a performance or other kind of problem? Is it
    >>better if I encrypt code and flow it as parameter in image url tag (<img
    >>src="blabla.aspx?code=encryptedCode"), and in viewstate or other client

    > side
    >>store?
    >>
    >>
    >>"Trapulo" <> wrote in message
    >>news:...
    >>> Hello Steven,
    >>> I've created a new blank project to investigate the problem. In fact,
    >>> starting with a blank page the control did work after I used the
    >>> updatePanel. But then I discovered what is that make it unworking.
    >>>
    >>> I've created a simple schema as this, that is a simple model of my real
    >>> and original page:
    >>>
    >>> <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    >>>
    >>> <ContentTemplate>
    >>>
    >>> <asp:Button ID="btnShow" EnableViewState="false" runat="server"
    >>> Text="show" />
    >>>
    >>> </ContentTemplate>
    >>>
    >>> </asp:UpdatePanel>
    >>>
    >>> <div>
    >>>
    >>> <asp:UpdatePanel ID="UpdatePanel1" runat="server"

    > EnableViewState="False"
    >>> UpdateMode="Conditional">
    >>>
    >>> <ContentTemplate>
    >>>
    >>> <asp:panel ID="panelOne" runat="server" Visible="false"
    >>> EnableViewState="true">
    >>>
    >>> <cc1:CaptchaControl ID="CaptchaControl1" runat="server" />
    >>>
    >>> <asp:Button ID="Button1" runat="server" Text="Button" />
    >>>
    >>> <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    >>>
    >>> </asp:panel>
    >>>
    >>> </ContentTemplate>
    >>>
    >>> </asp:UpdatePanel>
    >>>
    >>> </div>
    >>>
    >>> I've just this code on codebehind:
    >>>
    >>> Protected Sub btnShow_Click(ByVal sender As Object, ByVal e As
    >>> System.EventArgs) Handles btnShow.Click
    >>>
    >>> Me.panelOne.Visible = True
    >>>
    >>> Me.UpdatePanel1.Update()
    >>>
    >>> End Sub
    >>>
    >>>
    >>>
    >>> I know that there are better way to create this behavor, but as I said
    >>> this is only a part of myoriginal page and UI logic :)
    >>>
    >>> After I put the btnShow button in the updatePanel2, the captcha stopped
    >>> working. So I think that there is some error using ASP.NET Ajax, but I
    >>> cannot find where.
    >>>
    >>>
    >>>
    >>> Thanks
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>
    >>> "Steven Cheng[MSFT]" <> wrote in message
    >>> news:...
    >>>> Hi Trapulo,
    >>>>
    >>>> From your description, you're using a 3rd party validation code control
    >>>> and
    >>>> found it won't work well within ASP.NET ajax update panel, correct?
    >>>>
    >>>> As for this particular control, I've also downloaded the source and
    >>>> demo
    >>>> and tested in my local environment. I found that the auhtor indicate

    > that
    >>>> you should disable the ViewState (in his sample page, he disabled the
    >>>> <form>'s viewstate). I've tested the validation control in updatepanel
    >>>> and
    >>>> with updatepanel's viewstate disabled and seems it can work correctly.
    >>>> Would this be the cause of the problem you met?
    >>>>
    >>>> BTW, for make custom control compatible with aspx updatepanel, here is
    >>>> a
    >>>> forum aritcle maybe helpful:
    >>>>
    >>>> #HOWTO: Write controls compatible with UpdatePanel without linking to

    > the
    >>>> ASP.NET AJAX DLL
    >>>> http://forums.asp.net/p/1040033/1445844.aspx
    >>>>
    >>>> Sincerely,
    >>>>
    >>>> Steven Cheng
    >>>>
    >>>> Microsoft MSDN Online Support Lead
    >>>>
    >>>>
    >>>>
    >>>> ==================================================
    >>>>
    >>>> Get notification to my posts through email? Please refer to
    >>>>

    > http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
    >>>> ications.
    >>>>
    >>>>
    >>>>
    >>>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
    >>>> issues
    >>>> where an initial response from the community or a Microsoft Support
    >>>> Engineer within 1 business day is acceptable. Please note that each
    >>>> follow
    >>>> up response may take approximately 2 business days as the support
    >>>> professional working with you may need further investigation to reach

    > the
    >>>> most efficient resolution. The offering is not appropriate for

    > situations
    >>>> that require urgent, real-time or phone-based interactions or complex
    >>>> project analysis and dump analysis issues. Issues of this nature are

    > best
    >>>> handled working with a dedicated Microsoft Support Engineer by

    > contacting
    >>>> Microsoft Customer Support Services (CSS) at
    >>>> http://msdn.microsoft.com/subscriptions/support/default.aspx.
    >>>>
    >>>> ==================================================
    >>>>
    >>>>
    >>>> This posting is provided "AS IS" with no warranties, and confers no
    >>>> rights.
    >>>>
    >>>>
    >>>> --------------------
    >>>>>From: "Trapulo" <>
    >>>>>Subject: control that doen't run in an updatepanel
    >>>>>Date: Sun, 30 Sep 2007 19:47:50 +0200
    >>>>
    >>>>>
    >>>>>I'm trying to run a "captcha" web control. Full control source is
    >>>> available
    >>>>>here:
    >>>>>http://www.codeproject.com/aspnet/CaptchaControl.asp?forumid=124885&sele

    > ct=
    >>>> 2250821&df=100&fr=76
    >>>>>
    >>>>>It doesn't work if I put it in an UpdatePanel (ASP.NET Ajax), but I
    >>>>>cannot
    >>>>>understand where is the problem. Basically I've an updatepanel with an
    >>>>>asp
    >>>>>panel inside. This panel is not visible when the page is loaded, but
    >>>>>contains the captcha control. After the user select a command from the
    >>>> page
    >>>>>(a linkbutton external to the updatepanel), I make visible the panel.

    > All
    >>>>>this is working: then captcha control is visibile, and I can see the
    >>>> image.
    >>>>>All other form fields and asp.net validators that are in the same panel
    >>>> work
    >>>>>well, but this control cannot be validated.
    >>>>>
    >>>>>Any idea?
    >>>>>
    >>>>>thanks
    >>>>>
    >>>>>
    >>>>>
    >>>>
    >>>
    >>>

    >>
    >>
    >>

    >
     
    Trapulo, Oct 3, 2007
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. onetitfemme
    Replies:
    4
    Views:
    665
    Roedy Green
    Oct 18, 2005
  2. Joona I Palaste
    Replies:
    9
    Views:
    626
    Peter Shaggy Haywood
    Oct 12, 2003
  3. =?Utf-8?B?cGF0cmlja2RyZA==?=

    gridview inside datagrid doen't raise RowCommand event

    =?Utf-8?B?cGF0cmlja2RyZA==?=, Apr 3, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    2,711
    =?Utf-8?B?cGF0cmlja2RyZA==?=
    Apr 4, 2007
  4. Fransis il Mulo

    [HELP] Global.asax doen't execute OnBeginRequest

    Fransis il Mulo, Feb 26, 2008, in forum: ASP .Net
    Replies:
    3
    Views:
    1,450
    Fransis il Mulo
    Feb 27, 2008
  5. Valmir
    Replies:
    4
    Views:
    160
Loading...

Share This Page