CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 10/31/2006 1:18:15 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 38 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
jijo_robert
Asp.Net User
Get reference to user control in ContentTemplateContainer10/31/2006 1:18:15 AM

0/0

I am adding a CreateUserWizard control in one of the web page.

I have customized the createuserwizard control to add billing address information. I have added few text boxes and in the "CreatedUser"  event I am using following code to get the information

 TextBox txtBAddress1 = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("txtBillingAddress1");

 Now the problem is I have added a user control for state name and country. I am not sure how to get reference for the user control.

I want to do something like this

LocationUserControl loc_u_c = (LocationUserControl) CreateUserWizardStep1.ContentTemplateContainer.FindControl("LocationUserControl1");

Above statement doesn't work. I am not sure how to cast to user control?

Please help. 

Thanks

Jijo

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET AJAX Programmer's Reference: With ASP.NET 2.0 Or ASP.NET 3.5 Authors: Shahram Khosravi, Pages: 1522, Published: 2007

Web:
Get reference to user control in ContentTemplateContainer - ASP ... Get reference to user control in ContentTemplateContainer. Last post 10-30-2006 9:18 PM by jijo_robert. 0 replies. Sort Posts: ...
TemplatedWizardStep.ContentTemplateContainer Property (System.Web ... public function get ContentTemplateContainer () : Control public function ... setting the ContentTemplateContainer property, it is for internal use only, ...
Problem with Events in UserControls dynamically added to AJAX ... Aug 26, 2007 ... In my user control I have a button, but when I click it I get ... ContentTemplateContainer.Controls.Coun t.ToString(); UpdatePanel. ...
Adding Custom Profile Fields Oct 7, 2006 ... //Get the profile of the user by finding the profile by name TextBox oUserName = (TextBox)createUser.CreateUserStep.ContentTemplateContainer ...
CodeProject: Microsoft Office SharePoint 2007 and ASP.NET 2.0 AJAX ... May 13, 2007 ... ContentTemplateContainer.Controls.Add (new LiteralControl("
")); udatePanel . ... or click here to get a print view with messages. ...
Walkthrough: Creating a Basic ASP.NET AJAX-enabled Web Part Click, _ New EventHandler(AddressOf ClickHandler) 'Add the user interface (UI) controsl to the UpdatePanel refreshName.ContentTemplateContainer.Controls. ...
Problem with UpdatePanel within UserControl within UpdatePanel ... ContentTemplateContainer.Controls.Add(ctl); } Loading the user ... have no reference to any of the events triggered within the user control. ...
Visual Studio 2005/2008 Web Application Projects: Profile Class ... Mar 1, 2008 ... ContentTemplateContainer.FindControl("txtPhone")).Text);. p.Save();. Using ProfileBase lets you get around the use of the auto generated ...
Getting value from textbox within the CreateUserWizard - ASP.NET ... From your description, it seems that you are unable to get the Label or Textbox instance in the CreateUserWizard control, right? I think before you use ...
AJAX « Microsoft Technology, .Net, BizTalk, Sharepoint & etc. ContentTemplateContainer.Controls.Add(_updateProgress); } protected override void OnInit(EventArgs e) { base.OnInit(e); //get the existing ScriptManager if ...




Search This Site:










master page code

firefox compatibility with login controls

registering a user on my website

help with int array filling drop down list

component help...

file download - checking if file in use

trouble running javascript in an html module

launching excel from asp.net application

wildcard

custom server control and javascript

where are the tables to my database?

programming right mouse clicks

usercontrols and subdomains working together

putting online

using the dynamicmenustyle on the menu control

playing a sound

menu problem ..

force postback

tracking provider - asp.net 2.1? :d

date format in datagrid

getting out of the gate with asp

custom errors with masterpage question

error in output of web application project

modified dnn jungle codesmith templates (vb only)

themes

cdottext for 2.1.1

securitytrimmingenabled

detecting which page the user is in....

how to get value of linkbutton in datagrid to delete....

e-mail module wanted for 3.x

 
All Times Are GMT