| ASP Connection String for Privileged Account |
|
 |
Index ‹ Web Programming ‹ ASP/Active Server Pages
|
- Previous
- 1
- 2
- ASP.Net >> Website security without javascript or cookiesWhat are the pitfalls of passing a token in the url once a user is
logged on so I can remember who they are?
I can easily implement this by adding &token=abcdefghijklmnop123 to
each internal link on my web pages once the user is logged on.
I won't be passing the username or password in the url, just a token
that is created when a user logs on. When the server receives the token
it maps it back to the account id. This saves the user from logging on
all the time and also means I don't rely on javascript or cookies.
I can make the token time out after ten minutes of inactivity. I could
also encrypt the client ip address in the token for further security
and check it on the server. Is this wise? How dynamic can IP addresses
be? Can a surfer's ip address change without dialing off and back in to
the isp?
My "token in the url" proposal isn't used by Amazon and that makes me
think I'm missing some security issue. Amazonseem to use cookies for
all but the secure pages and then seem to use a token in the url over a
https link for the more secure pages, which scrambles the token.
Thanks for any insights
- 3
- 4
- 5
- Frontpage Client >> video streamingI am using windows media encoder to stream live video.
How can I add this live stream on my web page, in a player?
The stream is http://tvministry.woomc.org:1123
How would I script this in frontpage so that viewers can access the live
stream in an embedded player on my site?
- 6
- 7
- ASP.Net >> IIS x NetscapeDear friends,
How do I do to test my pages in Netspace 7.1 with IIS 5?
When I open any website, is requested an user and password. I put my Windows
XP user and password but return HTTP error 403...
How do I do to configure IIS for open web site in Netscape without
authentication?
Thank you and I'm sorry by my poor english.
RAMON ROCHA
from Brazil
- 8
- Frontpage Programming >> Playing two pieces of video in sequenceHow can I program a link to call up two separate pieces of video, one after
another?
I tried the .M3U playlist thing, but had a problem when the first video
would play fine, but the second would only play audio. I tried updating
everything I could find to update, but still couldn't make this work.
Any suggestions would be appreciated.
ed
- 9
- ASP.Net >> Adding Validation via OnItemDataBound event (ASP.NET 2.0)OK, I am running into some issues that I cant figure out a work-around.
I am not going to post code cause I figured out WHY my issue is
happening:
-I have a datagrid, and a button that fires a click event.
-The Datagrids onitemdatabound event dynamically creates validation
controls per values from other columns in the datagrid, one of those
controls is a textbox and it is the ControlToValidate of the validation
control.
ie - Basically, think of a shopping cart with a quantity textbox and
another NOT visible column for inventory. During onitemdatabound I
check the inventory (tempInventory = e.Item.Cells(1).Text) and create
the necessary validation for Qty.
Everything works great with client side validation, the problem starts
when I attempt to process validation server side.
When my button with the click event is fired, Page.IsValid is always
true. BUT, when I move the validation control creation to the
OnItemCreated event, it all works fine.
My problem is that the validation relies on data, which OnItemDataBound
has not fired yet for that item.
Any ideas? In theory, I am thinking of creating the validation fully at
itemCreated, then disable and change validator properties at the
itemdatabound event if applicable???? I don't know if that will even
work.
- 10
- Frontpage Client >> targetting multiple frames with different contents?Is it possible to target multiple frames with different contents from one
source link.
I have two inline frames for different purpose, yet for a similar topic, how
do I target two inline frames to bring out to different contents when I
select an option from a menu?
I am using FrontPage 2003.
- 11
- Frontpage Client >> Frontpage keeps running producing no error message when trying to open websiteHi,
I can open one website but not another. The other
website opens fine on another computer.
When I try to open the web on the computer that won't do
it frontpage just keeps running with a blank page and no
error message.
I've checked the hard drive, defragmented the disk, ran
detect and repair on frontpage and increased virtual
memory.
Hope someone out there has some ideas?
Thanks so much for reading.
Jerry
- 12
- ASP.Net >> Asymmetric EncryptionHello everybody..
I hav some confusion regarding asymmetric encryption.As asymmetric
encryption it there is one private key and one public key.So any data
is encrypted using private key and the same is decrypted at client side
using public key and vice-versa..Now i hav confusion like i.e.
* Are both the keys available to both sender and receiver.?
* When data is encrypted using public key ,Is the same data decrypted
using private key( at client side).?
* How the keys are send to the client/receiver of message..I mean are
they assigned to browsers or they are validated or send depending on
login id/password of a user.?
*If possible kindly explain (in-short) the whole process of assymetric
encryption.!!!plz
Thanks & Regards
Priyabrata
- 13
- ASP.Net >> Table or DatagridHello,
Im new in asp.net especially in web base application.
I want to ask about datagrid. I had shown my table on
datagrid, and what I want to ask is how to set the column
height fixed? Because when I have a long word it
automatically set new line instead of hide it. I want it
to be hide like this 928192... with 3 dot at the end of
the word if it is to long.
Is it possible to do it?
Thanks alll
- 14
- 15
- ASP.Net >> Best Way to Replace string characterI have the following letters;
string letters = "a;b;c....to z";
the I need to replace the incoming string which containing letters above
with integer 1 i did following
for(int u=0;u<letters.Split(';').Length;u++) {
FilesName = FilesName.Trim().Replace(letters.Split(';')[u], "1");
}
is there better way to do that
|
| Author |
Message |
Inno

|
Posted: Tue Jun 06 06:43:49 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
I don't know if this is a unique problem, or I'm going about it the
wrong way. I currently connect to one of our SQL servers via a
priviliged account (by using RUNAS). Works with no problem. I now
need the ability to connect to the same SQL server using ASP. I have
the following connect string, but I'm not sure how to specify the
domain in the string, or is there some other way?
<%
Set demoConn = Server.CreateObject("ADODB.Connection")
demoPath="DRIVER={SQL Server};" & _
"SERVER=mysqlserver;UID=myusername;" & _
"PWD=mypassword#;DATABASE=qdb"
demoConn.open demoPath
%>
Thanks!
Web Programming331
|
| |
|
| |
 |
Bob

