5
Answers

How to validate if text box have only special character?

Raja

Raja

8y
369
1
i want to validate the text box.this is text box contain item number availability check .if the user enters only special character like( !@#$%^&amp;+)(**)_)":}{?&gt; )throw the alert message.<br /><div> </div><div>item number : &nbsp;&nbsp; m_test-120</div> <strong>What I have tried:</strong><br /> <br /> i use <br /> <br /> Regex r = new Regex(@"[~`!@#$%^&amp;*()+=|\\{}':;.,&lt;&gt;/?[\]""_-]");<br /> if (r.IsMatch(tbxspirno.Text.ToString().Trim()))<br /> {<br /> Master.ShowMessage("Enter valid item number", MessageHelper.MessageType.Information);<br /> }
Answers (5)
0
Raja

Raja

NA 1.7k 45.4k 8y
 
 
 
 
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
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 8y
Please provide code for design of you menu. Secondly do you want to implement in server side or client?