|
you can use window.open to open a new window to show the information you entered
|
|
|
|
|
All of this will go on one page. First display the inputs in the way you will be formatting them. Then, write a form to submit the data. Loop through the request object (assuming ASP here) and write out all the form data in to hidden fields. Then add the submit button and close your form tag.
|
|
|
|
|
|
I want to realize the function for one-by-one chat room. So how to deal with message. If i use application variables, i should consider maybe there is too much one-by-one chat room open, which will need many application variables. It is not reasonable. IF I use database, it will increase the burden of database very heavily. If I use file, you should always open, read and write file, it also increase the burden of server. So is there any other possible and better method to deal with it?
|
|
|
|
|
|
Aside from the usage of an ActiveX control that would *stream* the data to all clients I think your best bet is to go with storing the data in a database. If you are concerned with the amount of data that exists within the database you can simply include a date stamp with each insert and then purge the database ever other day or so based on the date of the data.
HTH
Nick Parker
|
|
|
|
|
What I worry about is not amount of data exists in the database. What I worry about is that is two one-by-one windows opened, there will a large amount of accessing database take place
|
|
|
|
|
david fox wrote:
What I worry about is not amount of data exists in the database. What I worry about is that is two one-by-one windows opened, there will a large amount of accessing database take place
I guess I am not really clear as to your concerns, you don't have to use two windows, the data transfers shouldn't really be an issue unless your server has a slow connection.
Nick Parker
|
|
|
|
|
Sorry, here i did not describe it clearly. what I worry about is that when two users talk with each other, they will share a window and each one will connect with database to store and read data for each talk. So if their are many pairs exist and it will generate a large amount of conncetion and operation with database. That will produce a big problem.
|
|
|
|
|
david fox wrote:
Sorry, here i did not describe it clearly. what I worry about is that when two users talk with each other, they will share a window and each one will connect with database to store and read data for each talk. So if their are many pairs exist and it will generate a large amount of conncetion and operation with database. That will produce a big problem.
Constant activity to a database should not be an issue (my feelings), however you may wish to consider the other options if you feel it will really cause a problem. You could always just create a simple application that reproduces your ideas and post it as an article asking for some help.
Nick Parker
|
|
|
|
|
I'm writing some ASP pages that were put on a server.
But my problem is how to control the printer of client.
By example :
*Server is used for store staff's information in a company
*When users access to their personal information and they want to print it as a specific form.
*How to print at client, how to manipulate client printer ?.
Please help me !.
|
|
|
|
|
thutrinh wrote:
I'm writing some ASP pages that were put on a server.
But my problem is how to control the printer of client.
I am not sure what you are asking...
Do you want to control what on the page gets printed? If so use CSS to do this (if you don't know how, just ask.)
Or do you want to actually control the printer itself and the page settings? e.g. landscape, portrait, borders etc.? If so then from what I know you cannot, your JavaScript code (ASP can't do it because it is server side) is not allowed to fool around with that part of the browser. You could concievably write an ActiveX or JavaApplet which does it though (though of course that is not optimal either.)
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
|
|
|
|
|
As you know, my problem is how to print all as you want at client side using client printer (By example : By ASP you provide to client a web page with some information and on that web page you have a 'Print' command button. When user click on the 'Print' command button, you can manipulate the client printer to print all as you want). To do that we must write client-side code.
You said we can not, I think so but I expect that we can.
Thank you very much for you reply.
N.P.Trinh
VIETNAM
|
|
|
|
|
You can't change their print properties as far as I know. What I see a lot of sites do is add an option to display the page in a printer friendly fashion.
Notice how this page has a print link near the top that opens a new window with just the story content and none of the graphics http://slate.msn.com/?id=2069202[^]
Todd Smith
|
|
|
|
|
If I want to show other language other then english (such as chinese) in chat room, how can i do it.
|
|
|
|
|
Specify the document's default character set in the "content-type" meta tag...
<meta http-equiv="content-type" content="text/html;charset=gb2312">
Jeremy Falcon
Imputek
<nobr>"Life is too precious - don't waste it." - Norm Almond
"And remember, what some call cynical, others call experienced." - Christopher Duncan
|
|
|
|
|
|
I'm using a datagrid with the edit feature. I have an Update functions which gets called when the user clicks update. It looks something like this:
public void UpdateRow(Object objSource, DataGridCommandEventArgs objArgs)
{
}
I can query the objArgs to get the current values of the controls in the datagrid row. Is there a way to get the original values before the user made changes? I need these to identify the record which they're updating.
Todd Smith
|
|
|
|
|
I have a datagrid which displays some data which works OK. There are two things I am struggling with however.
1) One of the columns contains a path to an image and another contains a hyperlink. I want to display the image pointed to in the database as the actual column and have the image as a hyperlink to the address pointed at from the other column. How can I do this? I looked at Template Columns but I couldn't see how this would work.
2) I want to rotate the grid 90 degrees so I get the columns on the y axis and the data on the x axis. How is this done?
Cheers
James
|
|
|
|
|
Hi James,
Try this code to address problem 1.
<ItemTemplate>
<a href="<%# DataBinder.Eval(Container.DataItem, "hyperlink") %>"><img src="<%# DataBinder.Eval(Container.DataItem,"image_file") %>" border="0" /></a>
</ItemTemplate>
Enrico
|
|
|
|
|
I am running a local server for my Web application and stepping through the debugger is impossibly slow (several minutes in fact). The system resources are clear and the application has been working fine until an abrupt and sudden slow down. Database connections are also clear and closed explicitly.
Mark
|
|
|
|
|
I've had this very same problem only my web server was on another machine. I gave up after a while and just installed iis on my dev machine. This doesn't help you much though...
Anyone got an idea?
Pete
|
|
|
|
|
well apart from travelling to nyc and taking an axe to the server is there any way to make iis NOT cache certain pages (asp pages to be exact)? it refreshes the htm files immediately but the asp doesnt ever seem to change and its really p***ing me off
help or axes + cheap plane tickets appreciated
"... 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
|
|
|
|
|
|
Jeremy hit the nail on the head with the links to MSDN on cache control Lauren, however I checked prices for you from South Africa (Cape Town area) to New York City (LaGuardia airport) round trip for a week and the cheapest I could come up with is $2,957.88 (airfare alone). I think it's within your financially best interests to read the MSDN articles.
Nick Parker
|
|
|
|