|
Posted: Tue Jun 06 06:43:49 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
EMail@HideDomain.com wrote:
> I don't know if this is a unique problem, or I'm going about it the
> wrong way. I currently connect to one of our SQL servers via a
> priviliged account (by using RUNAS). Works with no problem. I now
> need the ability to connect to the same SQL server using ASP. I have
> the following connect string, but I'm not sure how to specify the
> domain in the string, or is there some other way?
First, you need to turn off Anonymous access in your website's Directory
Security settings using IIS Manager.
>
> <%
> Set demoConn = Server.CreateObject("ADODB.Connection")
> demoPath="DRIVER={SQL Server};" & _
> "SERVER=mysqlserver;UID=myusername;" & _
> "PWD=mypassword#;DATABASE=qdb"
> demoConn.open demoPath
> %>
>
> Thanks!
http://www.aspfaq.com/show.asp?id=2126
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
Egbert

|
Posted: Wed Jun 07 05:44:00 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
<EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>I don't know if this is a unique problem, or I'm going about it the
> wrong way. I currently connect to one of our SQL servers via a
> priviliged account (by using RUNAS). Works with no problem. I now
> need the ability to connect to the same SQL server using ASP. I have
> the following connect string, but I'm not sure how to specify the
> domain in the string, or is there some other way?
>
> <%
> Set demoConn = Server.CreateObject("ADODB.Connection")
> demoPath="DRIVER={SQL Server};" & _
> "SERVER=mysqlserver;UID=myusername;" & _
> "PWD=mypassword#;DATABASE=qdb"
> demoConn.open demoPath
> %>
>
This might work perfect. Including the tip Bob gave.
<%
Set demoConn = CreateObject("ADODB.Connection")
demoPath="Provider=SQLOLEDB" & _
"Data Source=mysqlserver;Integrated Security=SSPI;" & _
"Initial Catalog=qdb"
demoConn.open demoPath
%>
--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm
|
| |
|
| |
 |
Bob

|
Posted: Wed Jun 07 11:58:11 CDT 2006 |
Top |
|
| |
 |
Bob

|
Posted: Wed Jun 07 12:02:46 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
More to the point:
http://support.microsoft.com/kb/q278604/
EMail@HideDomain.com wrote:
> I tried your suggestion but got the following error:
>
> Provider cannot be found. It may not be properly installed.
>
>> This might work perfect. Including the tip Bob gave.
>>
>> <%
>> Set demoConn = CreateObject("ADODB.Connection")
>> demoPath="Provider=SQLOLEDB" & _
>> "Data Source=mysqlserver;Integrated Security=SSPI;" & _
>> "Initial Catalog=qdb"
>> demoConn.open demoPath
>> %>
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|
| |
|
| |
 |
sucaba

|
Posted: Wed Jun 07 11:41:25 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
I tried your suggestion but got the following error:
Provider cannot be found. It may not be properly installed.
> This might work perfect. Including the tip Bob gave.
>
> <%
> Set demoConn = CreateObject("ADODB.Connection")
> demoPath="Provider=SQLOLEDB" & _
> "Data Source=mysqlserver;Integrated Security=SSPI;" & _
> "Initial Catalog=qdb"
> demoConn.open demoPath
> %>
|
| |
|
| |
 |
sucaba

|
Posted: Wed Jun 07 14:09:32 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Thanks Bob. I thought I had a syntax problem instead of a provider
problem.
Bob Barrows [MVP] wrote:
> More to the point:
> http://support.microsoft.com/kb/q278604/
> EMail@HideDomain.com wrote:
> > I tried your suggestion but got the following error:
> >
> > Provider cannot be found. It may not be properly installed.
> >
> >> This might work perfect. Including the tip Bob gave.
> >>
> >> <%
> >> Set demoConn = CreateObject("ADODB.Connection")
> >> demoPath="Provider=SQLOLEDB" & _
> >> "Data Source=mysqlserver;Integrated Security=SSPI;" & _
> >> "Initial Catalog=qdb"
> >> demoConn.open demoPath
> >> %>
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
|
| |
|
| |
 |
sucaba

|
Posted: Wed Jun 07 15:17:40 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Okay, I registered the dll, but still getting the same error.
EMail@HideDomain.com wrote:
> Thanks Bob. I thought I had a syntax problem instead of a provider
> problem.
>
> Bob Barrows [MVP] wrote:
> > More to the point:
> > http://support.microsoft.com/kb/q278604/
> > EMail@HideDomain.com wrote:
> > > I tried your suggestion but got the following error:
> > >
> > > Provider cannot be found. It may not be properly installed.
> > >
> > >> This might work perfect. Including the tip Bob gave.
> > >>
> > >> <%
> > >> Set demoConn = CreateObject("ADODB.Connection")
> > >> demoPath="Provider=SQLOLEDB" & _
> > >> "Data Source=mysqlserver;Integrated Security=SSPI;" & _
> > >> "Initial Catalog=qdb"
> > >> demoConn.open demoPath
> > >> %>
> >
> > --
> > Microsoft MVP -- ASP/ASP.NET
> > Please reply to the newsgroup. The email account listed in my From
> > header is my spam trap, so I don't check it very often. You will get a
> > quicker response by posting to the newsgroup.
|
| |
|
| |
 |
sucaba

|
Posted: Wed Jun 07 15:26:38 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Okay, stupid question, but I just realized that I'm not sure I
registered the dll on the right machine. Do I register on the SQL
server or the IIs server that has the ASP scripts?
EMail@HideDomain.com wrote:
> Okay, I registered the dll, but still getting the same error.
>
> EMail@HideDomain.com wrote:
> > Thanks Bob. I thought I had a syntax problem instead of a provider
> > problem.
> >
> > Bob Barrows [MVP] wrote:
> > > More to the point:
> > > http://support.microsoft.com/kb/q278604/
> > > EMail@HideDomain.com wrote:
> > > > I tried your suggestion but got the following error:
> > > >
> > > > Provider cannot be found. It may not be properly installed.
> > > >
> > > >> This might work perfect. Including the tip Bob gave.
> > > >>
> > > >> <%
> > > >> Set demoConn = CreateObject("ADODB.Connection")
> > > >> demoPath="Provider=SQLOLEDB" & _
> > > >> "Data Source=mysqlserver;Integrated Security=SSPI;" & _
> > > >> "Initial Catalog=qdb"
> > > >> demoConn.open demoPath
> > > >> %>
> > >
> > > --
> > > Microsoft MVP -- ASP/ASP.NET
> > > Please reply to the newsgroup. The email account listed in my From
> > > header is my spam trap, so I don't check it very often. You will get a
> > > quicker response by posting to the newsgroup.
|
| |
|
| |
 |
