Änderungen
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
<asp:Image ID="Image1" runat="server" style="width:128px;height:128px;background-color:#003680" AlternateText="A place where a photo of your face should be seen." ImageUrl="~/images/samples/default-avatar.jpg"/>
|
||||
</td>
|
||||
<td>
|
||||
<asp:FileUpload ID="FileUpload_Desktop" runat="server" AllowMultiple="false" accept="image/*" ClientIDMode="AutoID" ToolTip="If you like to upload a photo you can do so here." OnInit="FileUpload_Desktop_Init"/>
|
||||
<asp:FileUpload ID="FileUpload_Desktop" runat="server" AllowMultiple="false" accept="image/*" ClientIDMode="AutoID" ToolTip="If you like to upload a photo you can do so here."/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="7" style="height:19px">
|
||||
@@ -232,7 +232,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="7" style="height:45px">
|
||||
<asp:TextBox ID="txt_FirstName" CssClass="bg-user-icon" Placeholder="Fist Name" runat="server" AutoCompleteType="FirstName"></asp:TextBox>
|
||||
<asp:TextBox ID="txt_FirstName" CssClass="bg-user-icon" Placeholder="First Name" runat="server" AutoCompleteType="FirstName"></asp:TextBox>
|
||||
</td>
|
||||
<td colspan="5" align="center" style="height:45px">
|
||||
<asp:TextBox ID="txt_LastName" CssClass="bg-user-icon" Placeholder="Last Name" runat="server" AutoCompleteType="LastName"></asp:TextBox>
|
||||
@@ -337,8 +337,7 @@
|
||||
<td>
|
||||
<asp:FileUpload ID="FileUpload_Mobile" runat="server" ValidateRequestMode="Enabled" OnInit="FileUpload_Mobile_Init"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tr>
|
||||
<tr><td colspan="7" style="height:19px">
|
||||
<asp:RegularExpressionValidator ID="regex_fupl_mob" runat="server" ControlToValidate="FileUpload_Mobile"
|
||||
ErrorMessage="Only .gif, .jpg, .png, .tiff and .jpeg"
|
||||
@@ -355,7 +354,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="7" style="height:45px">
|
||||
<asp:TextBox ID="txt_FirstName_M" CssClass="bg-user-icon" Placeholder="Fist Name" runat="server" AutoCompleteType="FirstName"></asp:TextBox>
|
||||
<asp:TextBox ID="txt_FirstName_M" CssClass="bg-user-icon" Placeholder="First Name" runat="server" AutoCompleteType="FirstName"></asp:TextBox>
|
||||
</td>
|
||||
<td colspan="5" align="center" style="height:45px">
|
||||
<asp:TextBox ID="txt_LastName_M" CssClass="bg-user-icon" Placeholder="Last Name" runat="server" AutoCompleteType="LastName"></asp:TextBox>
|
||||
|
||||
@@ -3,7 +3,7 @@ Partial Class login_CreateUser
|
||||
Inherits System.Web.UI.Page
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As EventArgs)
|
||||
If Not User.Identity.IsAuthenticated Then
|
||||
If User.Identity.IsAuthenticated = False Then
|
||||
FormsAuthentication.RedirectToLoginPage()
|
||||
End If
|
||||
End Sub
|
||||
@@ -51,4 +51,12 @@ Partial Class login_CreateUser
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Protected Sub FileUpload_Mobile_Init(sender As Object, e As EventArgs)
|
||||
If FileUpload_Mobile.HasFile = True Then
|
||||
lblMessage_mob.Text = FileUpload_Mobile.FileName
|
||||
Else
|
||||
'FileUpload_Mobile.
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user