Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Saturday, February 22, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
2/22/2025 10:56:28 PM
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: .net question
Steve Knowles
Posts: 657
.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
[
Reply
][
Quote
]
Steve Knowles
Posts: 657
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");
[
Reply
][
Quote
]
Ryan Farley
Posts: 2265
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
[
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
|
page cache (param): 2/22/2025 11:49:28 PM