I have a set of usercontrols, with 3 pages. First page has some autopostback events, such as a calendar, an upload image button, a dropdown selection according to which an image is selected & a radio button selecting which a text box appears. Without these events the page will not let it proceed to next step or next usercontrol page When I tested the usercontrols in a normal aspx it works fine. I included it in umbraco & the autopostback & postback event is not firing, it loads the page again with "?" sign at the end & the selected option is not loaded. I dont know how this can be done
Have you tried debugging the control in visual studio while it's running in umbraco by attaching to the process? By doing this you can set break points and step through the code to see what's being fired when.
Paul Sterling wrote a tutorial awhile back to get you started:
After some email conversations with Niklas Wahlberg & he pointed out that I might be having problems with missing <form id="form1" runat="server"> <!-- all
your content here --> </form>
So, there is a form tag in runway master template & when I put the macro
in runway textarea it gave me error that
Control 'ctl00_ctl00_ctl00_ContentPlaceHolderDefault_RunwayContentPlaceHolder_CreateInvitation_2_FileUpload'
of type 'FileUpload' must be placed inside a form tag with
runat=server.
So I placed the macro in this fashion in the template:
This issue has been solved, I apologize for this, there was a small mistake I was making in my template by adding <form id = "form1"> before macro the issue was solved.
page load and autopostback events not firing
HI Everyone
I have a set of usercontrols, with 3 pages. First page has some autopostback events, such as a calendar, an upload image button, a dropdown selection according to which an image is selected & a radio button selecting which a text box appears. Without these events the page will not let it proceed to next step or next usercontrol page
When I tested the usercontrols in a normal aspx it works fine. I included it in umbraco & the autopostback & postback event is not firing, it loads the page again with "?" sign at the end & the selected option is not loaded. I dont know how this can be done
Please help. Thank You!
Have you tried debugging the control in visual studio while it's running in umbraco by attaching to the process? By doing this you can set break points and step through the code to see what's being fired when.
Paul Sterling wrote a tutorial awhile back to get you started:
http://paulsterling.spaces.live.com/Blog/cns!52F15258BD1B885B!379.entry
Might point you to the problem.
-Chris
After some email conversations with Niklas Wahlberg & he pointed out that I might be having problems with missing
<form id="form1" runat="server">
<!-- all your content here -->
</form>
So, there is a form tag in runway master template & when I put the macro in runway textarea it gave me error that
So I placed the macro in this fashion in the template:
then it gave me this error
So eventually I placed it in a template which din't had any form tag in its master so I manually put the same form tag in the textarea template
Eventually ended in this problem :(
This issue has been solved, I apologize for this, there was a small mistake I was making in my template by adding <form id = "form1"> before macro the issue was solved.
Uhm...so you had two nested form tag ...
is working on a reply...