Bob

|
Posted: Wed Jun 07 15:52:25 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
EMail@HideDomain.com wrote:
> I tried your suggestion but got the following error:
>
> Provider cannot be found. It may not be properly installed.
>
>> This might work perfect. Including the tip Bob gave.
>>
>> <%
>> Set demoConn = CreateObject("ADODB.Connection")
>> demoPath="Provider=SQLOLEDB" & _
>> "Data Source=mysqlserver;Integrated Security=SSPI;" & _
>> "Initial Catalog=qdb"
>> demoConn.open demoPath
>> %>
Actually, if you used this code verbatim, there is a syntax error: it's
missing a semicolon after the word "SQLOLEDB"
demoPath="Provider=SQLOLEDB;" & _
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|
| |
|
| |
 |
Bob

|
Posted: Wed Jun 07 15:52:57 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
On the IIS server.
But see my previous reply.
EMail@HideDomain.com wrote:
> Okay, stupid question, but I just realized that I'm not sure I
> registered the dll on the right machine. Do I register on the SQL
> server or the IIs server that has the ASP scripts?
>
> EMail@HideDomain.com wrote:
>> Okay, I registered the dll, but still getting the same error.
>>
>> EMail@HideDomain.com wrote:
>>> Thanks Bob. I thought I had a syntax problem instead of a provider
>>> problem.
>>>
>>> Bob Barrows [MVP] wrote:
>>>> More to the point:
>>>> http://support.microsoft.com/kb/q278604/
>>>> EMail@HideDomain.com wrote:
>>>>> I tried your suggestion but got the following error:
>>>>>
>>>>> Provider cannot be found. It may not be properly installed.
>>>>>
>>>>>> This might work perfect. Including the tip Bob gave.
>>>>>>
>>>>>> <%
>>>>>> Set demoConn = CreateObject("ADODB.Connection")
>>>>>> demoPath="Provider=SQLOLEDB" & _
>>>>>> "Data Source=mysqlserver;Integrated Security=SSPI;" & _
>>>>>> "Initial Catalog=qdb"
>>>>>> demoConn.open demoPath
>>>>>> %>
>>>>
>>>> --
>>>> Microsoft MVP -- ASP/ASP.NET
>>>> Please reply to the newsgroup. The email account listed in my From
>>>> header is my spam trap, so I don't check it very often. You will
>>>> get a quicker response by posting to the newsgroup.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|
| |
|
| |
 |
sucaba

|
Posted: Wed Jun 07 16:46:12 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
I'm back...Now I'm getting the access denied error again:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.
Stupid question 2: Where/how are login credentials being taken care of?
|
| |
|
| |
 |
Bob

|
Posted: Wed Jun 07 19:17:56 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
EMail@HideDomain.com wrote:
> I'm back...Now I'm getting the access denied error again:
>
> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
> access denied.
>
http://www.aspfaq.com/show.asp?id=2009 (scroll down almost halfway)
> Stupid question 2: Where/how are login credentials being taken care
> of?
Huh?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
sucaba

|
Posted: Thu Jun 08 09:09:26 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Stupid question...I know. How/where are login info specified?
Bob Barrows [MVP] wrote:
> EMail@HideDomain.com wrote:
> > I'm back...Now I'm getting the access denied error again:
> >
> > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
> > access denied.
> >
>
> http://www.aspfaq.com/show.asp?id=2009 (scroll down almost halfway)
>
> > Stupid question 2: Where/how are login credentials being taken care
> > of?
> Huh?
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
|
| |
|
| |
 |
Bob

|
Posted: Thu Jun 08 09:25:31 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Repeating the question does not clear up the confusion. What are you
talking about? Windows security? SQL Server security?
EMail@HideDomain.com wrote:
> Stupid question...I know. How/where are login info specified?
>
> Bob Barrows [MVP] wrote:
>> EMail@HideDomain.com wrote:
>>> I'm back...Now I'm getting the access denied error again:
>>>
>>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
>>> access denied.
>>>
>>
>> http://www.aspfaq.com/show.asp?id=2009 (scroll down almost halfway)
>>
>>> Stupid question 2: Where/how are login credentials being taken care
>>> of?
>> Huh?
>> --
>> Microsoft MVP - ASP/ASP.NET
>> Please reply to the newsgroup. This email account is my spam trap so
>> I don't check it very often. If you must reply off-line, then remove
>> the "NO SPAM"
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|
| |
|
| |
 |
sucaba

|
Posted: Thu Jun 08 10:24:51 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Authentication is set to Windows and SQL Server. Note that when I
connect to Query Analyzer, I connect using RUNAS then specify domain
and username.
Bob Barrows [MVP] wrote:
> Repeating the question does not clear up the confusion. What are you
> talking about? Windows security? SQL Server security?
>
> EMail@HideDomain.com wrote:
> > Stupid question...I know. How/where are login info specified?
> >
> > Bob Barrows [MVP] wrote:
> >> EMail@HideDomain.com wrote:
> >>> I'm back...Now I'm getting the access denied error again:
> >>>
> >>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
> >>> access denied.
> >>>
> >>
> >> http://www.aspfaq.com/show.asp?id=2009 (scroll down almost halfway)
> >>
> >>> Stupid question 2: Where/how are login credentials being taken care
> >>> of?
> >> Huh?
> >> --
> >> Microsoft MVP - ASP/ASP.NET
> >> Please reply to the newsgroup. This email account is my spam trap so
> >> I don't check it very often. If you must reply off-line, then remove
> >> the "NO SPAM"
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
|
| |
|
| |
 |
Bob

