Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

getting application ID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith G Hicks - 06 Mar 2008 22:08 GMT
I am trying to figure out how to get the UserID from aspnet_Users in my
vb.net code after the user logs in. I have code that's pretty much working
except for one thing. I need the value of the ApplicationID. I tried
HostingEnvironment.ApplicationID but that returns something like this:

'/LM/w3svc/1/ROOT/Website1'"

but I need the GUID that's in the ApplicationID column in the table
aspnet_Applications. Is there a way to get that without doing a SQL
statement in my VB code based on the application name?

Thanks,

Keith
Keith G Hicks - 06 Mar 2008 23:06 GMT
Never mind. I realized that was the wrong ApplicationID. I needed the
membership one. From what I have found out,the only way to get it is like
this:

SELECT ApplicationID FROM dbo.aspnet_Applications WHERE ApplicationName =
'/Website1'"

If there's an easier way, feel free to let me know.

Thanks,

Keith

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.