Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 12th, 2011, 03:02 PM
Authorized User
Points: 445, Level: 7
Points: 445, Level: 7 Points: 445, Level: 7 Points: 445, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2011
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
Default Date of Birth in a CreateUserWizard

I am modifying the ASP.NET CreateUserWizard by adding 3 drop down boxes for day, month & year to create a date of birth entry.

In the code behind I am populating them with relevant data:
Dim day As DropDownList = CreateUserWizardStep1.ContentTemplateContainer.Fin dControl("ddlCalDay")
For i = 1 To 31 Step 1
day.Items.Add(i)
Next

Problem is the insert statement refers to single control:

<InsertParameters>
...
<asp:ControlParameter Name="DateOfBirth" Type="String" ControlID="DateOfBirth" PropertyName="Text" />

This worked fine with a text box but I somehow need to set the date into a single DateTime variable to pass in the insert statement. I tried using:

Dim DoB As New Date(CInt(year.SelectedValue), CInt(month.SelectedValue), CInt(day.SelectedValue))

but this came up with errors, and then how would I pass DoB to the insert statement?

Any help appreciated...

Last edited by AlexW; April 12th, 2011 at 03:07 PM..
Reply With Quote
  #2 (permalink)  
Old April 12th, 2011, 04:44 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Alex,

Which control are you using? If you're using a SqlDataSource and a DetailsView, you could add a generic select parameter:

Code:
<asp:Parameter Name="UpdateDateTime" Type="DateTime" />
And then handle the Inserting event of the DetailsView:

Code:
Protected Sub DetailsView1_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertEventArgs) Handles DetailsView1.ItemInserting
    e.Values("UpdateDateTime") = DateTime.Now
End Sub
Instead of DateTime.Now you could your code which should be close to what you need. Hard to say how close without knowing what year, month and day are, what items they contain, and what the exact error is.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old April 13th, 2011, 11:21 AM
Authorized User
Points: 445, Level: 7
Points: 445, Level: 7 Points: 445, Level: 7 Points: 445, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2011
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar,

It's a CreateUserWizard and SqlDataSource inside it. If I use the generic parameter as above can I programatically set it's value useing the 3 day/month/year drop downs? I can't see an event where I might do this.
Reply With Quote
  #4 (permalink)  
Old April 13th, 2011, 11:28 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

But how are you calling / executing the SqlDataSource control? Is it tied to some other control somehow? And does it work if you leave out the DOB? I am trying to find out how you set things up right now.....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #5 (permalink)  
Old April 13th, 2011, 12:05 PM
Authorized User
Points: 445, Level: 7
Points: 445, Level: 7 Points: 445, Level: 7 Points: 445, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2011
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Basically I have extended the default CreateUserWizard that is there when you start a non-blank ASP.NET web site. All I've done is configures the SqlDataSource thats imbedded to return more fields.

I can't see where the data source is being executed, I think its all being handled by the CreateUserWizard.
Reply With Quote
  #6 (permalink)  
Old April 13th, 2011, 01:20 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
All I've done is configures the SqlDataSource thats imbedded to return more fields.
Not sure I get this. AFAIK, there's no SqlDataSource embedded in a CreateUserWizard. It should talk to the Membership provider which instead uses its own code to talk to SQL Server.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #7 (permalink)  
Old April 13th, 2011, 01:58 PM
Authorized User
Points: 445, Level: 7
Points: 445, Level: 7 Points: 445, Level: 7 Points: 445, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2011
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
Default

There is a SqlDataSource that is inside the ContentTemplate element of the CreateUserWizard, I can see that the RegisterUser_CreatedUser event is being handled and programatically referencing the data source and inserting:

Dim DataSource As SqlDataSource = CType(CreateUserWizardStep1.ContentTemplateContain er.FindControl("InsertUserDetails"), SqlDataSource)

DataSource.Insert()

This was already there with the generic ASP site template.
Reply With Quote
  #8 (permalink)  
Old April 13th, 2011, 02:02 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Could this be custom code or a custom "new site" template? Haven't seen this before. Can you explain the steps from "File | New Web site" to actually seeing this code? And can you show your exact code?

Knowing where the SqlDataSource comes from may help me suggest a way to tame it for you.

Alternatively, you could handle the CreatedUser event and use something like Entity Framework to update your database.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #9 (permalink)  
Old April 13th, 2011, 02:27 PM
Authorized User
Points: 445, Level: 7
Points: 445, Level: 7 Points: 445, Level: 7 Points: 445, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2011
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar, here is my code for the CreateUserWizard, I have commented out the DateOfBirth texbox field in favour of the 3 drop down lists. At the end I have also pasted the code that handles RegisterUser_CreatedUser, really appreciate your help.

