|
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.
|
|
|
|
|
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
|
|
|
|