How to validate if text box have only special character?
i want to validate the text box.this is text box contain item number availability check .if the user enters only special character like( !@#$%^&+)(**)_)":}{?> )throw the alert message.<br /><div> </div><div>item number : m_test-120</div> <strong>What I have tried:</strong><br /> <br /> i use <br /> <br /> Regex r = new Regex(@"[~`!@#$%^&*()+=|\\{}':;.,<>/?[\]""_-]");<br /> if (r.IsMatch(tbxspirno.Text.ToString().Trim()))<br /> {<br /> Master.ShowMessage("Enter valid item number", MessageHelper.MessageType.Information);<br /> }
Answers (5)
0
Css Code
.top-nav ul li
{
list-style:none;
}
.top-nav ul li a {
display:block;
outline: none;
color: black;
text-decoration: none;
font-size: 1.3em;
padding: 1em;
text-align: right;
background: #333b3e;
}
.top-nav ul li a.black{
background: white;
}
.top-nav ul li a.black1
{
background: white;
}
.top-nav ul li a.black2
{
background:white;
}
.top-nav ul li a.black3
{
background:white;
}
.top-nav ul li a.black4
{
background:white;
}
.top-nav ul li a.black5
{
background:white;
}
.top-nav ul li a:hover,.top-nav ul li.active a {
width: 91%;
padding-left: 0px;
background: gray;
}
.top-nav ul li.active a
{
width: 91%;
padding-left: 0px;
background: #23aeac;
}
0
Please provide code for design of you menu. Secondly do you want to implement in server side or client?