Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:669035
More Search Options
RSS Available
Matching Posts
Difference Between OnItemCreated & OnItemDataBound
Can someone please tell me the differences between the OnItemCreated & OnItemDataBound events?
Posted to
Data Presentation Controls
(Forum)
by
RN5A
on 1/19/2009
Re: Response.Output.Write
[quote user="vik20000in"] Check this example for outputting the current date Response.Output.Write("vikram is at {1:d}", DateTime.Now); [/quote] The above generates the error: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. When I changed it to Response.Output.Write("vikram is at {0:d}", DateTime.Now); it worked. [quote] Response.Output.Write("{0} is {1:d}", "Current Date Time ", DateTime.Now);
Posted to
Getting Started
(Forum)
by
RN5A
on 1/19/2009
Response.Output.Write
Consider the following code: Response.Output.Write("{0:d}", "Current Date Time: ", DateTime.Now) The above line doesn't display the current date & time. Why? Also what does {0:d} do?
Posted to
Getting Started
(Forum)
by
RN5A
on 1/19/2009
Re: Session Problems
I have already set the session timeout to 30 minutes in the web.config file (like you have shown) but is that really the problem? The reason I am asking this is because when the session expires, the value of Session("Admin") should be empty.....why would it get reset to 0?
Posted to
State Management
(Forum)
by
RN5A
on 12/26/2008
Session Problems
I have a login ASPX page with 2 textboxes - one for username & the other for password - & a checkbox whose ID is chkAdmin. The checkbox is for logging as admin. The SQL Server 2005 DB table that stores all the user details has a column named IsAdmin whose datatype is bit. If a record under this column is True, the user is admin else the user is non-admin. This is the stored procedure to validate users: CREATE PROCEDURE [dbo].[LoginUser] @UserName varchar(50), @Password varchar(50) AS DECLARE
Posted to
State Management
(Forum)
by
RN5A
on 12/26/2008
Re: FormsAuthentication
[quote]1. SetAuthCookie creates the cookie on the client's machine, GetAuthCookie retrieves the cookie so you can read its contents.[/quote]I came across a book which says that GetAuthCookie creates an HttpCookie object citing the following example: Dim hc As HttpCookie hc = FormsAuthentication.GetAuthCookie(txtUserName.Text, True) hc.Name = "UserName" hc.Value = txtUserName.Value hc.Expires = DateTime.Now.AddMonths(2) Response.Cookies.Add(hc) but you have said that GetAuthCookie retrieves
Posted to
Security
(Forum)
by
RN5A
on 12/22/2008
Re: FormsAuthentication
Suppose i have the following code: FormsAuthentication.SetAuthCookie(txtUserName.Text, True) Does the above line mean that the cookie will store the username? How do I retrieve this username using GetAuthCookie?
Posted to
Security
(Forum)
by
RN5A
on 12/22/2008
Re: User Authentication & Login
Is the code in the Page_Load sub (which I have shown in post #1) really necessary? Under what circumstances is that code snippet required?
Posted to
Security
(Forum)
by
RN5A
on 12/22/2008
FormsAuthentication
I have a few questions regarding the FormsAuthentication object. 1. What's the difference between the SetAuthCookie & GetAuthCookie methods of the FormsAuthentication object? 2. How do you create a cookie that stores itself in the Temporary Internet Files folder on the user's computer? 3. What exactly is FormsAuthenticationTicket? How is it different from the FormsAuthentication cookie?
Posted to
Security
(Forum)
by
RN5A
on 12/20/2008
User Authentication & Login
This is how I am authenticating a user: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Dim strUserName As String Dim ckUserName As HttpCookie Dim faTicket As FormsAuthenticationTicket If (Request.Cookies("TSCookie") IsNot Nothing) Then ckUserName = Request.Cookies("TSCookie") faTicket = FormsAuthentication.Decrypt(ckUserName.Value) strUserName = faTicket.Name End If End Sub Sub LoginUser(ByVal obj As Object, ByVal ea As EventArgs
Posted to
Security
(Forum)
by
RN5A
on 12/20/2008
Page 1 of 41 (405 items) 1
2
3
4
5
Next >
...
Last »
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online