expanding add member sectionhttp://forums.asp.net/t/1023368.aspx/1?expanding+add+member+sectionFri, 29 Sep 2006 05:24:22 -040010233681389107http://forums.asp.net/p/1023368/1389107.aspx/1?expanding+add+member+sectionexpanding add member section <p>I'm using the clubsite starter on a remote host, and I'd like to expand on the amount of information that is saved to the table.&nbsp; I've used the scripts to create the tables, and everything works great.</p> <p>&nbsp;I'm curious as to how I can add another step or two to the registration process.&nbsp; I was going to try to manipulate the XSD, but in order to do that I need access to the db, and they don't allow remote access.</p> <p>&nbsp;Wondering where to go from here.&nbsp; Thinking of installing sql express on my local machine, point to it, make all the changes, then change the connection string back to the remote one and upload everything.&nbsp; </p> <p>Is there an easier way to do it?</p> <p>thx,</p> <p>M@<br> &nbsp;</p> 2006-09-04T17:28:02-04:001390544http://forums.asp.net/p/1023368/1390544.aspx/1?Re+expanding+add+member+sectionRe: expanding add member section Could someone please point me in the right direction.&nbsp; I'd like to just add a few things to a page for a member to put in additional info.&nbsp; Thought of changing Member_Details.aspx.<br> 2006-09-06T03:01:33-04:001391694http://forums.asp.net/p/1023368/1391694.aspx/1?Re+expanding+add+member+sectionRe: expanding add member section <p>I am also interested in doing this.&nbsp; I have thought about adding an additional table with a similar structure to the members info table, that way I wouldn't have to &quot;disturb&quot; the delivered table.....</p> <p>I welcome any other ideas if someone has actually done this.</p> <p>Thanks,</p> <p>-Doug</p> 2006-09-07T01:13:23-04:001412800http://forums.asp.net/p/1023368/1412800.aspx/1?Re+expanding+add+member+sectionRe: expanding add member section I did add a few registration details, but I didn't add any steps in the CreateUserWizard.&nbsp; It did require modifying the MemberInfo table and modifying the DataSet.xsd files to update the SELECT statements, etc.&nbsp; I am able to access my remote SQL Server by using SQL Server Management Studio Express.<br> 2006-09-28T13:30:38-04:001413358http://forums.asp.net/p/1023368/1413358.aspx/1?Re+expanding+add+member+sectionRe: expanding add member section <p><span style="font-size:10pt; font-family:Arial">Hi all</span></p> <p><span style="font-size:10pt; font-family:Arial">I also wanted to update the member info table.&nbsp; With the assistance of Jeff - I did it in about 45 min and I am real new at this stuff.</span></p> <p><span style="font-size:10pt; font-family:Arial">As U progress, U should see some errors pop up, but these should start to go away as U update each page.<br> Here is what I did I did NOT use the wizard, but manually changed the code..</span></p> <p><strong><span style="font-size:10pt; font-family:Arial">Open memberinfo table</span></strong><span style="font-size:10pt; font-family:Arial"> in&nbsp; SQL Server Management Studio Express and added a field called &quot;UnitNo&quot;</span></p> <p><strong><span style="font-size:10pt; font-family:Arial">In DataSet.xsd</span></strong><span style="font-size:10pt; font-family:Arial"><br> I looked all through this for the field named &quot;Phone&quot;.&nbsp; <br> Duplicated the fields or lines and changed &quot;phone&quot; to &quot;UnitNo&quot;</span></p> <p><strong><span style="font-size:10pt; font-family:Arial">In the MemberDetails.vb</span></strong><span style="font-size:10pt; font-family:Arial"><br> added the following at the end (copy from another above):<br> <span style="color:blue">Private</span> m_UnitNo <span style="color:blue">As</span> <span style="color:blue">String<br> Public</span> <span style="color:blue">ReadOnly</span> <span style="color:blue">Property</span> UnitNo() <span style="color:blue">As</span> <span style="color:blue">String<br> Get<br> Return</span> m_UnitNo<br> <span style="color:blue">End</span> <span style="color:blue">Get<br> End</span> <span style="color:blue">Property</span></span></p> <p><span style="font-size:10pt; color:blue; font-family:Arial">In the Private</span><span style="font-size:10pt; font-family:Arial"> <span style="color:blue">Sub</span> <span style="color:blue">New</span>(<span style="color:blue">ByVal</span> user <span style="color:blue">As</span> MembershipUser, <span style="color:blue">ByVal</span> member <span style="color:blue">As</span> DataSet.MemberInfoRow)<br> Added <br> m_UnitNo = member.UnitNo below m_Phone = member.phone</span></p> <p><strong><span style="font-size:10pt; font-family:Arial">In the Member_Register.aspx</span></strong><strong><span style="font-size:10pt; font-family:Arial"><br> </span></strong><span style="font-size:10pt; font-family:Arial">add unitno to the line <br> da.Insert(<span style="color:blue">CType</span>(user.ProviderUserKey, Guid), Addr.Text, Phone.Text, fname.Text, lname.Text, UnitNo.text)</span></p> <p><span style="font-size:10pt; font-family:Arial">In the wizard, look for <br> <span style="color:blue">&lt;</span><span style="color:maroon">tr</span><span style="color:blue">&gt;<br> &lt;</span><span style="color:maroon">td</span> <span style="color:red">class</span><span style="color:blue">=&quot;formlabel&quot;&gt;<br> &lt;</span><span style="color:maroon">label</span> <span style="color:red">for</span><span style="color:blue">=&quot;Phone&quot;&gt;<br> </span>Phone:<span style="color:blue">&lt;/</span><span style="color:maroon">label</span><span style="color:blue">&gt;<br> &lt;/</span><span style="color:maroon">td</span><span style="color:blue">&gt;<br> &lt;</span><span style="color:maroon">td</span> <span style="color:red">class</span><span style="color:blue">=&quot;formvalue&quot;&gt;<br> &lt;</span><span style="color:maroon">asp</span><span style="color:blue">:</span><span style="color:maroon">TextBox</span> <span style="color:red">runat</span><span style="color:blue">=&quot;server&quot;</span> <span style="color:red"> ID</span><span style="color:blue">=&quot;Phone&quot;</span> <span style="color:red">CssClass</span><span style="color:blue">=&quot;txtfield&quot;</span> <span style="color:blue">/&gt;<br> &lt;/</span><span style="color:maroon">td</span><span style="color:blue">&gt;<br> &lt;/</span><span style="color:maroon">tr</span><span style="color:blue">&gt;</span></span></p> <p><span style="font-size:10pt; color:blue; font-family:Arial">&nbsp;Add the following right after:<br> &lt;</span><span style="font-size:10pt; color:maroon; font-family:Arial">tr</span><span style="font-size:10pt; color:blue; font-family:Arial">&gt;<br> &lt;</span><span style="font-size:10pt; color:maroon; font-family:Arial">td</span><span style="font-size:10pt; font-family:Arial"> <span style="color:red">class</span><span style="color:blue">=&quot;formlabel&quot;&gt;<br> &lt;</span><span style="color:maroon">label</span> <span style="color:red">for</span><span style="color:blue">=&quot;UnitNo&quot;&gt;<br> </span>UnitNo:<span style="color:blue">&lt;/</span><span style="color:maroon">label</span><span style="color:blue">&gt;<br> &lt;/</span><span style="color:maroon">td</span><span style="color:blue">&gt;<br> &lt;</span><span style="color:maroon">td</span> <span style="color:red">class</span><span style="color:blue">=&quot;formvalue&quot;&gt;<br> &lt;</span><span style="color:maroon">asp</span><span style="color:blue">:</span><span style="color:maroon">TextBox</span> <span style="color:red">runat</span><span style="color:blue">=&quot;server&quot;</span> <span style="color:red"> ID</span><span style="color:blue">=&quot;UnitNo&quot;</span> <span style="color:red">CssClass</span><span style="color:blue">=&quot;txtfield&quot;</span> <span style="color:blue">/&gt;<br> &lt;/</span><span style="color:maroon">td</span><span style="color:blue">&gt;<br> &lt;/</span><span style="color:maroon">tr</span><span style="color:blue">&gt;</span></span></p> <p><strong><span style="font-size:10pt; color:blue; font-family:Arial">In Member_Details.aspx</span></strong><span style="font-size:10pt; color:blue; font-family:Arial"></span></p> <p><span style="font-size:10pt; color:blue; font-family:Arial">Added UnitNo in the line <br> da.Update(CType(user.ProviderUserKey, Guid), Addr.Text, Phone.Text, fname.Text, lname.Text, UnitNo.Text, CType(user.ProviderUserKey, Guid))</span></p> <p><span style="font-size:10pt; color:blue; font-family:Arial">in&nbsp;Sub InitPageData()<br> added UnitNo.Text = mr.UnitNo</span></p> <p><span style="font-size:10pt; color:blue; font-family:Arial">Added a label and text box below lastname (anywhere)<br> &lt;</span><span style="font-size:10pt; color:maroon; font-family:Arial">tr</span><span style="font-size:10pt; color:blue; font-family:Arial">&gt;<br> &lt;</span><span style="font-size:10pt; color:maroon; font-family:Arial">td</span><span style="font-size:10pt; color:blue; font-family:Arial"> </span><span style="font-size:10pt; color:red; font-family:Arial">class</span><span style="font-size:10pt; color:blue; font-family:Arial">=&quot;formlabel&quot;&gt;<br> &lt;</span><span style="font-size:10pt; color:maroon; font-family:Arial">label</span><span style="font-size:10pt; color:blue; font-family:Arial"> </span><span style="font-size:10pt; color:red; font-family:Arial">for</span><span style="font-size:10pt; color:blue; font-family:Arial">=&quot;UnitNo&quot;&gt;<br> Unit Number:&lt;/</span><span style="font-size:10pt; color:maroon; font-family:Arial">label</span><span style="font-size:10pt; color:blue; font-family:Arial">&gt;<br> &lt;/</span><span style="font-size:10pt; color:maroon; font-family:Arial">td</span><span style="font-size:10pt; color:blue; font-family:Arial">&gt;<br> &lt;</span><span style="font-size:10pt; color:maroon; font-family:Arial">td</span><span style="font-size:10pt; color:blue; font-family:Arial">&gt;</span></p> <p><span style="font-size:10pt; color:blue; font-family:Arial">&lt;</span><span style="font-size:10pt; color:maroon; font-family:Arial">asp</span><span style="font-size:10pt; color:blue; font-family:Arial">:</span><span style="font-size:10pt; color:maroon; font-family:Arial">TextBox</span><span style="font-size:10pt; color:blue; font-family:Arial"> </span><span style="font-size:10pt; color:red; font-family:Arial">runat</span><span style="font-size:10pt; color:blue; font-family:Arial">=&quot;server&quot; </span><span style="font-size:10pt; color:red; font-family:Arial">ID</span><span style="font-size:10pt; color:blue; font-family:Arial">=&quot;UnitNo&quot; </span><span style="font-size:10pt; color:red; font-family:Arial">CssClass</span><span style="font-size:10pt; color:blue; font-family:Arial">=&quot;txtfield&quot; /&gt;<br> &lt;/</span><span style="font-size:10pt; color:maroon; font-family:Arial">td</span><span style="font-size:10pt; color:blue; font-family:Arial">&gt;<br> &lt;/</span><span style="font-size:10pt; color:maroon; font-family:Arial">tr</span><span style="font-size:10pt; color:blue; font-family:Arial">&gt;</span></p> <p><span style="font-size:10pt; font-family:Arial">&nbsp;Hope I have NOT missed anything</span></p> <p>&nbsp;</p> 2006-09-28T21:28:22-04:001413583http://forums.asp.net/p/1023368/1413583.aspx/1?Re+expanding+add+member+sectionRe: expanding add member section <p>Did you add the MailDefination element in the CreateUserWizerd to automatically</p> <p>email new registered members, their Login credentials after creating new accounts?&nbsp;</p> 2006-09-29T02:51:58-04:001413606http://forums.asp.net/p/1023368/1413606.aspx/1?Re+expanding+add+member+sectionRe: expanding add member section <p>Yes, but did not include this as was keeping thread for expanding User Info</p> <p>My site is a little different, limited users, so by default users are NOT authorized.<br> I force new users to register, the registration process sends&nbsp;WebHost an email, I approve (manually at the moment), process will email back user when they are approved for access to site.<br> Only specific users (owners) can join</p> <p>To do this, I had to make some changes in web.config and member_register.aspx</p> <font color="#0000ff" size="2"> <p>&nbsp;member_register.aspx (replace&nbsp;YOURDOMAIN with your info)<br> For the message body, I have it in a file called ApplicationComplete.txt<br> Add the following near the very bottom of the code<br> &lt;<font color="#800000" size="2">MailDefinition</font><font size="2"> <br> </font><font color="#ff0000" size="2">CC</font><font color="#0000ff" size="2">=<a href="mailto:CC=Webhost@YOURDOMAIN.com">Webhost@YOURDOMAIN.com</a></font><font size="2"> <br> </font><font color="#ff0000" size="2">From</font><font color="#0000ff" size="2">=<a href="mailto:From=Webhost@YOURDOMAIN.com">Webhost@YOURDOMAIN.com</a><br> </font><font color="#ff0000" size="2">Priority</font><font color="#0000ff" size="2">=&quot;High&quot;</font><font size="2"> <br> </font><font color="#ff0000" size="2">Subject</font><font color="#0000ff" size="2">=&quot;New Owner - Require Activation&quot;</font><font size="2"> <br> </font><font color="#ff0000" size="2">IsBodyHtml</font><font size="2"> </font><font color="#0000ff" size="2">=</font><font size="2"> </font><font color="#0000ff" size="2">True</font><font size="2"> <br> </font><font color="#ff0000" size="2">BodyFileName</font><font color="#0000ff" size="2">=&quot;Files/ApplicationComplete.txt&quot;&gt;<br> </font><font color="#0000ff" size="2">&lt;/</font><font color="#800000" size="2">MailDefinition</font><font color="#0000ff" size="2">&gt;</font></p> </font> <p>web.config </p> <font color="#0000ff" size="2"> <p>&lt;<font color="#800000" size="2">system.net</font><font color="#0000ff" size="2">&gt;<br> &lt;</font><font color="#800000" size="2">mailSettings</font><font color="#0000ff" size="2">&gt;<br> &lt;</font><font color="#800000" size="2">smtp</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">from</font><font color="#0000ff" size="2">=</font><font size="2"></font><font color="#0000ff" size="2"><a href="mailto:webhost@YOURDOMAIN.com">webhost@YOURDOMAIN.com</a></font><font size="2"></font><font color="#0000ff" size="2">&gt;<br> &lt;</font><font color="#800000" size="2">network</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">host</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">mail.YOURDOMAIN.com</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">password</font><font color="#0000ff" size="2">=</font><font size="2">&quot;your PW</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">userName</font><font color="#0000ff" size="2">=</font><font size="2"></font><font color="#0000ff" size="2"><a href="mailto:userName=webhost@YOURDOMAIN.com">webhost@YOURDOMAIN.com</a></font><font size="2"></font><font color="#0000ff" size="2"> /&gt;<br> &lt;/</font><font color="#800000" size="2">smtp</font><font color="#0000ff" size="2">&gt;<br> &lt;/</font><font color="#800000" size="2">mailSettings</font><font color="#0000ff" size="2">&gt;<br> &lt;/</font><font color="#800000" size="2">system.net</font><font color="#0000ff" size="2">&gt;</font></p> </font> <p><font color="#0000ff" size="2">&nbsp;Heads UP<br> Looks like I messed up something<br> The members_list.aspx is not working now :(<br> </font><font color="#0000ff">Looking into the issue now.<font size="2"></font></font></p> 2006-09-29T03:12:05-04:001413672http://forums.asp.net/p/1023368/1413672.aspx/1?Re+expanding+add+member+sectionRe: expanding add member section <p>The problem with my membership_list.aspx was null data in the tables.<br> Fixed that and it is fine.</p> 2006-09-29T05:24:22-04:00