Code:
<asp:CreateUserWizard ID="RegisterUser" runat="server" ContinueDestinationPageUrl="~/MyGolfingNetwork/Default.aspx">
        <WizardSteps>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                <ContentTemplate>
                    <table style="width: 381px">
                        <tr>
                            <td align="center" colspan="2" class="style1">
                                Sign Up for Your New Account:</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="UserName" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword" ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Security Question:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="Question" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question" ErrorMessage="Security question is required." ToolTip="Security question is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Security Answer:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="Answer" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer" ErrorMessage="Security answer is required." ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="Email" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email" ErrorMessage="E-mail is required." ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="FirstNameLabel" runat="server" AssociatedControlID="FirstName">First Name:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="FirstName" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="FirstNameRequired" runat="server" ControlToValidate="FirstName" ErrorMessage="First Name is required." ToolTip="First Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="LastNameLabel" runat="server" AssociatedControlID="LastName">Last Name:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="LastName" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="LastNameRequired" runat="server" ControlToValidate="LastName" ErrorMessage="Last Name is required." ToolTip="Last Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="HomeNumberLabel" runat="server" AssociatedControlID="HomeNumber">Home Number:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="HomeNumber" runat="server" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="MobileNumberLabel" runat="server" AssociatedControlID="MobileNumber">Mobile Number:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="MobileNumber" runat="server" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="DoBLabel" runat="server" AssociatedControlID="ddlCalDay">Date of Birth:</asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCalDay" runat="server"></asp:DropDownList>
                                <asp:DropDownList ID="ddlCalMonth" runat="server"></asp:DropDownList>
                                <asp:DropDownList ID="ddlCalYear" runat="server"></asp:DropDownList>
                            
                               <%--<asp:TextBox ID="DateOfBirth" runat="server" Width="200px"></asp:TextBox>--%>
                               <%-- <asp:DropDownList ID="ddlDay" runat="server"><asp:ListItem>1</asp:ListItem><asp:ListItem>2</asp:ListItem><asp:ListItem>3</asp:ListItem><asp:ListItem>4</asp:ListItem><asp:ListItem>5</asp:ListItem><asp:ListItem>6</asp:ListItem><asp:ListItem>7</asp:ListItem><asp:ListItem>8</asp:ListItem><asp:ListItem>9</asp:ListItem><asp:ListItem>10</asp:ListItem><asp:ListItem>11</asp:ListItem><asp:ListItem>12</asp:ListItem><asp:ListItem>13</asp:ListItem><asp:ListItem>14</asp:ListItem><asp:ListItem>15</asp:ListItem><asp:ListItem>16</asp:ListItem><asp:ListItem>17</asp:ListItem><asp:ListItem>18</asp:ListItem><asp:ListItem>19</asp:ListItem><asp:ListItem>20</asp:ListItem><asp:ListItem>21</asp:ListItem><asp:ListItem>22</asp:ListItem><asp:ListItem>23</asp:ListItem><asp:ListItem>24</asp:ListItem><asp:ListItem>25</asp:ListItem><asp:ListItem>26</asp:ListItem><asp:ListItem>27</asp:ListItem><asp:ListItem>28</asp:ListItem><asp:ListItem>29</asp:ListItem><asp:ListItem>30</asp:ListItem><asp:ListItem>31</asp:ListItem></asp:DropDownList>
                                <asp:DropDownList ID="ddlMonth" runat="server"><asp:ListItem>Jan</asp:ListItem><asp:ListItem>Feb</asp:ListItem><asp:ListItem>Mar</asp:ListItem><asp:ListItem>Apr</asp:ListItem><asp:ListItem>May</asp:ListItem><asp:ListItem>Jun</asp:ListItem><asp:ListItem>Jul</asp:ListItem><asp:ListItem>Aug</asp:ListItem><asp:ListItem>Sep</asp:ListItem><asp:ListItem>Oct</asp:ListItem><asp:ListItem>Nov</asp:ListItem><asp:ListItem>Dec</asp:ListItem></asp:DropDownList>
                                <asp:DropDownList ID="ddlYear" runat="server"></asp:DropDownList>--%>
                                <%--<asp:RequiredFieldValidator ID="DateOfBirthRequired" runat="server" ControlToValidate="DateOfBirth" ErrorMessage="Date Of Birth is required." ToolTip="Date Of Birth is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>--%>
                            
                            
                                <%--<asp:Calendar ID="DateOfBirth" runat="server" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
                                    <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                                    <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                                    <OtherMonthDayStyle ForeColor="#999999" />
                                    <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                                    <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                                    <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                                    <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                                    <WeekendDayStyle BackColor="#CCCCFF" />
                                </asp:Calendar>--%>
                            
                            
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="SexLabel" runat="server" AssociatedControlID="************">************:</asp:Label>
                            </td>
                            <td>
                                <%--<asp:TextBox ID="************" runat="server" Width="50px"></asp:TextBox>--%>
                                <asp:DropDownList ID="************" runat="server" Width="60px"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="HandicapLabel" runat="server" AssociatedControlID="Handicap">Handicap:</asp:Label>
                            </td>
                            <td>
                                <%--<asp:TextBox ID="Handicap" runat="server" Width="50px"></asp:TextBox>--%>
                                <asp:DropDownList ID="Handicap" runat="server" Width="60px"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="OtherInterestsLabel" runat="server" AssociatedControlID="OtherInterests">OtherInterests:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="OtherInterests" runat="server" TextMode="MultiLine" Width="200px" Height="100px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match." ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color:Red;">
                                <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                        </tr>
                    </table>

                    <asp:SqlDataSource ID="InsertUserDetails" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
                     InsertCommand="INSERT INTO [UserDetails] ([UserId], [FirstName], [LastName], [DateOfBirth], [************], [Handicap], [OtherInterests], [HomeNumber], [MobileNumber], [UserName], [Email]) VALUES (@UserId, @FirstName, @LastName, @DateOfBirth, @************, @Handicap, @OtherInterests, @HomeNumber, @MobileNumber, @UserName, @Email)"
                     ProviderName="<%$ ConnectionStrings:ApplicationServices.ProviderName %>">
    <InsertParameters>
        <asp:ControlParameter Name="FirstName" Type="String" ControlID="FirstName" PropertyName="Text" />
        <asp:ControlParameter Name="LastName" Type="String" ControlID="LastName" PropertyName="Text" />
        <asp:ControlParameter Name="DateOfBirth" Type="String" ControlID="DateOfBirth" PropertyName="Text" />
        <%--<asp:Parameter Name="DateOfBirth" Type="DateTime" />--%>

        <asp:ControlParameter Name="************" Type="String" ControlID="************" PropertyName="Text" />
        <asp:ControlParameter Name="Handicap" Type="String" ControlID="Handicap" PropertyName="Text" />
        <asp:ControlParameter Name="OtherInterests" Type="String" ControlID="OtherInterests" PropertyName="Text" />
        <asp:ControlParameter Name="HomeNumber" Type="String" ControlID="HomeNumber" PropertyName="Text" />
        <asp:ControlParameter Name="MobileNumber" Type="String" ControlID="MobileNumber" PropertyName="Text" />
        <asp:ControlParameter Name="UserName" Type="String" ControlID="UserName" PropertyName="Text" />
        <asp:ControlParameter Name="Email" Type="String" ControlID="Email" PropertyName="Text" />
    </InsertParameters>
