Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old July 19th, 2005, 08:41 AM
zokinjo
Guest
 
Posts: n/a
Default Problem with my database

Hello! I have only recently started to learn ASP and this is the situation:
I made a database in MS Access and two ASP pages, one with a drop-down box
with some options in it and the other one which then shows more data from
the database about the chosen option. All of this worked perfectly on my pc
but when I uploaded all of this to the server all I get on my website is an
empty drop-down box. It seems that my page can't read the data from the
database. I'm sure that the path to the database is correct. What could be
the reason?







  #2  
Old July 19th, 2005, 08:42 AM
Ray at
Guest
 
Posts: n/a
Default Re: Problem with my database

Do a view source, and you'll probably see there's an error that doesn't show
up in the browser, because it's within an <option> tag or something along
those lines.

Ray at home

"zokinjo" <grifone@net4u.hr> wrote in message
news:blf8oj$jbq$1@bagan.srce.hr...[color=blue]
> Hello! I have only recently started to learn ASP and this is the[/color]
situation:[color=blue]
> I made a database in MS Access and two ASP pages, one with a drop-down box
> with some options in it and the other one which then shows more data from
> the database about the chosen option. All of this worked perfectly on my[/color]
pc[color=blue]
> but when I uploaded all of this to the server all I get on my website is[/color]
an[color=blue]
> empty drop-down box. It seems that my page can't read the data from the
> database. I'm sure that the path to the database is correct. What could be
> the reason?
>
>
>
>[/color]


  #3  
Old July 19th, 2005, 08:42 AM
Bullschmidt
Guest
 
Posts: n/a
Default Re: Problem with my database

<<
I'm sure that the path to the database is correct. What could be the
reason?[color=blue][color=green]
>>[/color][/color]

I think it might be a problem with the path to the database in the
connection string. You could try switching over to a DSN whose
connection string is just the name of the DSN.

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4  
Old July 19th, 2005, 08:44 AM
zokinjo
Guest
 
Posts: n/a
Default Re: Problem with my database

Thank you for the tip, but my problem is still unresolved. Here's more
details, maybe it will be more clear: my database is "hnl.mdb" and in the
ODBC administrator I created a DSN called "hnl.dsn". And this is the part of
the code for the connection:

Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "hnl.dsn"

objConn.Open

As I said it works perfectly on my computer but not on the Internet. Here's
what confuses me: my DSN is created with the path to the database in my pc.
When it's uploaded to the server does it automatically find my database
there?


"Bullschmidt" <paul@bullschmidt.com-nospam> wrote in message
news:uaF8CyKiDHA.2224@TK2MSFTNGP10.phx.gbl...[color=blue]
> <<
> I'm sure that the path to the database is correct. What could be the
> reason?[color=green][color=darkred]
> >>[/color][/color]
>
> I think it might be a problem with the path to the database in the
> connection string. You could try switching over to a DSN whose
> connection string is just the name of the DSN.
>
> Best regards,
> J. Paul Schmidt, Freelance ASP Web Developer
> http://www.Bullschmidt.com
> ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]


  #5  
Old July 19th, 2005, 08:44 AM
zokinjo
Guest
 
Posts: n/a
Default Re: Problem with my database

Thanks Ray, but it seems ok to me.

"Ray at <%=sLocation%>" <myfirstname at lane 34 . komm> wrote in message
news:eYjU5wHiDHA.1508@TK2MSFTNGP10.phx.gbl...[color=blue]
> Do a view source, and you'll probably see there's an error that doesn't[/color]
show[color=blue]
> up in the browser, because it's within an <option> tag or something along
> those lines.
>
> Ray at home
>
> "zokinjo" <grifone@net4u.hr> wrote in message
> news:blf8oj$jbq$1@bagan.srce.hr...[color=green]
> > Hello! I have only recently started to learn ASP and this is the[/color]
> situation:[color=green]
> > I made a database in MS Access and two ASP pages, one with a drop-down[/color][/color]
box[color=blue][color=green]
> > with some options in it and the other one which then shows more data[/color][/color]
from[color=blue][color=green]
> > the database about the chosen option. All of this worked perfectly on my[/color]
> pc[color=green]
> > but when I uploaded all of this to the server all I get on my website is[/color]
> an[color=green]
> > empty drop-down box. It seems that my page can't read the data from the
> > database. I'm sure that the path to the database is correct. What could[/color][/color]
be[color=blue][color=green]
> > the reason?
> >
> >
> >
> >[/color]
>
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,338 network members.