Professional Web Applications Themes

Customize CreateUserWizard - ASP.NET Security

Hi Everyone, I am using Microsoft's Visual Studio .Net 2005 Beta 2 Team Suite. I am trying to create new user with the help of CreateUserWizard, I right click the control and clicked customized and added new fields like First Name, Middle Name, Last Name, Phone etc. This new fields which I have created should be going to my database in Sql and and the fields on the CreateUserWizard will go to AspNetdb which get appended without any problem. My problem now is that how do I access my textbox fields like TxtFirstName, TxtMiddleName, TxtLastName in Code behind? I am ...

  1. #1

    Default Customize CreateUserWizard

    Hi Everyone,
    I am using Microsoft's Visual Studio .Net 2005 Beta 2 Team Suite. I am
    trying to create new user with the help of CreateUserWizard, I right click
    the control and clicked customized and added new fields like First Name,
    Middle Name, Last Name, Phone etc. This new fields which I have created
    should be going to my database in Sql and and the fields on the
    CreateUserWizard will go to AspNetdb which get appended without any problem.
    My problem now is that how do I access my textbox fields like TxtFirstName,
    TxtMiddleName, TxtLastName in Code behind? I am able to access
    CreateUserWizard1.UserName but cannot get
    CreateUserWizard1.TxtFirstName.Text, so How do I get access to these fields?
    Please Help and Thanks in advance.
    Abdul Guest

  2. #2

    Default Re: Customize CreateUserWizard

    Use Something Like this:
    TextBox business_name =
    (TextBox)CreateUserWizardStep1.ContentTemplateCont ainer.FindControl("TxtFirstName");

    Rodusa Guest

  3. #3

    Default Re: Customize CreateUserWizard

    Rodusa, Thanks for your reply. The answer that u have posted for my question
    gave me a compilation error as follows:
    Compiler Error Message: CS0117: 'System.Web.UI.WebControls.CreateUserWizard'
    does not contain a definition for 'ContentTemplateContainer'.

    I have already solved this question myself and the correct answer is as
    follows:
    TextBox business_name =

    (TextBox)CreateUserWizardStep1.CreateUserStep.Cont entTemplateContainer.FindControl("TxtFirstName");
    The program with the above code is running just fine.Hope this helps to
    everyone.

    Abdul Guest

Similar Threads

  1. How to add my customize stamps to PDF?
    By goranwong@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 7
    Last Post: April 14th, 09:07 AM
  2. Customize prompt on KSH
    By Rob Stampfli in forum Sun Solaris
    Replies: 0
    Last Post: August 3rd, 06:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139