Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: .net question
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
.net questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: .net questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
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");
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: .net questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 5:39:25 AM