|
Posted: Thu Jun 08 10:54:54 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Y-e-e-e-s.
I'm sorry, but that does not make your question any clearer to me. What
"login info" are you asking about. SQL logins? Are you asking how to set
up your users in SQL Server? If so, this is more of a SQL Server
question than an ASP general question (there are newsgroupse devoted to
SQL Server questions: they have "sqlserver" in their names). The answer
depends on if you have Enterprise Manager. Do you have SQL Books Online?
if so, look up Security.
EMail@HideDomain.com wrote:
> Authentication is set to Windows and SQL Server. Note that when I
> connect to Query Analyzer, I connect using RUNAS then specify domain
> and username.
>
>
> Bob Barrows [MVP] wrote:
>> Repeating the question does not clear up the confusion. What are you
>> talking about? Windows security? SQL Server security?
>>
>> EMail@HideDomain.com wrote:
>>> Stupid question...I know. How/where are login info specified?
>>>
>>> Bob Barrows [MVP] wrote:
>>>> EMail@HideDomain.com wrote:
>>>>> I'm back...Now I'm getting the access denied error again:
>>>>>
>>>>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
>>>>> or access denied.
>>>>>
>>>>
>>>> http://www.aspfaq.com/show.asp?id=2009 (scroll down almost halfway)
>>>>
>>>>> Stupid question 2: Where/how are login credentials being taken
>>>>> care of?
>>>> Huh?
>>>> --
>>>> Microsoft MVP - ASP/ASP.NET
>>>> Please reply to the newsgroup. This email account is my spam trap
>>>> so I don't check it very often. If you must reply off-line, then
>>>> remove the "NO SPAM"
>>
>> --
>> Microsoft MVP -- ASP/ASP.NET
>> Please reply to the newsgroup. The email account listed in my From
>> header is my spam trap, so I don't check it very often. You will get
>> a quicker response by posting to the newsgroup.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|
| |
|
| |
 |
sucaba

|
Posted: Thu Jun 08 11:51:44 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Sorry Bob. All I'm trying to do is create a connect string with ASP to
log into the same SQL database I use with Query Analyzer and Enterprise
Manager. My confusion is that the connect string from above doesn't
have username/password in the string and I was wondering why not? Are
they implied? Should I be using a different connect string? Sorry for
the confusion.
Bob Barrows [MVP] wrote:
> Y-e-e-e-s.
> I'm sorry, but that does not make your question any clearer to me. What
> "login info" are you asking about. SQL logins? Are you asking how to set
> up your users in SQL Server? If so, this is more of a SQL Server
> question than an ASP general question (there are newsgroupse devoted to
> SQL Server questions: they have "sqlserver" in their names). The answer
> depends on if you have Enterprise Manager. Do you have SQL Books Online?
> if so, look up Security.
>
> EMail@HideDomain.com wrote:
> > Authentication is set to Windows and SQL Server. Note that when I
> > connect to Query Analyzer, I connect using RUNAS then specify domain
> > and username.
> >
> >
> > Bob Barrows [MVP] wrote:
> >> Repeating the question does not clear up the confusion. What are you
> >> talking about? Windows security? SQL Server security?
> >>
> >> EMail@HideDomain.com wrote:
> >>> Stupid question...I know. How/where are login info specified?
> >>>
> >>> Bob Barrows [MVP] wrote:
> >>>> EMail@HideDomain.com wrote:
> >>>>> I'm back...Now I'm getting the access denied error again:
> >>>>>
> >>>>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
> >>>>> or access denied.
> >>>>>
> >>>>
> >>>> http://www.aspfaq.com/show.asp?id=2009 (scroll down almost halfway)
> >>>>
> >>>>> Stupid question 2: Where/how are login credentials being taken
> >>>>> care of?
> >>>> Huh?
> >>>> --
> >>>> Microsoft MVP - ASP/ASP.NET
> >>>> Please reply to the newsgroup. This email account is my spam trap
> >>>> so I don't check it very often. If you must reply off-line, then
> >>>> remove the "NO SPAM"
> >>
> >> --
> >> Microsoft MVP -- ASP/ASP.NET
> >> Please reply to the newsgroup. The email account listed in my From
> >> header is my spam trap, so I don't check it very often. You will get
> >> a quicker response by posting to the newsgroup.
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
|
| |
|
| |
 |
Bob

|
Posted: Thu Jun 08 12:38:19 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Ahhh! Now the question is clear!
The line "Integrated Security=SSPI" causes the windows credentials of
the current user to be used to log into the server.
In an ASP application, as long as Anonymous access is disabled, the
current user will be the user whose name appears in the "LOGON_USER"
servervariable. Use this to verify that the user's credentials are being
seen:
Response.Write Request.ServerVariables("LOGON_USER")
But that should have nothing to do with your problem. The "server does
not exist..." error you are seeing is happening even before the login
is attempted. You should Response.Write your connection string and make
sure you have no typos.
EMail@HideDomain.com wrote:
> Sorry Bob. All I'm trying to do is create a connect string with ASP
> to log into the same SQL database I use with Query Analyzer and
> Enterprise Manager. My confusion is that the connect string from
> above doesn't have username/password in the string and I was
> wondering why not? Are they implied? Should I be using a different
> connect string? Sorry for the confusion.
>
>
> Bob Barrows [MVP] wrote:
>> Y-e-e-e-s.
>> I'm sorry, but that does not make your question any clearer to me.
>> What "login info" are you asking about. SQL logins? Are you asking
>> how to set up your users in SQL Server? If so, this is more of a SQL
>> Server question than an ASP general question (there are newsgroupse
>> devoted to SQL Server questions: they have "sqlserver" in their
>> names). The answer depends on if you have Enterprise Manager. Do you
>> have SQL Books Online? if so, look up Security.
>>
>> EMail@HideDomain.com wrote:
>>> Authentication is set to Windows and SQL Server. Note that when I
>>> connect to Query Analyzer, I connect using RUNAS then specify domain
>>> and username.
>>>
>>>
>>> Bob Barrows [MVP] wrote:
>>>> Repeating the question does not clear up the confusion. What are
>>>> you talking about? Windows security? SQL Server security?
>>>>
>>>> EMail@HideDomain.com wrote:
>>>>> Stupid question...I know. How/where are login info specified?
>>>>>
>>>>> Bob Barrows [MVP] wrote:
>>>>>> EMail@HideDomain.com wrote:
>>>>>>> I'm back...Now I'm getting the access denied error again:
>>>>>>>
>>>>>>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
>>>>>>> or access denied.
>>>>>>>
>>>>>>
>>>>>> http://www.aspfaq.com/show.asp?id=2009 (scroll down almost
>>>>>> halfway)
>>>>>>
>>>>>>> Stupid question 2: Where/how are login credentials being taken
>>>>>>> care of?
>>>>>> Huh?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|
| |
|
| |
 |
sucaba

