|
Thank you all for quick response,
The website is already in production. The user name gets displayed on all the pages once the login successful.
Suppose user A logged in and USER A is getting displayed on the next page.
In another browser window user B logged in and USER B is getting displayed on the next page.
Now, if you go th browser A, and do refresh the page, then USER B will be displayed on the page. this is the issue currently we have.
How to overcome this? Please give me ideas
Thank you,
Raheem MA
|
|
|
|
|
shah_tech wrote: How to overcome this? Please give me ideas
You have been given two ideas. Obviously, if you've released the product, you are going to have to change it to overcome this bug.
Christian Graus
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.
|
|
|
|
|
Hi Raheem,
You can try like this....
If you are validating user login against database then add one more field 'status' in ur table and update this field for successful login.
In this way if another user tries to login then you can check status field , if it is not updated allow login otherwise inform that this login is already in use.,
And dont forget to update status field when user logs out.
Note: you need to explicitly update status field in session_end event and in page unload events.
Hope this helps you.
Happy coding
Regards
Surender M
|
|
|
|
|
333soori wrote: Note: you need to explicitly update status field in session_end event and in page unload events.
EVen this cannot be trusted, he needs to add a timeout, and store the time of each page request, so he can tell that enough time has passed to regard the user as logged out
Christian Graus
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.
|
|
|
|
|
I want to add progress bar in my asp.net page. how i can do this
modified on Wednesday, August 5, 2009 5:24 AM
|
|
|
|
|
|
Can i fill the gridview from different tables in same database? How can i do that? Can i use join statement?
|
|
|
|
|
Yes,you can.Customize your data retrieval query as per your requirements and fill it to a entity list that u have created.
|
|
|
|
|
yes you can do this. when you add database source for Gridview just select
1. Specify custom SQL statement or store procedure
2. on the next step you found a query builder button just click it and add table as as you want
in this way you can add many table according to your requirement
|
|
|
|
|
I tried that. But it will join the table, but it will use join statement which will do using Cross join. Using this it will repeat the values for corresponding other values. It will not solve my problem.
|
|
|
|
|
write me your complete problem. what r your tables to whom you want to access in gridview.
thanks
|
|
|
|
|
We need to build a component builder from which we can drag and drop the components like button, textbox, label, listbox at runtime in .net. Kindly help . TIA
|
|
|
|
|
Don't double post ? You need for clients to be able to drag and drop UI and create pages ? You have a ton of work in front of you then. I'd expect you'd want an activeX control to do this, not to try to do it in JS.
Christian Graus
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.
|
|
|
|
|
We need to build a component builder from which we can drag and drop the components like button, textbox, label, listbox at runtime in .net
|
|
|
|
|
Could anyone give us some inputs on how to dynamically generate an aspx page and its CS page using XML and XSTL .TIA
|
|
|
|
|
I am not sure that you can, because once you do, how do you pass it to the ASP.NET engine to generate a page lifecycle ?
Christian Graus
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.
|
|
|
|
|
I m not able to call javascript function ValidateYear with year as parameter, can some1 help reg this issue, i hv written following code in aspx code behind..
Dim sbScript As New System.Text.StringBuilder
sbScript.Append("ValidateYear(")
sbScript.Append(cboYearAtCurrentAddressCoApplicantContact.Text)
sbScript.Append(");")
'Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "key",sbScript.ToString, False)
ClientScript.RegisterClientScriptBlock(Page.GetType, "key", sbScript.ToString, False)
Neither exception is thrown nor calling javascript.Plz Help
|
|
|
|
|
Well, it seems you don't put quotes around the text you're emitting. Beyond that, why you'd do a postback and then run a js function, what it does, and what you mean by 'problem' ( that is, what happens, and what you expect to happen ) are mysteries, so it's impossible to offer more help.
Christian Graus
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.
|
|
|
|
|
Do you have AJAX ScriptManager in your page ?
|
|
|
|
|
Why would he have to ? Nothing in his post has anything to do with AJAX.
Christian Graus
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.
|
|
|
|
|
No, I have just asked because if there is ScriptManager on his page, then he can try with ScriptManager.RegisterStartupScript() .
|
|
|
|
|
His basic issue is probably that he's not putting quotes around a constant string. If the code he's using is not working, then ScriptManager is not going to help, it does the same thing.
Christian Graus
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.
|
|
|
|
|
Yes i do have ScriptManager on my page
|
|
|
|
|
If you are trying to validate a textbox its better to add attributes to the textbox instead of using script block.Just like,
txtName.attributes.Add("onchange","return FunctionName('"+ parameter +"')");
|
|
|
|
|
You are perfectly right but i have to explicitly call that function from one of my checkbox event based on some condition.
The scenario is as below :
I am assigning text of dropdown1 to another dropdown2 , i have written javascript function for its onchange event and based on dropdown2 text i am hiding section below dropdown2 using javascript, the thing is that when i m changing value from dropdown2 then it is working fine but when i m trying to assign value of dropdown1 to dropdown2 using .Text property the section below is not getting hide because onchange event is not getting fired.
|
|
|
|