but when user hits a refresh button time is starting from first.
Is there any way to copy timeAlloted value when page is unloaded . or to use any session variable to store the value before unload and retrive after reloading the page.
** i have used question paper in iframe and timer display in parent page. when time finishes it should fire a submit_click which is hidden in question page(inside iframe).
Be aware that whatever you do, unless you store the time you started on the server, the user will be able to cheat it. And if you store it on the server, you can use that on postback to refresh the time remaining.
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
After logging out of my web application I do not want the user to be able to get back into it simply by clicking the browser Back button.
I am using ultrawebgrid in my pages. I am specifying the EditorControl by setting EditorControlID in the InitializeLayout event of the grid. This works fine if I don't have paging or if I am not rebinding the grid. When I enable the paging, the EditorControl works fine in the first page. But when we move to the next page, the EditorControl get's lost. The same is the case when I rebind the grid (as I did in paging). I am giving you the sample code below. Can anyone please help me in resolving this?
This is one scenario as I explained above...in case page index changed, I am calling the PopulateReportingPeriodTasksGrid() function again and that's when the EditorControl stops working. I've another page, where I am not using "paging", but doing the same as I am doing in the PopulateReportingPeriodTasksGrid procedure. Even in that case, the EditorControl will not work.
I think it is better to write this in Infragistics Forum as you will get more people regarding this.
I think the problem is because of not handling the Viewstate of the control properly. check yourself if you are missing something.
You may try removing the line :
from ReportingPeriodTasksGrid_PageIndexChanged to see what happens then.
As said in my initial post, it's not just with paging, whenever I had to rebind the grid, this problem occurs. Looks like the fact that there is an Editor Control is getting lost ( due to viewstate issue or some other problem). I am still trying to debug the same!
In fact, it looks like it's happening on Postback. Am I missing something in restoring the state or something like that? Can you please test the same in a sample application? I tried setting the postback properties to true for the grid but it didn't work!
I am not getting the point of creating a dynamic enum in ASP.NET.
AFAIK, ab.Save() will save the files to AppDomain.CurrentDomain.BaseDirectory. What value are you getting in AppDomain.CurrentDomain.BaseDirectory? If the path you get is outside the website area, ASP.NET can't write to there.
If this code is all you are trying to do, then you are wasting your time. Just create the Enum class for you enumerator.
On the other hand if this is a test for more complex process you should discuss this instead. For example, building enumerators from the database is a matter of Googling Emitting Enumerators using T4. Then learn how to use T4 to dynamically build your classes inline with your code.