|
Posted: Thu Jun 08 14:51:58 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Aha! Now I can see the logon credentials. Per your suggestion, I
tried to write.response my connect string, but got the same error.
Here's what I tried:
response.write demopath
Bob Barrows [MVP] wrote:
> Ahhh! Now the question is clear!
> The line "Integrated Security=SSPI" causes the windows credentials of
> the current user to be used to log into the server.
> In an ASP application, as long as Anonymous access is disabled, the
> current user will be the user whose name appears in the "LOGON_USER"
> servervariable. Use this to verify that the user's credentials are being
> seen:
>
> Response.Write Request.ServerVariables("LOGON_USER")
>
> But that should have nothing to do with your problem. The "server does
> not exist..." error you are seeing is happening even before the login
> is attempted. You should Response.Write your connection string and make
> sure you have no typos.
>
> EMail@HideDomain.com wrote:
> > Sorry Bob. All I'm trying to do is create a connect string with ASP
> > to log into the same SQL database I use with Query Analyzer and
> > Enterprise Manager. My confusion is that the connect string from
> > above doesn't have username/password in the string and I was
> > wondering why not? Are they implied? Should I be using a different
> > connect string? Sorry for the confusion.
> >
> >
> > Bob Barrows [MVP] wrote:
> >> Y-e-e-e-s.
> >> I'm sorry, but that does not make your question any clearer to me.
> >> What "login info" are you asking about. SQL logins? Are you asking
> >> how to set up your users in SQL Server? If so, this is more of a SQL
> >> Server question than an ASP general question (there are newsgroupse
> >> devoted to SQL Server questions: they have "sqlserver" in their
> >> names). The answer depends on if you have Enterprise Manager. Do you
> >> have SQL Books Online? if so, look up Security.
> >>
> >> EMail@HideDomain.com wrote:
> >>> Authentication is set to Windows and SQL Server. Note that when I
> >>> connect to Query Analyzer, I connect using RUNAS then specify domain
> >>> and username.
> >>>
> >>>
> >>> Bob Barrows [MVP] wrote:
> >>>> Repeating the question does not clear up the confusion. What are
> >>>> you talking about? Windows security? SQL Server security?
> >>>>
> >>>> EMail@HideDomain.com wrote:
> >>>>> Stupid question...I know. How/where are login info specified?
> >>>>>
> >>>>> Bob Barrows [MVP] wrote:
> >>>>>> EMail@HideDomain.com wrote:
> >>>>>>> I'm back...Now I'm getting the access denied error again:
> >>>>>>>
> >>>>>>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
> >>>>>>> or access denied.
> >>>>>>>
> >>>>>>
> >>>>>> http://www.aspfaq.com/show.asp?id=2009 (scroll down almost
> >>>>>> halfway)
> >>>>>>
> >>>>>>> Stupid question 2: Where/how are login credentials being taken
> >>>>>>> care of?
> >>>>>> Huh?
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
|
| |
|
| |
 |
Bob

|
Posted: Thu Jun 08 15:38:54 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
EMail@HideDomain.com wrote:
> Aha! Now I can see the logon credentials. Per your suggestion, I
> tried to write.response my connect string, but got the same error.
> Here's what I tried:
>
> response.write demopath
>
So what was the result?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|
| |
|
| |
 |
sucaba

|
Posted: Fri Jun 09 08:51:26 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
I'm not sure the response.write worked but here's the output:
Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.
/test3.asp, line 6
Bob Barrows [MVP] wrote:
> EMail@HideDomain.com wrote:
> > Aha! Now I can see the logon credentials. Per your suggestion, I
> > tried to write.response my connect string, but got the same error.
> > Here's what I tried:
> >
> > response.write demopath
> >
> So what was the result?
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
|
| |
|
| |
 |
Bob

|
Posted: Fri Jun 09 09:44:58 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Assign the connection string to a variable and response.write the contents
of that variable:
dim constr
constr="provider= ..."
response.write constr
response.end
dim cn
etc
EMail@HideDomain.com wrote:
> I'm not sure the response.write worked but here's the output:
>
> Microsoft OLE DB Provider for SQL Server error '80004005'
>
> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
> access denied.
>
> /test3.asp, line 6
>
>
> Bob Barrows [MVP] wrote:
>> EMail@HideDomain.com wrote:
>>> Aha! Now I can see the logon credentials. Per your suggestion, I
>>> tried to write.response my connect string, but got the same error.
>>> Here's what I tried:
>>>
>>> response.write demopath
>>>
>> So what was the result?
>> --
>> Microsoft MVP -- ASP/ASP.NET
>> Please reply to the newsgroup. The email account listed in my From
>> header is my spam trap, so I don't check it very often. You will get
>> a quicker response by posting to the newsgroup.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
sucaba

|
Posted: Fri Jun 09 10:25:40 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Obviously I'm doing something wrong. Here's my code:
<%
dim demopath
Set demoConn = CreateObject("ADODB.Connection")
demoPath="Provider=SQLOLEDB;" & _
"Data Source=enpefrqdb01;Integrated Security=SSPI;" & _
"Initial Catalog=qdb"
demoConn.open demoPath
response.write demopath
response.end
%>
BTW, thanks for all the help Bob.
Bob Barrows [MVP] wrote:
> Assign the connection string to a variable and response.write the contents
> of that variable:
>
> dim constr
> constr="provider= ..."
> response.write constr
> response.end
> dim cn
> etc
>
> EMail@HideDomain.com wrote:
> > I'm not sure the response.write worked but here's the output:
> >
> > Microsoft OLE DB Provider for SQL Server error '80004005'
> >
> > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
> > access denied.
> >
> > /test3.asp, line 6
> >
> >
> > Bob Barrows [MVP] wrote:
> >> EMail@HideDomain.com wrote:
> >>> Aha! Now I can see the logon credentials. Per your suggestion, I
> >>> tried to write.response my connect string, but got the same error.
> >>> Here's what I tried:
> >>>
> >>> response.write demopath
> >>>
> >> So what was the result?
> >> --
> >> Microsoft MVP -- ASP/ASP.NET
> >> Please reply to the newsgroup. The email account listed in my From
> >> header is my spam trap, so I don't check it very often. You will get
> >> a quicker response by posting to the newsgroup.
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
|
| |
|
| |
 |
Bob

