Karl Blessing
Programmer
I have an application thats going to need to modify a couple files, well only two at the moment, prior to this, using an contants.inc (like an include file for ASP), all constants were followed by a = and their value, just rewriting that line when it came back to spitting back out the results, storing every line into a collection, marking some as non data rows, and others as datarows, however this situation is different, in the logon.asp I have to change, <br><FONT FACE=monospace><br>...<br><TD><% = gEntryPageFont %><br> <select name="ODBCName"><br> <option value="almis_prod3" <%= op1 %>>NC SQL - lmi12 prod3</option><br> <option value="nc_tstate" <% = op3 %>>NC Oracle - tstate </option><br> <option value="ct_tstate" <% = op9 %>>CT Oracle - tstate</Option><br> <br><!-- <option value="almis_dev2" <%= op2 %>>NC SQL - lmi03 dev2</option><br> <option value="cstate" <% = op3 %>>CT Oracle cstate </option><br> <br> <option value="ws_saras2" <% = op4 %>>NC Oracle - saras2 </option><br> <option value="ct_saras2" <% = op5 %>>CT Oracle - saras2</option><br> <option value="lmi07_almis_prod3" <% = op6 %>>NC SQL - lmi07_almis_prod3</option><br> <option value ="almis_ne" <%= op6 %>> NE SQL Almis_NE</option><br> <option value="lmi07_almis_prod3_test" <% = op7 %>>NC SQL - lmi07_almis_prod3_test (WI testing)</option><br> <option value="web_sc_32" <% = op8 %>>SC SQL - web_sc_32</Option><br>--></select><br></TD><br>...<br></font><br><br>I need to clear out the section between the <Select name="ODBCName"> and </Select><br>and write in the User's selection, inside of those sections, the file is filled with comments, tags, <% %> etc, like any normal ASP, benefit seems that this particular tab has a name=<br><br>the second file is a index.asp, shorter modification is needed.<br><br><FONT FACE=monospace><br>...<br><body bgcolor="#ffffff"> <%<br>DBChoice = Request("DBChoice"<br>if DBChoice = "" then<br> DBChoice = "almis_prod3"<br>end if %><br>...<br></font><br><br>I need to change the "almis_prod3" after the =, my question as a whole, is how would I go about programatically, locating these sections, fill them in and write back the rest of the file as it were before, with my modifications. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)