Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to run iis with asp in the office over a server

Status
Not open for further replies.

043348903

Programmer
Dec 4, 2002
8
AE
Helloo every one this is my fist mail to the forum....

Ok i have a slight problem there with my asp pages..
no i have desiged the asp pages for our company for the customer management.. i am using sql server 2000 as the database..
all for me is workin fine on a stand alnoe pc if i have the asp file and athe sql server on the same pc.

but wht i need to know is that i need to run the same pages from about 10 pc the same time..
so i suppose ill have to upload the pages ont he sever and all the database..
but wht i need to know is how wuold i configure the pages in such a wayu that all the ppl can use the asp pages at the same time and also update or add to the sql daabase which lies ont he server..pls help me out this is gettin really irritaing

ill will give u the lines of code fro one of the oages help me out and tell me wht are the changer id have to make my con stament inorder for it to work right...

the code of one of the pages is below but the main satment that concerns me is
(con.open "provider=sqloledb;data source=matrix;uid=sa;database=princetonreview")the lines of code are all for pc i am workion on its not connected on any sort of a network..would appreciate ur help..thank u all in advance..

Code:
<!-- #include virtual=&quot;princetonreview/adovbs.inc&quot; -->
<%

cpage=trim(request.querystring(&quot;currentpage&quot;))
uname=(request.Cookies(&quot;counsellorname&quot;))
ClientName=request(&quot;clientname&quot;)

if cpage=&quot;&quot; then cpage=1
set con=server.createobject(&quot;adodb.connection&quot;)
con.open &quot;provider=sqloledb;data source=matrix;uid=sa;database=princetonreview&quot;

mysql=&quot;select * from client where counsellorName='&quot;&uname&&quot;' and clientname='&quot;& ClientName &&quot;'&quot;
set rs=server.createobject(&quot;adodb.recordset&quot;)
rs.cursortype=adopenstatic
rs.pagesize=1
rs.open mysql,con
	while not rs.eof
		i=rs.recordcount
		rs.movenext
	wend

	if i=0 then
		response.redirect &quot;search.htm&quot;
	else
		rs.movefirst
	end if

rs.absolutepage=CInt(cpage)
rowcount=0

	InqNo=rs.fields(0)
	inqday=rs.fields(1)
	inqmonth=rs.fields(2)
	inqyear=rs.fields(3)
	ClientName=rs.fields(4)
	ClientContact=rs.fields(5)
	CourseName=rs.fields(6)
	FirstInq=rs.fields(8)
	FirstFollowUp=rs.fields(9)
	SecondFollowUp=rs.fields(10)
	ThirdFollowUp=rs.fields(11)
	FollowUpDay=rs.fields(12)
	FollowUpMonth=rs.fields(13)
	FollowUpYear=rs.fields(14)	
%>

<html>
<head>
<title>Client History</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName==&quot;Netscape&quot;)&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor=#ccccc>
<div align=&quot;center&quot;>
  <p><strong><font color=&quot;#333333&quot; size=&quot;4&quot; face=&quot;Arial, Helvetica, sans-serif&quot;><ins>Client 
    History</ins></font></strong> </p>
</div>
<div align=&quot;center&quot;> 
  <div id=&quot;Layer1&quot; style=&quot;position:absolute; width:72px; height:21px; z-index:1; left: 606px; top: 30px;&quot;> 
    <table width=&quot;113%&quot; border=&quot;0&quot; align=&quot;right&quot;>
      <tr> 
        <td align=&quot;right&quot;> 
          <%for i=1 to rs.pagecount%>
          <a href=&quot;clientdetails.asp?currentpage=<%=i%>&clientname=<%=ClientName%>&quot;><%=i%></a> 
          <%next%>
        </td>
      </tr>
    </table>
  </div>
  <%while not rs.eof and rowcount<rs.pagesize %>
