|
candan wrote:
If I want use ASP.NET to develop a real time chat room ?
How should I do ? Is there any samples for me ? Thx.
You can't litterally do a *real-time* chat room in ASP.NET. This is not allowed alone atleast. You could develop some type of ActiveX control, but you would essentially need to be able to process data back and forth transparently to the user. The website Wininsider has one of the newest forums I have seen that can suppose this *type* of idea.
Nick Parker
|
|
|
|
|
Yes, I agree with you. In ASP, you can only refresh in 1 second. If you use VC++ to build a Activex Control, you can do it with WM_TIMER Message. It will make minmum refresh with mili-second level. So it seems as real-time.
It is not difficult I think.
|
|
|
|
|
I see the website Wininsider. It is amazing. How could it use asp and refresh can do this ?
|
|
|
|
|
Hi, I just see the Wininsider. I think it is not a real-time chat room. I ever see a kind of ICQ, when you just input some char into the txtbox, another one can see it immidiately.
For Wininsider, It will show the message after you send your message. I think it use this method.
When you push send button, it will submit message to the file to display the message and refresh it immidiately. That make your message show up at once.
For the chat room i built, I did not use this method. I just let display file refresh it automatically for each 2 second. Because I also add many function into it. If you use same method as Wininsider, it will make server very busy.
That is what i think.
|
|
|
|
|
candan wrote:
I see the website Wininsider. It is amazing. How could it use asp and refresh can do this ?
Basically I think he just using a lot of stylesheets and he is storing the data in a database. Reason being is that I posting a *message* in his chat room about a month ago and when I checked the site last night my message was still there. You could do something very similar as well very easily. Is there something specific that you don't understand?
Nick Parker
|
|
|
|
|
I have some text in ASP.NET application.I want to show them with right alignment in a control like label control.But I can't find any property for text alignment in it.Which control should I use to have this feature?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Use a Panel control and set the HorizontalAlign property
cheers,
Chris Maunder
|
|
|
|
|
Thanks Chris.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Greetings,
I am new to javascript, and I am trying to get this code snipet to work that I found in a book.
It complains in my web browser (IE 6.0) that a "Object is Required" on the switch statement.
Any ideas as to what I am doing wrong?
CODE:
====
function ParseXML()
{
documentXML = document.all("c:\\Test.xml").XMLDocument;
divResults.innerHTML = getChildren(documentXML, " ");
}
function getChildren(nodeXML, indent)
{
var typeXML;
switch (nodeXML.nodeType) // get error "Object Required" on this line.
{
....
....
// Rest of code
Thanks in advance for any advice.
|
|
|
|
|
I figured out what I was doing wrong, you can't have a file path, but you must use an id instead.
Before script block begins add this:
[XML ID = "TESTxml" SRC = "C:\\Test.xml"][/XML]
NOTE: "[" = Is really the "<",ect. I had to change because otherwise the post wouldn't show up.
Now in the actual script change to:
function ParseXML()
{
documentXML = document.all("TESTxml").XMLDocument;
divResults.innerHTML = getChildren(documentXML, " ");
}
That's it!
I hope this helps someone in the future.
|
|
|
|
|
Hey, in the Microsoft.Web.UI.WebControls.TreeView Control (which i had to d/l from MSDN), i'm having trouble with the SelectedIndexChanged event which is supposed to go off when a new node is selected. Here's what i've read so far:
Dynamically added nodes in Page_Load() won't have events, so just to be safe i create all nodes in the Page_Init().
Any advice other than this will be helpful!
~Timothy T. Rymer
|
|
|
|
|
Is the AutoPostBack on the control set to True?
|
|
|
|
|
I believe so, but I've had to put that on the backburner for now, i'll be sure to reply here if I start working on it again (which should be soon, i'm finishing up a more important project right now, so i'm sure i'll be stuck in asp.net land soon enough.)
~Timothy T. Rymer
http://tim.xpertz.com
http://www.digipen.edu
http://www.ttrx.com
|
|
|
|
|
am trying to set the focus to a particular text entry box on a web page using javascript ... works in a function but i need it to work after the page has loaded too ... i have a test page that works but on the one i want it to work on it doesn't!!!
put me out of my misery pulease!!
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
make sure you put the code which sets the focus, at the end of the page, so that the browser runs it after it has already parsed the control you want to affect.
|
|
|
|
|
...or you can use the <script language=javascript defer> so that the script will run after the page is loaded, or fire the script on the onreadystatechange event
cheers,
Chris Maunder
|
|
|
|
|
aren't those two only for IE?
|
|
|
|
|
Andy Smith wrote:
aren't those two only for IE?
You mean there are other browsers besides IE?
cheers,
Chris Maunder
|
|
|
|
|
I went into IIS and set the directory security (IP address and domain name restrictions) to Denied Access and then added a group of computers using our ip and subnetmask. I also added my own ip as a single computer. When I did this I can no longer open up my project in .NET properly. It says Web Access Failed. Any suggestions?
Todd Smith
|
|
|
|
|
I figured it out. Apparently IIS is using inverse subnet masking? All the documentation seems to show the other way around. I had to use
IP Subnet Mask
24.24.32.0 0.0.0.255
instead of
IP Subnet Mask
24.24.32.0 255.255.255.0
which is what all the docs seem to use. Did they change this?
Todd Smith
|
|
|
|
|
I as the title suggests I am new to asp and asp.net programming, can anybody suggest a good starting point. I am talking really "Hello world" stuff. I hava good idea as to what I want to achieve with my first web application but really don't know where to start as there is so much stuff out there.
I appreciate your help.;)
Andy
|
|
|
|
|
|
I have a datagrid in an ASPNET App, and I need a column to have an image and be clickable.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Use a template column and insert you image, if all the images are the same that is. Otherwise you may have to handle the OnDataBind or OnItemCreate and insert the images as neccessary.
|
|
|
|
|
Thank you for your both answers.I checked this one and it was OK,now I have to test another one too.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|