|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ImpersonateI have a windowsform app that I wrote in VB.net. I am using SQL2005 reporting services on 2003 server. In my vb.net code I place the URL of the report in a link that does a Process.Start("http:\\www.myserver.com\reports...."). The windows 2k3 server has (needs) Windows Authen so it prompts me to login in with a standard windows logon box. I enter the username and password of a common user on the server and the web page shows up. I would like to pass the credentials through to the server from the vb app without prompting them every time they try to access the server. How can I do this? I tried to use impersonation code using WNetAddConnection2 passing "http:\www.myserver.com...",username,password,"reports" with the NETRESOURCE struc but I get error network name not found. I cant find the right parameter combo. How can I pass credentials to the web server, instead of manually entering them every time. I have already authenticated the user when he first runs the app. The server is an internet server. I thought about using SENDKEYS but that seems cheesy... Thanks, BUC <Buc> schrieb:
> I have a windowsform app that I wrote in VB.net. I am using SQL2005 Replace "\\" with "//" and "\" with "/".> reporting services on 2003 server. In my vb.net code I place the URL of > the report in a link that does a > Process.Start("http:\\www.myserver.com\reports...."). Dito. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Reading .csv files containing the "-" character
Inherent form controls resize Center in Child Inability to trap form.show event Data Access Application Block scope - integer No accessible overloaded 'DataRowCollection.Add' can be called without a narrowing conversion. file upload download on aspx problem Add new items to combobox after the datasource is set DrawString with Hotkey Character Underlined |
|||||||||||||||||||||||