This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.
<asp:RegularExpressionValidator
ID="RegularExpressionValidator1" runat="server"
ErrorMessage="Incorrect PSBD12 File."
ControlToValidate="fulPriorYearRSBD12"
ValidationExpression="^(?=.*?Year)(?=.*?PSBD12).*$" Font-Names="Arial" Font-Size="X-Small"/>
Do more with
<script type="text/javascript">
function ValidateFile(oSrc, args)
{
var filePath = args.Value;
var fileName = filePath.substring(filePath.lastIndexOf('\\') + 1);
var ddl = document.getElementById("<%= ddl.ClientID %>");
var ddlValue = ddl.options[ddl.selectedIndex].value;
var ddlText = ddl.options[ddl.selectedIndex].text;
if (fileName.indexOf("Year") != -1 && fileName.indexOf("Report") != -1 && fileName.indexOf(ddlText) != -1)
{
args.IsValid = false;
}
else
args.IsValid = false;
}
</script>
<asp:FileUpload ID="fupFileToUpload" runat="server" Width="250px" />
<asp:DropDownList ID="ddl" runat="server">
<asp:ListItem Text="File 1" Value="A"></asp:ListItem>
<asp:ListItem Text="File 2" Value="B"></asp:ListItem>
<asp:ListItem Text="File 3" Value="C"></asp:ListItem>
<asp:ListItem Text="File 4" Value="D"></asp:ListItem>
</asp:DropDownList>
<asp:CustomValidator ID="c" runat="server" ErrorMessage="Invalid File" Text="Required"
ClientValidationFunction="ValidateFile" ControlToValidate="fupFileToUpload" ValidateEmptyText="true"></asp:CustomValidator>
Premium Content
You need an Expert Office subscription to comment.Start Free Trial