MaskedTextBox for IP address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • viswammamilla
    New Member
    • Nov 2008
    • 14

    MaskedTextBox for IP address

    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
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    set the Mask MaskedTextBox.M ask Property (System.Windows .Forms)
    as 000.000.000.000
    Do google for gettin your doubts clear

    Comment

    • viswammamilla
      New Member
      • Nov 2008
      • 14

      #3
      where can i find maskedtextbox

      Comment

      • viswammamilla
        New Member
        • Nov 2008
        • 14

        #4
        there is no control in my toolbox named as maskedtextbox,e ven i custmize the toolbox,but still i didnt get that please help me

        Comment

        • PRR
          Recognized Expert Contributor
          • Dec 2007
          • 750

          #5
          Masked Text Box is available for windows form... For asp.net use MaskedEditASP.NET AJAX extender

          Comment

          • viswammamilla
            New Member
            • Nov 2008
            • 14

            #6
            hai very very thanks for u reply

            Comment

            • viswammamilla
              New Member
              • Nov 2008
              • 14

              #7
              having another problem iam facing plese help me

              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

              Comment

              • viswammamilla
                New Member
                • Nov 2008
                • 14

                #8
                help me please.already i send my problem,please verify and help me

                Comment

                • viswammamilla
                  New Member
                  • Nov 2008
                  • 14

                  #9
                  TextBox for IP address Format

                  <script language="javas cript" type="text/javascript">
                  function NumericOnly()
                  {
                  var key = window.event.ke yCode;

                  if (key <48 || key >57)
                  window.event.re turnValue = 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="Num ericOnly()" 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="Num ericOnly()" 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="Num ericOnly()" 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="Num ericOnly()" id="IP4" runat="server" style="font-size: 9pt; font-family: Verdana" /></td>
                  </tr>
                  </table>

                  Comment

                  • PRR
                    Recognized Expert Contributor
                    • Dec 2007
                    • 750

                    #10
                    Originally posted by viswammamilla
                    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
                    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?
                    Code:
                    Response.Expires = 0;
                    Response.AddHeader("pragma", "no-cache");
                    Response.AddHeader("cache-content", "private");
                    Response.CacheControl = "no-cache";
                    Look at this for back button
                    Check on every page if user is authenticated or not ... If not redirect to Login page ...

                    Comment

                    Working...