|
Posted: Fri Jun 09 10:30:32 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Move the Open statement to a line that follows the response.end statment
EMail@HideDomain.com wrote:
> Obviously I'm doing something wrong. Here's my code:
>
> <%
> dim demopath
> Set demoConn = CreateObject("ADODB.Connection")
> demoPath="Provider=SQLOLEDB;" & _
> "Data Source=enpefrqdb01;Integrated Security=SSPI;" & _
> "Initial Catalog=qdb"
> demoConn.open demoPath
> response.write demopath
> response.end
> %>
>
> BTW, thanks for all the help Bob.
>
>
> Bob Barrows [MVP] wrote:
>> Assign the connection string to a variable and response.write the
>> contents of that variable:
>>
>> dim constr
>> constr="provider= ..."
>> response.write constr
>> response.end
>> dim cn
>> etc
>>
>> EMail@HideDomain.com wrote:
>>> I'm not sure the response.write worked but here's the output:
>>>
>>> Microsoft OLE DB Provider for SQL Server error '80004005'
>>>
>>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
>>> access denied.
>>>
>>> /test3.asp, line 6
>>>
>>>
>>> Bob Barrows [MVP] wrote:
>>>> EMail@HideDomain.com wrote:
>>>>> Aha! Now I can see the logon credentials. Per your suggestion, I
>>>>> tried to write.response my connect string, but got the same error.
>>>>> Here's what I tried:
>>>>>
>>>>> response.write demopath
>>>>>
>>>> So what was the result?
>>>> --
>>>> Microsoft MVP -- ASP/ASP.NET
>>>> Please reply to the newsgroup. The email account listed in my From
>>>> header is my spam trap, so I don't check it very often. You will
>>>> get
>>>> a quicker response by posting to the newsgroup.
>>
>> --
>> Microsoft MVP - ASP/ASP.NET
>> Please reply to the newsgroup. This email account is my spam trap so
>> I don't check it very often. If you must reply off-line, then remove
>> the "NO SPAM"
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
Bob

|
Posted: Fri Jun 09 10:32:21 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
EMail@HideDomain.com wrote:
> Obviously I'm doing something wrong. Here's my code:
>
> <%
> dim demopath
> Set demoConn = CreateObject("ADODB.Connection")
> demoPath="Provider=SQLOLEDB;" & _
> "Data Source=enpefrqdb01;Integrated Security=SSPI;" & _
> "Initial Catalog=qdb"
> demoConn.open demoPath
> response.write demopath
> response.end
> %>
>
> BTW, thanks for all the help Bob.
>
>
Ask yourself:
Which line of code is raising the error?
Then
Which line of code do I want to prevent from being executed by using
response.end?
The solution should be obvious ... :-)
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
sucaba

|
Posted: Fri Jun 09 10:53:13 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Doh! Sorry 'bout that. Here's the output:
Provider=SQLOLEDB;Data Source=xxxx01;Integrated Security=SSPI;Initial
Catalog=qdb
Bob Barrows [MVP] wrote:
> Move the Open statement to a line that follows the response.end statment
> EMail@HideDomain.com wrote:
> > Obviously I'm doing something wrong. Here's my code:
> >
> > <%
> > dim demopath
> > Set demoConn = CreateObject("ADODB.Connection")
> > demoPath="Provider=SQLOLEDB;" & _
> > "Data Source=enpefrqdb01;Integrated Security=SSPI;" & _
> > "Initial Catalog=qdb"
> > demoConn.open demoPath
> > response.write demopath
> > response.end
> > %>
> >
> > BTW, thanks for all the help Bob.
> >
> >
> > Bob Barrows [MVP] wrote:
> >> Assign the connection string to a variable and response.write the
> >> contents of that variable:
> >>
> >> dim constr
> >> constr="provider= ..."
> >> response.write constr
> >> response.end
> >> dim cn
> >> etc
> >>
> >> EMail@HideDomain.com wrote:
> >>> I'm not sure the response.write worked but here's the output:
> >>>
> >>> Microsoft OLE DB Provider for SQL Server error '80004005'
> >>>
> >>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
> >>> access denied.
> >>>
> >>> /test3.asp, line 6
> >>>
> >>>
> >>> Bob Barrows [MVP] wrote:
> >>>> EMail@HideDomain.com wrote:
> >>>>> Aha! Now I can see the logon credentials. Per your suggestion, I
> >>>>> tried to write.response my connect string, but got the same error.
> >>>>> Here's what I tried:
> >>>>>
> >>>>> response.write demopath
> >>>>>
> >>>> So what was the result?
> >>>> --
> >>>> Microsoft MVP -- ASP/ASP.NET
> >>>> Please reply to the newsgroup. The email account listed in my From
> >>>> header is my spam trap, so I don't check it very often. You will
> >>>> get
> >>>> a quicker response by posting to the newsgroup.
> >>
> >> --
> >> Microsoft MVP - ASP/ASP.NET
> >> Please reply to the newsgroup. This email account is my spam trap so
> >> I don't check it very often. If you must reply off-line, then remove
> >> the "NO SPAM"
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
|
| |
|
| |
 |
Bob

