Hello,
I'm pretty new to ASP.NET C#, and I'm struggling with what I'd imagine is a pretty simple process.
I have a page (default.aspx) that pulls in a user control (quote_generator.ascx). The user control includes a set of text boxes and dropdownlists, and a button. The button's postbackurl is set for a third page (selectcoverage.aspx).
I've read a lot about how to use cross page postbacks, and I'd like to use the strongly typed approach, setting up public properties in the source page. I've successfully created those in the quote_generator.ascx page.
In my selectcoverage.aspx target page, I'm having trouble figuring out how to get at the values from the properties created in quote_generator.ascx. I've got no trouble doing this when the form fields are built into the source page, rather than pulled in from a user control.
Another concern, the user control is used on multiple pages in the site, so I'm not sure how to approach the PreviousPageType directive, since there could be one of several previous pages sending the data.
Any tips or tutorials you could point me to that addresses cross page postbacks involving usercontrols?
I'm pretty new to ASP.NET C#, and I'm struggling with what I'd imagine is a pretty simple process.
I have a page (default.aspx) that pulls in a user control (quote_generator.ascx). The user control includes a set of text boxes and dropdownlists, and a button. The button's postbackurl is set for a third page (selectcoverage.aspx).
I've read a lot about how to use cross page postbacks, and I'd like to use the strongly typed approach, setting up public properties in the source page. I've successfully created those in the quote_generator.ascx page.
In my selectcoverage.aspx target page, I'm having trouble figuring out how to get at the values from the properties created in quote_generator.ascx. I've got no trouble doing this when the form fields are built into the source page, rather than pulled in from a user control.
Another concern, the user control is used on multiple pages in the site, so I'm not sure how to approach the PreviousPageType directive, since there could be one of several previous pages sending the data.
Any tips or tutorials you could point me to that addresses cross page postbacks involving usercontrols?