By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,282 Members | 1,539 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,282 IT Pros & Developers. It's quick & easy.

MaskedTextBox for IP address

viswammamilla
P: 14
Hai to everyone.I need a help

I have an application,in this user want to type his IP address.I want MaskedtextBox for IP address format like 192.168.0.10 like this,in my toolbox i didnt have masked textbox control,so please help me,please its urgent
Dec 1 '08 #1
Share this Question
Share on Google+
9 Replies


Expert 100+
P: 750
PRR
set the Mask MaskedTextBox.Mask Property (System.Windows.Forms)
as 000.000.000.000
Do google for gettin your doubts clear
Dec 1 '08 #2

viswammamilla
P: 14
where can i find maskedtextbox
Dec 1 '08 #3

viswammamilla
P: 14
there is no control in my toolbox named as maskedtextbox,even i custmize the toolbox,but still i didnt get that please help me
Dec 1 '08 #4

Expert 100+
P: 750
PRR
Masked Text Box is available for windows form... For asp.net use MaskedEditASP.NET AJAX extender
Dec 1 '08 #5

viswammamilla
P: 14
hai very very thanks for u reply
Dec 2 '08 #6

viswammamilla
P: 14
having another problem iam facing plese help me


Hai i did one application ,its an intranet web application using asp.net and vb.net.
Once user login into the application and did some task whenever user hits back button it will come back to one page like that so on upto login window,then when user hits the forward button directly user getting into that application without entering certain details,so please help me please its urgent very very
Edit / Delete
Dec 2 '08 #7

viswammamilla
P: 14
help me please.already i send my problem,please verify and help me
Dec 2 '08 #8

viswammamilla
P: 14
<script language="javascript" type="text/javascript">
function NumericOnly()
{
var key = window.event.keyCode;

if (key <48 || key >57)
window.event.returnValue = false;
}
<table>
<tr>
<td align="right" style="width: 100px; height: 28px">
<strong style="font-size: 10pt">IPAddress:</strong></td>
<td><input size="2" type="text" maxlength="3" onkeypress="NumericOnly()" id="IP1" runat="server" style="font-size: 9pt; font-family: Verdana" /></td>
<td style="font-size: 10pt;">.</td>
<td><input size="2" type="text" maxlength="3" onkeypress="NumericOnly()" id="IP2" runat="server" style="font-size: 9pt; font-family: Verdana" /></td>
<td style="height: 28px">.</td>
<td><input size="2" type="text" maxlength="3" onkeypress="NumericOnly()" id="IP3" runat="server" style="font-size: 9pt; font-family: Verdana" /></td>
<td style="height: 28px">.</td>
<td><input size="2" type="text" maxlength="3" onkeypress="NumericOnly()" id="IP4" runat="server" style="font-size: 9pt; font-family: Verdana" /></td>
</tr>
</table>
Dec 3 '08 #9

Expert 100+
P: 750
PRR
@viswammamilla
As this is a separate question it would be better if you posted a new thread..
Do read Posting guidelines
Are you using Form Authentication
You may need to clear cache perhaps?
Expand|Select|Wrap|Line Numbers
  1. Response.Expires = 0;
  2. Response.AddHeader("pragma", "no-cache");
  3. Response.AddHeader("cache-content", "private");
  4. Response.CacheControl = "no-cache";
  5.  
Look at this for back button
Check on every page if user is authenticated or not ... If not redirect to Login page ...
Dec 3 '08 #10

Post your reply

Sign in to post your reply or Sign up for a free account.