Forms - Hidden Field/Look up field

Posted by Community Admin on 04-Aug-2018 11:41

Forms - Hidden Field/Look up field

All Replies

Posted by Community Admin on 31-Aug-2011 00:00

Has anyone managed to setup a form within Sitefinity 4 which can have a hidden field set its value based on a parameter sent to the form via the url. For example: http://mysite.com/myform?EventCode=1234 - ideally I'd like to know the method to lookup the event name of 1234 from an external database.

Thanks,


Stuart

Posted by Community Admin on 05-Sep-2011 00:00

Hello Stuart Radlett,

I'm not sure I understand what you want to achieve. If you have some Sitefinity page with a form on it you could assign a code-behind class to this page and implement a Page_Load event handler where you could simply read the value of Request.QueryString["EventCode"]. Then you can lookup the value in the database using some ADO.NET classes or if the database is mapped through OpenAccess - using the OA model classes.

Does this answer you question?

Greetings,
Lubomir Velkov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

This thread is closed