|
I have never used that, however you may consider using a cookie instead. From how I see things( which is sometimes abit skewed ) Response.IsClientConnected would do little value becuase in order for you to use the Response object the *connected* client will essentially need to postback to the server; this is a server-side object.
HTH
Nick Parker
|
|
|
|
|
What I worry about is that how to let server to know the client is off
I do not think cookie can do it.
|
|
|
|
|
You could use a timer in javascript, having the client postback to the server once the specified time is up and then delete the user then, there are a lot of possiblities.
Nick Parker
|
|
|
|
|
I want to publish the chat site on website(with ASP and SQL Server), is there anyone tell me where i can find a supplier? the cheaper, the better, because i still very poor.
thanks
|
|
|
|
|
|
Thanks for your information
|
|
|
|
|
I want to use a global Variable in my ASPNET Pages, Does defining variable in Global.aspx as a public member ,help ? If so how ?
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
|
|
|
|
|
I haven't used ASP.NET yet, but I'm assuming it'll be similar to ASP...
Yes, use the Global.aspx file (in ASP it's global.asa), but make sure you have your site as a registered IIS application or else it won't work. It will be called when the application is started the first time.
Use either the Application or Session object to store a variable and value. Use the Application object if you each user to share the same variable. Use the Session object if you want each user connected to the app to be able to have their own copy of the variable. These objects also have event procedures to fine-tune what you can do.
For instance, let's say I wanted to store a username for each connected user. My global file could have something like...
<script language="JScript" runat="Server">
function Session_OnStart()
{
Session("user") = String(GetYourValueSomehow());
}
</script> Then, I could refer to it in any ASP page within the application by using...
Session("user") Also, just as an FYI, the Session object relies on cookies. So, do be somewhat weary when using it. The Application ojbect is completely server-side, so no worries there.
Jeremy Falcon
Imputek
<nobr>"Life is too precious - don't waste it." - Norm Almond
|
|
|
|
|
Getting value from stuff you don't own is a compelling
idea. Just think, someone else has created something
that has value, and has made it available to you. You
can now leverage its value in ways that makes all
parties richer. That's the promise of web services.
You need to know about web services. The advent of
standards-based web services marks a new era of
system development. First mainframe, then client-server,
the Web, now web services makes it possible to leverage
every legacy system of the past and do so much more
with your information assets.
Architag Press, a division of Architag International
Corporation, announces the publication of Web Services
Implementation Guide, Volume 1: Getting Started, by
Brian E. Travis and Mae Ozkan.
Sample chapters of the book is available at
http://www.architag.com/press/wsig.
This book will show you what a web service is, and
how you can align your internal systems and external
trading partner interactions to take advantage of this
new concept in system integration.
You will learn about the "Three Steps to Web Services":
* Automate internal systems
* Determine integration points
* Expose integration points as web services
This book is for systems architects, developers,
and I.T. decision makers.
Highlights in this book:
* Written in a light, entertaining style.
* Emphasis on architectural design for web services.
* A tutorial on the state of web services standards.
* Plenty of real-life examples of web service use.
* Tutorials on the key technologies: XML, SOAP,
WSDL and UDDI.
* Code samples of key XML-based web services
technologies and extensions.
* Companion Web site with all code samples and
late-breaking information.
----
Download sample chapters of Web Services Implementation
Guide at http://www.architag.com/press/wsig/.
Stanford Powers, Publisher Architag International Corp
Phone: 866-898-0001 Outside US: +1-303-426-3126
Email: spowers@architag.com Fax: 720-294-1396
|
|
|
|
|
If I want use ASP.NET to develop a real time chat room ?
How should I do ? Is there any samples for me ? Thx.
|
|
|
|
|
I am using asp to develop chat room.
|
|
|
|
|
How do you do it in RealTime Chat ? Can you tell me ?
|
|
|
|
|
what do the realtime mean here? i am some confused about it? can you give me some explation about it? I hope you do not mean the voice,if it is that, i also don't know how to do it and want to learn about it
|
|
|
|
|
No. I do not mean the voice. I just want to do a chat room like one in bbs. I want do it in ASP. What I type now the other will see it in immediately.
|
|
|
|
|
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
|
|
|
|