.net-1.0

Can .NET intercept and change css files?

醉酒当歌 提交于 2019-12-19 05:16:21
问题 UPDATE 1: I have now setup IIS6 so .NET can handle calls to .css files. What do I have to do now to get it to change css files based on the referal url? So if the referal url is http://intranet/ , it should continue calling the old style sheets. If the referal url is http://intranetv2/ , it should call the new style sheet. ORIGINAL QUESTION: The background: I have 2 search engines. 1 is old and the other is brand new (development stage). Search engine 1 is on domain1.com and search engine 2

How can I see the SQL sent to the database after the parameters have replaced their placeholders?

99封情书 提交于 2019-12-12 16:18:20
问题 The first MessageBox.Show() below simply shows me the exact same thing as const string SQL_GET_VENDOR_ITEMS, which seems fine to me, but I'm getting, " There was an error parsing the query. [Token line number, Token line offset,, Token in error,,] " Is there a way to spy on the contents of the SQL after parameters have been added; it should then be something like: "SELECT ItemID, PackSize FROM VendorItems WHERE VendorID = 'TEST' AND VendorItemID = '852963' Here's the pertinent code: const

Crystal Reports ExportToDisk font size

大城市里の小女人 提交于 2019-12-12 04:23:20
问题 When using the ExportToDisk method of ReportDocument it shrinks all of the fonts to 0.5pt than they were specified in the report. I'm creating a word document so specified the line of code as such: myReport.ExportToDisk(CrystalDecisions.[Shared].ExportFormatType.WordForWindows, path) I've also experimented with creating a RTF instead (using ExportFormatType.RichText ) but to no avail. I seem to remember coming across a reason with a registry fix - but I've lost it now. Must warn you this is a