|
Posted: Fri Jun 09 11:01:03 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Well, there's something wrong here. Your line of code is:
"Data Source=enpefrqdb01;Integrated Security=SSPI;" & _
But the result of Response.Write is:
Data Source=xxxx01;Integrated Security=SSPI
I doubt your server is really called "xxxx01" is it?
EMail@HideDomain.com wrote:
> Doh! Sorry 'bout that. Here's the output:
>
> Provider=SQLOLEDB;Data Source=xxxx01;Integrated Security=SSPI;Initial
> Catalog=qdb
>
> Bob Barrows [MVP] wrote:
>> Move the Open statement to a line that follows the response.end
>> statment EMail@HideDomain.com wrote:
>>> Obviously I'm doing something wrong. Here's my code:
>>>
>>> <%
>>> dim demopath
>>> Set demoConn = CreateObject("ADODB.Connection")
>>> demoPath="Provider=SQLOLEDB;" & _
>>> "Data Source=enpefrqdb01;Integrated Security=SSPI;" & _
>>> "Initial Catalog=qdb"
>>> demoConn.open demoPath
>>> response.write demopath
>>> response.end
>>> %>
>>>
>>> BTW, thanks for all the help Bob.
>>>
>>>
>>> Bob Barrows [MVP] wrote:
>>>> Assign the connection string to a variable and response.write the
>>>> contents of that variable:
>>>>
>>>> dim constr
>>>> constr="provider= ..."
>>>> response.write constr
>>>> response.end
>>>> dim cn
>>>> etc
>>>>
>>>> EMail@HideDomain.com wrote:
>>>>> I'm not sure the response.write worked but here's the output:
>>>>>
>>>>> Microsoft OLE DB Provider for SQL Server error '80004005'
>>>>>
>>>>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
>>>>> or access denied.
>>>>>
>>>>> /test3.asp, line 6
>>>>>
>>>>>
>>>>> Bob Barrows [MVP] wrote:
>>>>>> EMail@HideDomain.com wrote:
>>>>>>> Aha! Now I can see the logon credentials. Per your
>>>>>>> suggestion, I tried to write.response my connect string, but
>>>>>>> got the same error. Here's what I tried:
>>>>>>>
>>>>>>> response.write demopath
>>>>>>>
>>>>>> So what was the result?
>>>>>> --
>>>>>> Microsoft MVP -- ASP/ASP.NET
>>>>>> Please reply to the newsgroup. The email account listed in my
>>>>>> From header is my spam trap, so I don't check it very often. You
>>>>>> will get
>>>>>> a quicker response by posting to the newsgroup.
>>>>
>>>> --
>>>> Microsoft MVP - ASP/ASP.NET
>>>> Please reply to the newsgroup. This email account is my spam trap
>>>> so I don't check it very often. If you must reply off-line, then
>>>> remove the "NO SPAM"
>>
>> --
>> Microsoft MVP - ASP/ASP.NET
>> Please reply to the newsgroup. This email account is my spam trap so
>> I don't check it very often. If you must reply off-line, then remove
>> the "NO SPAM"
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
sucaba

|
Posted: Fri Jun 09 11:42:23 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
Well I moved response.end after democonn.open, but still getting the
error. Obvious? Not to me...obviously! :-)
Bob Barrows [MVP] wrote:
> EMail@HideDomain.com wrote:
> > Obviously I'm doing something wrong. Here's my code:
> >
> > <%
> > dim demopath
> > Set demoConn = CreateObject("ADODB.Connection")
> > demoPath="Provider=SQLOLEDB;" & _
> > "Data Source=enpefrqdb01;Integrated Security=SSPI;" & _
> > "Initial Catalog=qdb"
> > demoConn.open demoPath
> > response.write demopath
> > response.end
> > %>
> >
> > BTW, thanks for all the help Bob.
> >
> >
>
> Ask yourself:
> Which line of code is raising the error?
> Then
> Which line of code do I want to prevent from being executed by using
> response.end?
>
> The solution should be obvious ... :-)
>
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
|
| |
|
| |
 |
Bob