</div>
<table border=&quot;1&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bordercolor=&quot;#000000&quot; bgcolor=beige>
  <form method=&quot;get&quot; action=&quot;update.asp&quot;>
  <input type=&quot;hidden&quot; name=&quot;ClientName&quot; value=&quot;<%=ClientName%>&quot;>
  <input type=&quot;hidden&quot; name=&quot;ClientContact&quot; value=&quot;<%=ClientContact%>&quot;>				
    <tr> 
      <td width=&quot;246&quot;><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Client 
        Name</font></td>
      <td width=&quot;271&quot;><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;> 
        &nbsp;&nbsp;&nbsp;<%=ClientName%> </font></td>
    </tr>
  <tr> 
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Inquiry 
      Date</font></td>
    <td valign=&quot;middle&quot;><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;> 
      &nbsp;&nbsp;&nbsp;<%=inqday%>-<%=inqmonth%>-<%=inqyear%> </font></td>
  </tr>
  <tr> 
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Contact 
      Number</font></td>
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;> 
		&nbsp;&nbsp;&nbsp;<%=ClientContact%> 
      </font></td>
  </tr>
  <tr> 
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Course 
      Inquired </font></td>
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;> 
		&nbsp;&nbsp;&nbsp;<%=CourseName%>
      </font></td>
  </tr>
  <tr> 
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Next Follow Up Date</font></td>
    <td valign=&quot;middle&quot;>
		<font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;> 
      	&nbsp;&nbsp;&nbsp;
		<input type=&quot;text&quot; name=&quot;FollowUpDay&quot; size=&quot;1&quot; value=&quot;<%=FollowUpDay%>&quot;>-
		<input type=&quot;text&quot; name=&quot;FollowUpMonth&quot; size=&quot;1&quot; value=&quot;<%=FollowUpMonth%>&quot;>-
		<input type=&quot;text&quot; name=&quot;FollowUpYear&quot; size=&quot;2&quot; value=&quot;<%=FollowUpYear%>&quot;> 
	  	</font></td>
  </tr>
  <tr> 
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Initial 
      Inquiry </font></td>
    <td> <font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>&nbsp;&nbsp;&nbsp;
      <textarea rows=5 cols=40 name=FirstInq><%=FirstInq%></textarea>
      </font></td>
  </tr>
  <tr> 
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>First 
      Follow Up</font></td>
    <td> <font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>&nbsp;&nbsp;&nbsp;
      <textarea rows=5 cols=40 name=FirstFollowUp><%=FirstFollowUp%></textarea>
      </font></td>
  </tr>
  <tr> 
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Second 
      Follow Up</font></td>
    <td> <font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>&nbsp;&nbsp;&nbsp;
      <textarea rows=5 cols=40 name=SecondFollowUp><%=SecondFollowUp%></textarea>
      </font></td>
  </tr>
  <tr> 
    <td><font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Third 
      Follow Up</font></td>
    <td> <font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>&nbsp;&nbsp;&nbsp;
      <textarea rows=5 cols=40 name=ThirdFollowUp><%=ThirdFollowUp%></textarea>
      </font></td>
  </tr>
  <tr> 
      <td height=&quot;26&quot; colspan=&quot;2&quot; align=&quot;right&quot;> <font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial, Helvetica, sans-serif&quot;> 
        <input type=&quot;submit&quot; name=&quot;update&quot; size=&quot;30&quot; value=&quot;U p d a t e&quot;>&nbsp;
      </font>
	  </td>
  </tr>
</form>
</table>
	<%rs.movenext
	rowcount=rowcount+1
wend%>
</body>
</html>
 
I think you might need to work with sessions. Each session for each appl/computer. Each appl, will open a session, and then when it finishes , close it. A+, MCP, CCNA
marbinpr@hotmail.com

Keep fighting for your knowledge!

 
well thats no tthe question


sessions will work fine


but when i link it across then it asks me for authentication and as far as i know the iis is working with annonymous log on. so it it shouldnt ask me for a password logically..

so if u can tell me where exactly the passwords request is coming from it might be helpful..

thank you for ur valuable opinion.. i appreciate it..
 
Go into IIS manager. Go to the web site in question right click go properties click on the tab that says directory security click on th edit button in the anonomyous access frame and on that screen make sure only anonomyous access is clicked and nothing else. If this doesnt help check the permissions on the actual directories.

Jason Rich Cook -- &quot;Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.&quot;
 
thank you...

but i have already tried your first sugestion but to no avail..the second suggestion i still have to implement and check..

i shall do that and give a feedbak on it..

thank you for lendin me ur precious time..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top