473,387 Members | 1,638 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,387 software developers and data experts.

Windows Authentication In ASP.NET SQL 2005 VB

Daxthecon
I'm using VS 2008 and Microsoft SQL Server Express Edition to program an ASP.NET/VB web application. The web application has to do with putting in products to populate a table veiwed by another page where the person veiwing that page will have the permissions to deny/allow the purchase of the product to the user. Now down to what needs to be done...

1. I need to know how to use Windows Authentication to be passed from on Web app into this one. So that I can access and display the user email name and all properties associated with the Authentication because they will be coming from an internal site(Sharepoint and Intranet alike).

2. I am having issues with the SQL server telling me that when I go to debug(after I have linked the DataGrid to the DB and Table that it is associated with) that the Login failed and the stack trace tells me the Windows Authentication can not be imitated. I suspect that it has something to do with the way the computer is set up in that it is imaged from a remote desktop on to the screens where I work. No tower is involved. I don't know how to go about fixing this.

I would imagine these are some hefty questions that are hard to answer or maybe understand. Please if you need any guidance into what I was trying to say post your questions politely and I will get back to you quickly between 8-4pm CST.

Thank you in advance for any assistance provided.

Fixed issue number 2 as it was a VS issuing a login of it's own as a windows default authentication and the sql server wasn't looking for it. I created it under the sql server and it is now working fine.

Althought I now have a few more things to add.

3. I set up the datagrid to take information to a table but it doesn't want to add them. I have the correct settings for it in sql and in the data grid and all the google sites plus 4guysfromroll.com tell me I am doing it right but it is still not wanting to right to the table. Please let me know if there is any other code I need to be aware of to fix this issue.
Jul 7 '08 #1
3 1281
Still need very much some help with this.
Jul 8 '08 #2
Curtis Rutland
3,256 Expert 2GB
Well, for #1 you can get the domain user name with:
Expand|Select|Wrap|Line Numbers
  1. Page.User.Identity.Name
You might have to do some Active Directory work after that to get the email address, as this is just a string.

For #3, if you are using .NET 3.5, you can use a GridView. I think that it is easier to use than a DataGrid. Also, you might have to .DataBind() to make your data appear in the grid.

HTH
Jul 8 '08 #3
Thank you for the guidance I am completing some of the harder stuff I couldn't get done with the data grid right now. As for the environment coding it's going to take some AD digging and know-how. Does anyone have any web pages other than what I can google to suggest?
Jul 8 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Nick | last post by:
I am working a new application...well actually a series of applications for my company. They want internal users to be able to go to a site and everything regarding security is transparent,...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
8
by: Nils Magnus Englund | last post by:
Hello, I am having trouble using Integrated Windows Authentication between our intranet server and our database server, both of which are on our local domain. Windows authentication works for...
8
by: Keith H | last post by:
I'm looking for a way to force the user to re-authenticate with their Windows username/password/domain after clicking the submit button on an ASP.NET page. This is for an internal application. ...
0
by: CESAR DE LA TORRE [MVP] | last post by:
I am using WSE 3.0 with Visual Studio 2005, specifically I'm using Kerberos authentication and passing Kerberos ticket from Presentation Tier (VSTO.2005 client) to Server Tier through our Web...
0
by: Javier Martinez | last post by:
Hi It is possible to debug a asp.net application in Visual Studio 2005 without enabled Windows 2005 authentication? I can't enable the Windows authentication because I'm making my own...
7
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
3
by: Tom | last post by:
I'm building a web application using VS 2005. This application uses Windows authentication to 'authenticate'. However, when I test it (debug) via the VS 2005 built-in test server, it doesn't work....
2
by: DaBrain | last post by:
I am no DBA, but this is my task. I have an SQL Server 2000 Database that has an "SQL Account" that has execute permission on all Stored procedures. it is what was used by the company. This...
4
by: Preben Zacho | last post by:
Hi there The scenario I got is this: I have created a Windows application in VS and I want to deploy it to another machine running Windows Vista. Since I have no control over this other machine,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.