What are different authentication types. How do you
retrieve user id in case of windows authentication?
Answer Posted / shilpa
to retrieve user id in case of windows authentication
if from a ASP.Net page following code
Dim username As String
username = User.Identity.Name
if it is from a class or business object following code
Dim User As System.Security.Principal.IPrincipal
User = System.Web.HttpContext.Current.User
Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
Explain how to get records from a database?
Which window allows viewing the resources of the servers, such as services, processes and the event log?
Which event occurs when a user drags an item in a treeview or listview control?
Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?
Explain the difference between listbox and combo box?
Where to use new keyword other than create instance?
how print barcode
Which property of the errorprovider control automatically sets to the form to which?
Name the property which is used to lock a textbox to enter data?
Explain how to split a column header in gridview using c#.net?
Explain how to net forms the windows?
Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.
What is form record?
Name the class to be inherited for creating a custom control.
What is the extension of a compiled help project file?