473,395 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Login box popping up!

I am created a ASPX web app. I am using forms authentication and it seems
to be working well.

After logging in I am redirected to a form that is a "Secure" directory.
It's using data coming from a SQL Server db on the internet. Clicking on a
listbox item is supposed to populate the form with data. (It's doing a
postback.)

The first time the form loads it does it fine. But, when I click on a
listbox item (to have the form populated with a new set of data) I get a
Windows login window. Any ideas???

The window title is "Connect to DCQBMR99" which is my pc.

Thanks.
Nov 19 '05 #1
4 1575
How does your Authentication WORK?
Becos it seems the page isn't authorised so u needed to Authenticate!!
Patrick

"VB Programmer" wrote:
I am created a ASPX web app. I am using forms authentication and it seems
to be working well.

After logging in I am redirected to a form that is a "Secure" directory.
It's using data coming from a SQL Server db on the internet. Clicking on a
listbox item is supposed to populate the form with data. (It's doing a
postback.)

The first time the form loads it does it fine. But, when I click on a
listbox item (to have the form populated with a new set of data) I get a
Windows login window. Any ideas???

The window title is "Connect to DCQBMR99" which is my pc.

Thanks.

Nov 19 '05 #2
Like this:
http://msdn.microsoft.com/library/de...SecNetHT03.asp

"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
How does your Authentication WORK?
Becos it seems the page isn't authorised so u needed to Authenticate!!
Patrick

"VB Programmer" wrote:
I am created a ASPX web app. I am using forms authentication and it
seems
to be working well.

After logging in I am redirected to a form that is a "Secure" directory.
It's using data coming from a SQL Server db on the internet. Clicking on
a
listbox item is supposed to populate the form with data. (It's doing a
postback.)

The first time the form loads it does it fine. But, when I click on a
listbox item (to have the form populated with a new set of data) I get a
Windows login window. Any ideas???

The window title is "Connect to DCQBMR99" which is my pc.

Thanks.

Nov 19 '05 #3
In a nutshell:

My normal web.config is setup like this:
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name="sqlAuthCookie" timeout="60"
path="/">
</forms>
</authentication>
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>

The secured page is in a Secured dir. My complete web.config in this dir is
this:
<configuration>
<system.web>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
</system.web>
</configuration>

When I load up the page in the Secured dir it auto-redirects me to
Login.aspx (which is good). After the user types in a correct
userid/password I simple do a response.redirect to the ReturnUrl from the
QueryString.

The secured page initially loads with NO Windows login prompt. But on the
postback it prompts me.

Any ideas?

Thanks.

"VB Programmer" <Do*****************@jEmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Like this:
http://msdn.microsoft.com/library/de...SecNetHT03.asp

"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
How does your Authentication WORK?
Becos it seems the page isn't authorised so u needed to Authenticate!!
Patrick

"VB Programmer" wrote:
I am created a ASPX web app. I am using forms authentication and it
seems
to be working well.

After logging in I am redirected to a form that is a "Secure" directory.
It's using data coming from a SQL Server db on the internet. Clicking
on a
listbox item is supposed to populate the form with data. (It's doing a
postback.)

The first time the form loads it does it fine. But, when I click on a
listbox item (to have the form populated with a new set of data) I get a
Windows login window. Any ideas???

The window title is "Connect to DCQBMR99" which is my pc.

Thanks.


Nov 19 '05 #4
I fixed it. DO NOT USE RESPONSE.REDIRECT.

Use this:
System.Web.Security.FormsAuthentication.RedirectFr omLoginPage(Me.txtUserName.Text,
True)

Duh.... me

"VB Programmer" <Do*****************@jEmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
In a nutshell:

My normal web.config is setup like this:
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name="sqlAuthCookie" timeout="60"
path="/">
</forms>
</authentication>
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>

The secured page is in a Secured dir. My complete web.config in this dir
is this:
<configuration>
<system.web>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
</system.web>
</configuration>

When I load up the page in the Secured dir it auto-redirects me to
Login.aspx (which is good). After the user types in a correct
userid/password I simple do a response.redirect to the ReturnUrl from the
QueryString.

The secured page initially loads with NO Windows login prompt. But on the
postback it prompts me.

Any ideas?

Thanks.

"VB Programmer" <Do*****************@jEmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Like this:
http://msdn.microsoft.com/library/de...SecNetHT03.asp

"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
How does your Authentication WORK?
Becos it seems the page isn't authorised so u needed to Authenticate!!
Patrick

"VB Programmer" wrote:

I am created a ASPX web app. I am using forms authentication and it
seems
to be working well.

After logging in I am redirected to a form that is a "Secure"
directory.
It's using data coming from a SQL Server db on the internet. Clicking
on a
listbox item is supposed to populate the form with data. (It's doing a
postback.)

The first time the form loads it does it fine. But, when I click on a
listbox item (to have the form populated with a new set of data) I get
a
Windows login window. Any ideas???

The window title is "Connect to DCQBMR99" which is my pc.

Thanks.



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Obscurr | last post by:
hi! I was wondering how I could send a mail without the mail client popping up to the user. I would like a mail to be sent to myself when someone's pushing a button on my homepage. Any ideas? ...
2
by: Maria | last post by:
Here's what I'm trying to do: I have a web page that's calling the server variable LOGON_USER to retrieve the userid of the person accessing it. The web has anonymous access disabled, and...
3
by: Lee David | last post by:
I'm trying to have a popup window of new changes when a person comes to my web page and something has changed. I can see the "alert" popping up, but not the page. The page would look better and...
4
by: Alfred Salton | last post by:
I have a dynamic form that is managed entirely on the browser side (that is fields are added and removed without a postback). The page the form is on requires a login. When the user submits the...
7
by: TJoker .NET | last post by:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP installed, no SPs for CR). My reports get their...
3
by: Bill Nguyen | last post by:
Once applied the latest security patches from Microsoft, OL on our VB app client machines keep popping up dialog box asking for permission to send mail using OL. Is there anyway to by pass this...
5
by: Russell Warren | last post by:
Does anyone have an easier/faster/better way of popping from the middle of a deque than this? class mydeque(deque): def popmiddle(self, pos): self.rotate(-pos) ret = self.popleft()...
2
by: samir.kuthiala | last post by:
I do some requests in the background on a page using the XMLHttpRequest object. My site uses NTLM Authentication. However if the user is not logged in, it throws up an ugly dialog box. Is there...
19
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.