|
Posted: Fri Jun 09 11:52:41 CDT 2006 |
Top |
ASP/Active Server Pages >> ASP Connection String for Privileged Account
This was in response to your previous post about not getting the
response.write to work ...
Nothing to do with your ADO error
EMail@HideDomain.com wrote:
> Well I moved response.end after democonn.open, but still getting the
> error. Obvious? Not to me...obviously! :-)
>
>
> Bob Barrows [MVP] wrote:
>> EMail@HideDomain.com wrote:
>>> Obviously I'm doing something wrong. Here's my code:
>>>
>>> <%
>>> dim demopath
>>> Set demoConn = CreateObject("ADODB.Connection")
>>> demoPath="Provider=SQLOLEDB;" & _
>>> "Data Source=enpefrqdb01;Integrated Security=SSPI;" & _
>>> "Initial Catalog=qdb"
>>> demoConn.open demoPath
>>> response.write demopath
>>> response.end
>>> %>
>>>
>>> BTW, thanks for all the help Bob.
>>>
>>>
>>
>> Ask yourself:
>> Which line of code is raising the error?
>> Then
>> Which line of code do I want to prevent from being executed by using
>> response.end?
>>
>> The solution should be obvious ... :-)
>>
>>
>> --
>> Microsoft MVP - ASP/ASP.NET
>> Please reply to the newsgroup. This email account is my spam trap so
>> I don't check it very often. If you must reply off-line, then remove
>> the "NO SPAM"
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP/Active Server Pages |
- Next
- 1
- ASP/Active Server Pages >> ASP error in IE<%
Option Explicit
Dim RS, WRS, CRS, cst conntemp, sqltemp, SQL, CNT, MVCNT
cst = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.MapPath("\db\xxx.mdb")
set conntemp = Server.CreateObject("ADODB.Connection")
conntemp.open cst '<== Line 6
When viewing this page in IE, if I refresh the page or click on a link to another page, I
get 2 dialog boxes, one after the other, when using IE. Doesn't happen in Firefox.
"A runtime error has occured.
Do you wish to debug?
Line 6
Object required"
Then the page reacts normally, it either refreshes, or goes to the linked page.
Thanks,
MikeR
- 2
- ASP.Net >> Why does web.config get updated?I have a solution with a web service as the starting project. The web
service references other projects in the solution, which in turn access
other assemblies (some of which are in the GAC). When I run, VS2005
stuffs a bunch of assemblies (that are 2 or 3 levels removed from the
web service) into into web.config into the
configuration/compilation/assemblies.
This is really annoying. How can I turn it off?
Thanks.
- 3
- ASP.Net >> RequiredFeildValidator HELP!!Hi all,
I am using the RequiredFeildValidator on my forms, which works well when i
want to do Adding or Updating on that form, however..
If i go to that form, then try going to a different form, it won't let me
leave because those certain textboxes require info in them, even though i
only want to use those require validators for only the Adding and Updating
buttons...
what should i do????
--
AdamPC@hotmail.com
- 4
- ASP.Net >> DropDownList Selecting itemUsing Visual Studio.net 2003 to create an aspx web form I am having a
problem selecting an item from DropDownListBox with id= ListBoxStudies.
I can see the items from the bound database table but when I click on an item
the selected item stays at itemindex 0. What must I do to have the
itemindex change when I click on an item. What's missing from the following
code?
ListBoxStudies.DataSource = BICDataSet.Tables("protocols")
ListBoxStudies.DataTextField = "Study_name"
ListBoxStudies.DataValueField = "irb_number"
ListBoxStudies.DataBind()
I have tested this using a submit button and the _SelectedIndexchanged event
and I still always get selectedindex = 0.
Private Sub DropDownListStudies_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Dim study_name As String = Session("study_name")
study_name = ListboxStudies.SelectedItem.Text
End Sub
--
Derek V. Taylor
UCI Brain Imaging Center
- 5
- ASP.Net >> User sending email attachments?I know how to send emails using ASP.NET. How can I allow the user to attach
a file to an email that they submit (via an ASPX online submission form)?
Ex: Allow user to submit a resume along with their info.
- 6
- Frontpage Client >> FlagsHi,
Does anyone know what those little flags mean in the
Design mode.
The page looks fine and I can't see the problem but I am
assuming there is one.
Thanks for any help.
Stephen
- 7
- ASP.Net >> redirecting a form's POST targetnot sure if that subject makes sense ;0)
I've been asked to do something I've never had to do; Create a form and
"hide" the url that it posts to. They don't want a user to be able to view
the source and see the REAL url that the form is posting to, they don't mind
if the user see "a" url, just not the actual one.
For example:
The site's URL is www.someForm.com and the form needs to post it's data to
www.someFormDatabase.com
I want to post the form to www.someForm.com then on the server side
"re-post" it to www.someFormDatabase.com
I hope you are following me, if so, does anyone have any idea how to do
this? I'm sure it's possible, I've just never needed to do it before. Any
suggestions or help very much appreciated.
Thanks for reading,
Steve
- 8
- ASP.Net >> Web Services securityHi
2000 Server IIS 5
I have a web service using anonymous access, however I need to be able to
output to a log file.
I've got a log.txt file in the same directory but I keep getting errors when
trying to write to the file, I've tried adjusting the permissions
accordingly but they don't seem to make any difference.
Any suggestions?
Thanks
Kev
- 9
- ASP.Net >> How to reference method in usercontrolHi
I want to call a method called test() on my user control type MyControl (see below). The question is how to reference this? I tried :
(MyControl)(Panel1.FindControl("myusercontrol1")).test();
page:
<asp:panel id="Panel1" runat="server">
<TABLE id="Table1" runat ="server">
<TR>
<TD >
<uc1:myusercontrol id="myusercontrol1"runat="server"></uc1:myusercontrol>
</TD>
</TR>
</TABLE>
</asp:panel>
Thanks
Dik
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
- 10
- ASP.Net >> Page output caching for database driven pages?What are best practices for page output caching on pages that are dynamically
generated from database tables.
Our site has left-hand navigation that is comprised of dynamically generated
menus of product categories. The categories are taken from several database
tables which rarely change.
This left-hand navigation is included on every single page in the site and
as such is wrapped up in a user-control. However, when I enabled caching on
the user-control, all DHTML and events cease to work properly.
Really confused!
Ben
However, when I tried applying
- 11
- IIS >> Permission to use object denied (500.100 Internal Server Error)Hello,
I'm having a problem with a site that I am developing...here is the
info..any help would be great!!
Developed 4 DLLs in VB6
Running Win 2000 Pro
IIS 5
ASP accesses one of my objects and gives the error listed below. I
have other objects that work fine (and do the same thing behind the
scenes). Don't really know where to start with this one. Did a search
on google, looked for KB articles, but couldn't find anything. Thought
that permissions were correct since my other objects were working but
apparently they aren't. Even tried using anon access with the
administrator account but that behaved in the same manner. On other
thing that i get is some sort of automation error "every once in a
while" not every time...
The server is new and has not had IIS Lockdown run yet.
Thanks in advance for any help you could give!
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
Error Type:
BenchmarkingTool (0x800A01A3)
Permission to use object denied
/BenchmarkGraph.asp, line 53
- 12
- ASP/Active Server Pages >> Please help with sessionsHi,
I am making an online quiz. I want to write the answers to
all the questions along with the user name to an output
file. Also, since there may be multiple users accessing
the quiz at the same time, I would like to use sessions.
Can someone tell me if all the answers have to be session
variables?
Thanks.
Ram
- 13
- Frontpage Programming >> frontpage email reply formI used the Frontpage 2003 templete for the email reply form. After I set the
properties and close the property box, I get an error message that "the
server is not configured to send emai"l. Before I published the site, I
enabled Frontpage extensions on the server.
I called the hosting company and they told me it will work with additional
programing to the form. I have no idea what additional programing needs to
be done.
Can anyone help me?
- 14
- ASP.Net >> "Thread was being aborted" exception on redirect - VERY weird!!Hello,
I have a page that is supposed to do some checking, and if OK, set a
session variable before redirecting to another page. The following code
is a simplified version, I have hard-coded the basket ID and removed a
load of extra checking...
public partial class GoToCheckout : Page {
public void Page_Load(Object o, EventArgs e) {
try {
Session["basketid"] = "178";
//x.Text = "redirecting to PreCheckout.aspx";
Response.Redirect("PreCheckout.aspx");
} catch (Exception ex) {
Response.Redirect("/?msg=" + ex.Message);
//x.Text = "exception - " + ex.Message;
}
}
}
When this page is called, it throws a "Thread was being aborted"
exception when it hits the line...
Response.Redirect("PreCheckout.aspx");
The catch block picks it up and redirects to the home page, putting the
exception message in the querystring. I did this because if I comment
out the redirect in the catch and instead use the (commented out) x.Text
bit (x is a literal, put on the otherwise empty .aspx file for
debugging), then the redirect works fine!!
If I comment out the redirect in the try block and uncomment the x.Text
line there, then the page displays the message "redirecting to
PreCheckout.aspx" exactly as expected.
So, it seems there's some weird problem with the redirect, but I can't
work it out. Nor can I work out why changing the behaviour of the code
in the catch block changes whether the exception is raised or not.
This code has been working fine for a few months now. I have recently
been changing pages to use master pages and themes, which is when I
noticed the problem. However, if I now change this page back to not use
a master or theme, the problem is still there. I am totally baffled, and
would appreciate any help you can offer. TIA
--
Alan Silver
(anything added below this line is nothing to do with me)
- 15
- ASP.Net >> remove user password that IE could cache : how ?Hello,
i have a Asp.net V2 login page with a password to enter.
In some case, a user could forget and tell IE to save its password :
How to prevent it ?
Is there a way to disable it ? to block it ?
Or could i create a button that save another text (replace) the cached
password ? the user will be prompted to click the button to remove its
cached password .... how to do it ?
Thanks a lot ...
|
|
|