473,503 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MaskedTextBox for IP address

viswammamilla
14 New Member
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
9 26125
PRR
750 Recognized Expert Contributor
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
14 New Member
where can i find maskedtextbox
Dec 1 '08 #3
viswammamilla
14 New Member
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
PRR
750 Recognized Expert Contributor
Masked Text Box is available for windows form... For asp.net use MaskedEditASP.NET AJAX extender
Dec 1 '08 #5
viswammamilla
14 New Member
hai very very thanks for u reply
Dec 2 '08 #6
viswammamilla
14 New Member
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
14 New Member
help me please.already i send my problem,please verify and help me
Dec 2 '08 #8
viswammamilla
14 New Member
<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
PRR
750 Recognized Expert Contributor
@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

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

Similar topics

0
1719
by: Mauricio C Vidotto | last post by:
I have an application that use MaskedTextBox Control. This control has Mask property value 9999999.99 and I would like to add numeric values with 2 decimal places. However, if I set Text property...
0
1296
by: dumbo | last post by:
I do not succeed to modify the content of a MaskedTextBox control whose Property "OutputText" is in binding with field of type text of one table in database a MDB. The control has been generated...
1
1726
by: Matt | last post by:
I recently came across what I believe to be a peculiar bug with Mdi Children, and wanted to see if anyone else had experienced this before sending it in. The issue is as follows: I have a number...
2
6418
by: Jaime Rios | last post by:
Hi, I'm using C# to create a printable form. The data is coming from a XML source that I load when the application starts. I have no problems loading the data, but I am having a hard time figuring...
1
2061
by: Jazer | last post by:
Hi, I have a problem with MaskedtextBox. When I 'am trying to insert value 1.5 (single type) into MaskedTextBox, the value on it is shown as 15__,_. Mask is #90.9 The result should be ___1,5...
4
1885
by: TyBreaker | last post by:
Is there a built-in text box for obtaining IP addresses as in the way Windows prompts for in the Network Config screens? -- ______ ___ __ /_ __/_ __/ _ )_______ ___ _/ /_____...
1
3796
by: Craig | last post by:
Hi, I have had a look on google groups for help on the MaskedTextBox and strings but every post I find seems to relate for formatting numbers. So, is it possible to set up a mask on the...
1
9160
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
We have some dumb and lazy people here, so I need help. To fix the dumb part: We have placed MaskedTextBoxes on the forms so they will stop entering the information incorrectly. Now the lazy...
1
4896
by: eljainc | last post by:
Hello, I am trying to utilize a MaskedTextBox control on my form. I would like the user to enter numbers only (i.e. 65000), I set the Mask property as 999999 and the PromptChar as space (it...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.