p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 (http://p2p.wrox.com/forumdisplay.php?f=252)
-   -   Wrox Chat (http://p2p.wrox.com/showthread.php?t=55675)

danielson March 21st, 2007 11:02 AM

Wrox Chat
 
Hi Imar,

I have tested the wrox chat, but I don't see the text I send in the window text area. Also, I don't see my self or other people who are chatting at the same time. Is it supposed to work like this?

Thanks

Danny Hidayat

Imar March 21st, 2007 11:08 AM

Let me try this once again. Do you have the book? Did you read page 78 and onwards?

Imar

danielson March 21st, 2007 12:23 PM

Hi Imar,

I read through and get to page 92 which said that ChatWindow.aspx is not used to accept user chatted messages.

My fault, I was expecting to get instant result and did not read through it. I thought I would get a chat room that users can chat back and forth.

I am not a .NET programmer but I wanted to get an instant results. Thanks for all your time. Let me know if there is any source I can used to create my own chat room.

Danny Hidayat

Imar March 21st, 2007 12:44 PM

You may have misread that part. The page uses iframes to separate user input and general chat messages. It says that ChatWindow.aspx is not used for user input; it doesn't say the application can't accept user input or display and accept input at the same time.

I just opened the application in two different browsers, went to /ChatServer/ContentFiles/, clicked a chat room, chose a name and then I was able to chat, with instant results, between the two windows. Whatever I entered in FireFox, would show up a second later in IE in vice versa. So, it works as you'd expect by design, but maybe something went wrong in your setup...

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

danielson March 21st, 2007 01:51 PM

Hi Imar,

Thanks, I will reinstall it and hope it would work.

Danny Hidayat

Imar March 21st, 2007 02:28 PM

No need to reinstall. Just choose File | Open web site in Visual Studio. Then hit F5 to browse to the site, and click he ContentFiles folder. From there, the app looks as described in the first few pages of the chapter.

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

danielson March 27th, 2007 10:47 AM

Hi Imar,

Thanks for all your help. The book is great! The chat room works great too.

I need to add the function for people to create an account in oder to join the chat. The person also has to belong to an existing membership table that contain his id, first name, and last name. Once his ID and last name is varified against that table, then he can create an account with username and password. He then can sign in to the chat room using his username and password. Once he is in the chat room, it has to show his first and last name instead of his email address. So the chatters know who are chatting by their first name and last name. Do you know any resources that I can go to?

Thanks a bunch!

Danny Hidayat

Imar March 27th, 2007 11:54 AM

Take a look at the Appointment Booking chapter that shows the general ID of signing up and logging in on an ASP.NET 2 web site.

Then go here: http://weblogs.asp.net/scottgu/archi...18/427754.aspx to see how to tweak the CreateUserWizard to include additional details like first name and last name.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.


All times are GMT -4. The time now is 04:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.