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
What is form and its uses?
Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.
Where to use new keyword other than create instance?
Explain how insert record in the database?
What are window based applications?
What is form and its types?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
How save rerecord in the database?
Name the template that is used to create a user-defined component.
What is a database form?
Explain how to get records from a database?
Suppose I have two combobox .. And I have some items in both combobox now I need to check the item in both combobox if same item is present in both combobox I need to display that item in message box?
which property is used to change to some value to access a identity column in datacontrols?
How do I change the console application in windows?
Explain how barcode create in the report?