Sign In  Sign Up Live-Chat

Form not posting/restoring its values when inside a masterpage???

Last post 07-03-2008, 8:58 AM by iret. 20 replies.
Page 1 of 2 (21 items)   1 2 Next >
Sort Posts: Previous Next
  •  06-11-2008, 7:32 AM 130931

    Form not posting/restoring its values when inside a masterpage???

    Hi guys,
    I'm using Aspose.Form inside a normal .aspx page, and everything works as expected. I load the xsn template in form_load, and process the posted values in the button1_click event. However, if I use the exact same code in a page that uses a masterpage, it stops working! I mean, the form is displayed correctly the first time the page load (!postback), but when I generate a postback the XmlDataNode and XmlDataString properties are empty, no values at all!

    Is this a known bug? Is there a fix? I suppose I'm not using the control in a wrong way, since it works as expected without a masterpage...

    I look forward to a quick reply.
    Thanks
    Filed under: form;masterpage;xsn
     
  •  06-12-2008, 9:46 AM 131120 in reply to 130931

    Re: Form not posting/restoring its values when inside a masterpage???

    It is a known bug of current release. We are working to provide the hotfix ASAP.

    Thanks


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-16-2008, 2:28 AM 131379 in reply to 131120

    Re: Form not posting/restoring its values when inside a masterpage???

    OK. Can you please post here when you publish the fix, so that I get notified?

    Can you estimate a release date for the fix? I need to know some date to see if the fix will come before the release of our product which is using the control. Thanks
     
  •  06-18-2008, 8:48 AM 131876 in reply to 131379

    Re: Form not posting/restoring its values when inside a masterpage???

    Attachment: Present (inaccessible)

    Hello, Please try the beta dll, Let me know if it works

    Here is the change list

    1. Use Aspose.Form.Web.UI.WebControls.XmlFormViewer to replace the FormControl

    2. add httpmodule to your web config as following

    <httpModules>
       <add name="CustomModule" type="Aspose.Form.Web.UI.WebControls.Custom.CustomHttpModule, Aspose.Form"/>
      </httpModules>
      <xhtmlConformance mode="Legacy"/></system.web>
    </configuration>

     

     


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-18-2008, 8:59 AM 131879 in reply to 131876

    Re: Form not posting/restoring its values when inside a masterpage???

    where do I find the beta dll? I went to http://www.aspose.com/community/files/51/file-format-components/aspose.form/category1094.aspx but the most recent DLL is 1.2 (not beta), which is the one I'm currently using.
     
  •  06-18-2008, 9:01 PM 132008 in reply to 131879

    Re: Form not posting/restoring its values when inside a masterpage???

    1. Please check my the attachment of my previous post.

    2. Yes, we need to change many thing to fix this bug. Please use the beta dll, not the v1.2. You may need to change your code a little bit according my previous post.

    Thanks


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-23-2008, 2:55 AM 132489 in reply to 132008

    Re: Form not posting/restoring its values when inside a masterpage???

    The new dll breaks all my code. where is the XmlDataNode prop, that I use extensively? Gosh...never heard of backward compatibility??
     
  •  06-23-2008, 3:07 AM 132491 in reply to 132489

    Re: Form not posting/restoring its values when inside a masterpage???

    I didn't manage to make it work...can you please just fix the current 1.2 version to work with master pages? I was happy with the way it worked, except for the master page bug...
     
  •  06-24-2008, 5:04 AM 132736 in reply to 131876

    Re: Form not posting/restoring its values when inside a masterpage???

    Hello.

    I have tried the 1.3 RC1 dll (.Net 2) but I'm getting the following error in the ASPX page:

    Unknown server tag 'cc1:FormControl'.

    The incriminated line is
    <cc1:FormControl id="FormControl1" runat="server"></cc1:FormControl>

    The registration on top of the page is

    <%@ Register TagPrefix="cc1" Namespace="Aspose.Form.Web.Controls" Assembly="Aspose.Form" %>

    Can you help pleae ?
    Thanks

    Regards
    Augusto

     
  •  06-24-2008, 5:40 AM 132746 in reply to 131876

    Re: Form not posting/restoring its values when inside a masterpage???

    Hello.

    I have found out that the I have to put cc1:XmlFormView when I'm using the control.

    Fine, but now I have another problem. After I fill in the form and I do a post (button click) and I'm getting the fields with XmlDataString property, I get the following error:

    Wizard_ActiveStepIndex_out_of_range

    Stack Trace
    at Aspose.Form.Web.UI.WebControls.MultipleViewControl.get_x5a6a0e81feebb18f()
    at Aspose.Form.Web.UI.WebControls.XmlFormView.get_x82fca114523811b9()
    at Aspose.Form.Web.UI.WebControls.XmlFormView.get_XmlDataString()
    at OPMS.FormViewer.SubmitForm() in c:\Projets\OPMS\Dev\App\FMS\FormViewer.aspx.cs:line 221
    at OPMS.FormViewer.LinkButtonSubmit_Click(Object sender, EventArgs e) in c:\Projets\OPMS\Dev\App\FMS\FormViewer.aspx.cs:line 69
    at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
    at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


    I'm OK to use beta RC 1.3 but all the basic functionalities MUST work. What should I do to get the content of the fields.

    Is this beta 1.3 enough stable to develop ?

    Please help. It's really URGENT.

    Thanks
    Regards
    Augusto

     
  •  06-24-2008, 11:53 AM 132815 in reply to 132746

    Re: Form not posting/restoring its values when inside a masterpage???

    Hi,

    Sorry for the inconvenience. We will fix the 1.3 version shortly. All the basic functionalities would be working in that release. The 1.3 version is expected to release within this week.


    Best Regards,

    Saqib Razzaq
    Support Developer
    Aspose Guangzhou Team

     
  •  06-24-2008, 11:12 PM 132919 in reply to 132746

    Re: Form not posting/restoring its values when inside a masterpage???

    Attachment: Present (inaccessible)

    Hello, Augusto,

    The bug you reported in the beta RC 1.3 has been fixed in the official release. Please check the dll attached. Or you can download it from the download center.

    Thanks


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-24-2008, 11:29 PM 132920 in reply to 132491

    Re: Form not posting/restoring its values when inside a masterpage???

    Hello, devguy,

    I am very sorry for the inconvenience in the upgrade.

    We have fixed this bug in master page in the official release of the v1.3.0. Moreover, The XmlDataNode property is also provided on this release.

    Please download the attached dll, or you can go to the download center to get the full install package.

    I am glad to help you upgrade your code and project if possible. You can send me your code. I will help to fix them.

    Thanks again.


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-25-2008, 9:54 AM 133024 in reply to 132920

    Re: Form not posting/restoring its values when inside a masterpage???

    Attachment: Present (inaccessible)

    Hello, devguy,

    In order to provide backwords compatibility, I have reload the v1.2 code base and fixed the master page issue on that version.

    Please check it out. Let me know if it works for you. Sorry for the inconvenience in the upgrade.


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-26-2008, 2:05 AM 133169 in reply to 132920

    Re: Form not posting/restoring its values when inside a masterpage???

    Hi iret.

    I have just installed 1.3.0 and I will try this new release. Thanks for the update.

    Just a quick remark regarding the installation. The default installation folder is Aspose_Ltd instead of Aspose like the previous version and products (Words for example). Is it the new default folder you will use in the future or do you think it's a mistake in the setup ?

    Thanks.
    Regards
    Augusto
     
Page 1 of 2 (21 items)   1 2 Next >
View as RSS news feed in XML