</asp:SqlDataSource> 

                </ContentTemplate>
                
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server" >
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
*** code behind ***

Protected Sub RegisterUser_CreatedUser(ByVal sender As Object, ByVal e As EventArgs) Handles RegisterUser.CreatedUser
FormsAuthentication.SetAuthCookie(RegisterUser.Use rName, False)

' get data source to insert the data inc UserId
Dim UserNameTextBox As TextBox = CType(CreateUserWizardStep1.ContentTemplateContain er.FindControl("UserName"), TextBox)
Dim DataSource As SqlDataSource = CType(CreateUserWizardStep1.ContentTemplateContain er.FindControl("InsertUserDetails"), SqlDataSource)
Dim User As MembershipUser = Membership.GetUser(UserNameTextBox.Text)
Dim UserGUID As Object = User.ProviderUserKey
DataSource.InsertParameters.Add("UserId", UserGUID.ToString())
DataSource.Insert()

Dim continueUrl As String = RegisterUser.ContinueDestinationPageUrl
If String.IsNullOrEmpty(continueUrl) Then
continueUrl = "~/MyGolfingNetwork/Default.aspx"
End If

Response.Redirect(continueUrl)
End Sub

Last edited by AlexW; April 13th, 2011 at 03:31 PM.. Reason: code tags
Reply With Quote
  #10 (permalink)  
Old April 13th, 2011, 03:18 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
Could this be custom code or a custom "new site" template? Haven't seen this before. Can you explain the steps from "File | New Web site" to actually seeing this code?
This is defenitely not standard ASP.NET code.

Can you edit your post and wrap the code in code tags? Bit hard to read like this...

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code for date of Birth.... aaronabdiel Visual Studio 2005 1 January 2nd, 2008 03:25 AM
Birth Date listings xp_mahesh JSP Basics 0 June 2nd, 2006 12:57 AM
Validation for Date of Birth crmpicco Javascript How-To 2 June 30th, 2005 08:13 AM
Date of birth question satts Access 10 February 24th, 2005 11:21 AM
validating date of birth in asp shoakat Classic ASP Databases 7 September 3rd, 2004 12:18 AM



All times are GMT -4. The time now is 05:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.