|
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
|
|
|
|
|
I try to use Response.IsClientConneted, Session_OnEnd, But seemed it did not work.
does anyone has such experience to solve this problem?
|
|
|
|
|
I just created a test ASP page and Simply put in:
<code>
<%
Response.Write(Response.IsClientConnected)
%>
</code>
Which returned True, which it should, how are you trying to use it?
Nick Parker
|
|
|
|
|
I'm trying to make dynamic pages containing database data. My system is a WindowsXP. The database is a MS ACCESS 97 database and it's located on another computer in the network. I made the DSN targeting that database on the network. I cannot move the database on the server cause it's vital that it stays there. I exported the asp file on the database computer and I copied it on the xp server. When I load the asp file I get this error:
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
Why? Can anyone help me with the procedures for connecting to an extern database ?
Thank you !
|
|
|
|
|
BlackRider wrote:
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
Why? Can anyone help me with the procedures for connecting to an extern database ?
You need to make sure you are creating a SYSTEM DSN when using ASP, not a USER DSN. Also, your ConnectionString may be referencing either the application path or local path to the DSN and you need to make sure you are targeting the network path instead.
HTH
Nick Parker
|
|
|
|
|
I still do not know where should I put this code. In the head of each file or in global.asa file?
Did anyone ever use it?
|
|
|
|
|
Could you explain a little more about what you are trying to do?
Nick Parker
|
|
|
|
|
I want to write a chat room. When I control the people in a chat room, I should know who will be out of this room. So If one client close its window, it will be out. I want the server to detect it and delete it from a table in database. From book I knew that it can be detected by using response.IsClientConnecte. But I put it in the head of the file and found it did not work. I also want to use Session_OnEnd to control it, but it din't work too.
That is my problem.
|
|
|
|