I have developed a chat by xmlhttprequests. It supports one user at a time. I am using post requests. It works fine. Now, I want that all users of my site can chat with each other. So, when someone is talking with more than one user at a time, I need to handle those multiple requests. So, what should I do ...?
1. Should I go for multiple xmlhttprequest ? ( I think its not a good idea, as no. of users is uncertain, secondly it will be a havoc to the page)
2. Should I pass multiple arguments in post request for differenct chats(separtated by some sign ). ( But its not a good idea too, as no. of active chats at a time is not certain, secondly I have to pass whole arguments whether one is chatting with just a single person.
3. Should I pass an array ? If I can ... Can I pass an array in arguement. How to achieve this ? and how to retrive this in server page.
I'm developing chat application on asp.net mvc, in my app, user can create room and invite other join to chat, but don't need to save chat room information.So, I designed to save all chat message ,room information and user info in Session and clear it when owner close the room.I'm worry about stressing server when I save alot of data (include room info, user info, and message) in Session if there are up to 5000 rooms created and alot of messages transfered in that room.Is my solution good enough ? is it ok to save in Session ?
I had create an application to allow user to register new project.Manager will chat with user base on the project ID(chat room id = Project ID) and store this conversation to database.
Example: User A register project A, other user cannot join the chat room A.
how it works to be on the chat site Facebook.When I watched this chat via Firebug, so there they have made with retrieving messages over and over again in the loop.
I used setInterval ("function", time);They're just loading the chat for a change.So how does such a professional ajax chat?
l'd like to create facebook like chat application in asp.net. This is real situation and I cant implement any workaround....since there would be large no. of users using the application.I need to implement 1-1 chat functionality where user can chat with multiple users by opening multiple chat windows much similar to facebook.
I want to realize the following with AJAX and .NET, but I don't know the best way to do it.Person A comes to the website, clicks a button 'I want to chat'. Then Person B comes and he should see a list where he can choose 'chat with A'.I have two questions:- What is the best way to address B's message to A? After B has sent his message to the server, how does the message get to A?- Is it possible to invoke a "update-chat" function for A when a message for him arrives? (Of course, A's browser could ask the server 'do you have a message for me?' every second, but this seems not a good solution.
as all we know that we can create very simple chat using ajax timer & web service , it runs well for few users .
i want to leaverage same idea for site where 5000+ users will be there in chat room , messages are stored in queue hold in memory * dispatched as user request that is through java script timers calling page method or service ,
how well it will perform ? i know GTalk implements XMPP protocol(jabber) for the web chat seems it will be difficult to got XMPP way ?
I'd Like to be able to have my web service accept multiple POST parameters, some of which will be XML. Is this possible? The code below will generate a server error:
I have 2 forms on one page. 1 search form which only contains a text field and a submit button and 1 registration form which has a few required fields. The search form need to post data to search.aspx.
I am currently Developing application in MVC2 I want to used mutiple form tags(<form>) in My application. In My View I have Created a table which has Delete option which i am doing through Post for Individual Delete so i have Create form tag for each button. as mention By Stephen Walther [URL] i also want user to give option to delete mutiple records so i am providing them with checkboxes.This form should have all the values of checkboxes and all. so form gets render Like this in browser
I don't know it's even possible but I try to achieve to post data from one page to another using the second form.The problem is I need a form tag for the user interface containing callback panels etc. I want to put a second form with some hidden-field:
I got a form with 2 listboxes , the listboxes pass data to each other using jQuery , and i want the data on the 2nd listboxI will upload all the code including the javascript just in case , altough , if it is something totally basic you dont need to look on it because it does works , I am showing all the code just in case
Also, I want to get it using ViewDataModel , I tried getting it with string and didnt succes , nighter tried to find it in FormColletion and it wasnt even existing in the count
I know how to do this with 1 declare statement, but for this there are multiple one's. This example sql statement has 2, however my actual one will have 29.
I am a seasoned desktop developer but I am new to MVC, EF and web development in general. I have been following the MVC Music Store tutorial but using my own database and project instead of the one from the tutorial.
My project is a web front end to a configuration database that lets us implement new Markets (a.k.a. Customers) for our IVR. For the View that allows the user to modify an existing Market I use a ViewModel class that has two properties. One property (clientData) is an EntityObject populated from a single row of the Client_Data table. The other property (callflowSeq) is a List of EntityObjects populated from about 40 rows of the Callflow_Sequence table.
The "Get" Edit method of the MarketsEditViewModel displays the Edit View fine but when I modify the data only the Client_Data table gets updated.
Here is my ViewModel:
[Code]....
Here are the Edit methods from my Controller:
[Code]....
Here is my View:
[Code]....
It seems that I can't use UpdateModel() to update the Callflow_Sequence table but I can't figure out how to do it manually.
Im really new to ASP.net. I am hoping to work with one TextBox, one Sumbit button and an unlimited amount of Labels....
I am wanting to input information into a TextBox then click a submit button and post to Label1, then empty the Textbox ready for further information.
The further information will then be added to Label2 after clicking the same submit button for the second time, then repeat this process for Label3, Label4 etc etc
I have a parent View that uses a few partial views. Each partial view has its own custom model. The parent View is a model containing each of the partial view's model. In other words this parent View model is NOT flat.
How do i get POST data to bind with the parent's model object? Do i have to write a custom model binder?
Update I'm not binding to a collection of objects of the same type (ie: a collection of uploaded files). I'm binding to object that contains multiple of objects. For example:
If I have the case where one button is set when the page is displayed and the user changes to the other value, BOTH are coming back as TRUE. How can I just get the value selected by the user?
i have an app to post on friends wall but i want it to prompt to choose from friends like adding friends by checkbox so that the messsage can be sent to all i selected simultaneously.
I have an asp.net application in which I have a parent form and in that on load I am adding sub forms dynamically having a submit image button..
When I am clicking the button of one form then I am able to read the hidden variables using request under parent form .But on clicking the second button the hidden variables of parent form are having null value although i have assign the value to them using context variables.
how can i handle mulitple form action for same page