Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 18th, 2007, 10:29 AM
Authorized User
 
Join Date: Feb 2007
Location: , , .
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default reading and incrementing a value

i have this code through which i'm reading hosts names from a file and displaying it into the dropdown menu .Now say i select for example a value "1.2.3.4" from the menu then i want that under "PORT" i should see say for ex :18000 ,Now when i choose another value from the menu "2.3.4.5" then the value in the PORT should by itself increment the previous value to say 19000 .How can i do that ? Plz help !! Let me know if more info is needed on this .
here is the code :

<td><select name="t_host" size="1" id="t_host" style="width:170px">
<% Set fs=Server.CreateObject("Scripting.FileSystemObject ")
     Set f=fs.OpenTextFile(Server.MapPath("defaults1/hosts.dat"),1)
        do while f.AtEndofStream = false
        strLine = Trim(f.ReadLine)
        If Len(strLine) > 0 Then
response.write "<option value=""" & Replace(strLine,"""",""") & """>" & strLine & "</option>"
        End If
        loop
        f.Close
        Set f=Nothing
        Set fs=Nothing
    %>
    </select></td>
<tr><td>&nbsp;PORT</td>
<td><input type="text" name="t_port" id="t_port" class="textboxNormal"></td>
</tr>


 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incrementing the variable value Swetha XSLT 2 April 28th, 2008 04:43 PM
Incrementing numbers RubyRue ASP.NET 1.0 and 1.1 Basics 2 January 30th, 2008 12:16 AM
Incrementing a value within a template Tre XSLT 1 March 21st, 2007 09:31 AM
For Loop Not incrementing donrafeal7 Javascript 1 October 24th, 2006 12:24 AM
incrementing value of a variable akibaMaila VB.NET 2002/2003 Basics 4 July 5th, 2005 12:04 PM



All times are GMT -4. The time now is 06:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.