Hi guys, I have a tiny misunderstanding in implementing my session timeout.
I have a asp.net solution with three pages, Default.aspx, Logout.aspx, and Home.aspx, ofcourse all these share the same web.config file.
In my web.config I have:
<!--this is my logout implementation-->
<forms loginUrl ="Default.aspx" timeout ="1" requireSSL="false" path="/" defaultUrl="Default.aspx"
<deny users="?" />
<allow users ="?"/>
but only the Default.aspx is timing out and refreshes. But I want that to happen in the Home.aspx, when no activity is received it must redirect to the Default.aspx.
I know I am messing up somewhere, can anybody help me please???
I have a grid view to which i am binding data from the employees table.
I am also displaying first name and last name in grid view. now i want the first name and last name under one main sub header name. Below is the example.
EmployeeId ContractNo ContactNo EmployeeName Summary
E001 Co123456 900878634 Xyz Abc PQR
I the above example i want First and Last below the EmployeeName as a subheader, means EmployeeName acts as a main header for First and last.
I also need to provide sorting on EmployeeName.
Can any one suggest me a solution by some code example or some useful link regarding this in order to provide subheader inside one main header in the same format.
I have a web page that uses the AJAX framework. Basically you choose something in a dropdown and click a button and the page is partially refreshed to show a gridview(which is inside an UpdatePanel with the trigger as the button). You choose a different option and click Go, the gridview is updated accordingly.
Now, I want to use sqlcachedependency in codebehind (since I'm not using SQLDatasource and doing it all programmatically). In my code, I have the code to populate the dropdown in Page_Load and in the Gridview_Load, I create my SQLCommand object. I found the following code and seems pretty simple:
SqlCacheDependency dependency = new SqlCacheDependency(comm);
int expire = 3;
DateTime exp = DateTime.Now.AddMinutes(expire);
But the question is, where do I put the code to ensure the DB isn't queried and data is actually retrieved from Cache??? Should I put it before or after my SQLDataAdapter.Fill in Gridview_Load? Or is it somewhere else?
I want to check in my application the expiration of session in order to demand the user to reconnect.. or just lock the current page.
I'm using the code in example Prevent Session Timeout in ASP.NET[^] wich work great.
At the end of session I show an Ajax modalPopup asking for reconection..but.... from my pages I can open popup windows to continue edit data.
Then, the problem is:
I'm not sure if you thought about this but, can't you just reset counter on the parent page before you open the pop-up? You are anyway going to open the pop-up using java script or by using target property on a link.
Yes, sure, I can do it, but I'm looking for some other solution to keep independient popup windows from parent.
I have a lot of popup windows to implement it.. so I would like to do it once in the parent.
My problem is the restrictions on the folder will not allow me to get into that folder when deployed to the IIS server, although it works fine on my development machine. I cant help but think that the Windows Credentials it is using are not on the local machine, but on the server, so once deployed to the server, I have no chance.
Am I doing something wrong? or is this just the way the windows authentication works in ASP.NET Apps?
Is there something else I need to set up?
Also, how would I pluck the Windows Username of the end user programatically?
I have a doubt.
I have both .net 1.X and 2.0 applications and both the versions of VS were installed in my machine.
If i migrate my vs 2003 app to vs2005,and before that i have taken backup of that vs2003 app.
Here i am doubting that if i convert it into 2005,can i open that backup application again in 2003??
Hope u got my doubt and please respond to my question.
Thanks in advance.
Last Visit: 31-Dec-99 19:00 Last Update: 5-Dec-21 10:23