6/19/2026 8:26:37 AM
|
| |
| slxdeveloper.com Community Forums |
|
| |
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
.net question
Posted: 16 May 08 2:41 PM
|
| I have a custom login page for the web portal with an aspx.cs code behind file. I am trying to access the value of a text box on the form in the .aspx file. In other forms I see the control in intellisense. Not the case here for any of the controls and I get an error: The name 'txtEmailAdd' does not exist in the current context. The control name is correct. Any ideas how I can get the value of that control for use in the .cs file? Thanks |
|
|
|
Re: .net question
Posted: 17 May 08 4:08 PM
|
I ended up using this to invoke the textbox: System.Web.UI.WebControls.TextBox txtEmailAdd = (System.Web.UI.WebControls.TextBox)slxLogin.Controls[0].FindControl("txtEmailAdd"); |
|
|
|
Re: .net question
Posted: 19 May 08 3:28 PM
|
Hi Steve.
In ASP.NET 2.0 a new control was introduced, the asp:Login control. This control is a self-contained login box that works with a membership provider. Is that what you're using? If so, the textboxes inside the login control are templated, they won't actually exist until rendered at runtime. When you locate the control at runtime using FindControl it exists at that point.
-Ryan |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|