Hi everyone,
I am currently developing an application that will allow multiple users to chat. and i was wondering that if i have different users and i want them to take turns in using the the chat
Can i have it that a variable that will be stored in my global.asa file or my database or xml file will let certain buttons not be used?
I.e if it is players 1 turns to talk. all player two will see is a text area to receive the message?
I am using asp.net and asp buttons( control)
Can this be done as i was told that each user receives a separate web page due to the fact that each http request is different.Hiding user control in asp.net?
i am not sure about the solution.
probably you can implement singleton, where you use only one instance of the object %26amp; user cannot instantiate any more object and only access particular instance of it.
this article would help,
http://dotnet.org.za/eduard/archive/2004鈥?/a>
in this singleton class, you can make those buttons on your user control enabled = false or visible =false.
or may be you can use a static property which you can use to set the visibility of button.
but i think it is better to implement singleton as you can use single object for every chat session.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment