blah blah blah is here! blah blah » Close

0
votes
1 answers

How static link C# library to my C# program? OR how set reference to link statically instead of dynamically? Please tell me .Net supports static libraries and that it's easy!

Background: I have two C# projects, "A" and "L." L is a library that the A project references. Everything is fine except when I distribute A I have to include the L.dll file, too. I was hoping I could go my A project ...

0
votes
1 answers

Best Session-Oriented Web Client Class/Component/Source Code?

I need a session-oriented web class (hopefully free) that automatically manages sessions (cookie based) from URL to URL, from a console application (not a Windows forms app). WebClient and HttpWebRequest are the only standard library class ...

0
votes
1 answers

Co-worker Squabble: He thinks I'm crazy for inserting 22K strings into a Hashtable; Crazy or Not?

I inserted 22K simple strings into a Hashtable like this: ... h.Add("some simple string", 4450); h.Add("another simple string", 4451); ... which ended up killing IIS on two production web servers. I guess there is ...

0
votes
1 answers

Off-Topic: Can you use a .Net Fortran to Build a Forms App?

There are many languages that compile down to the CLR. Can you use most of these languages to build standard applications, like a standard form-oriented application? Even .Net Fortran? Even .Net Lisp? That's the magic of .Net, right ...

0
votes
1 answers

Calling all TableAdapter Experts! How data bind single record on form?

Background: I have a form that is data-bound to a table with thousands of records. I don't want to bind all records in the table to the form because it takes a minute to pull up the first record. How do I SELECT a single record into a Dat ...

0
votes
1 answers

Data-Bound Form for ZILLIONS of Rows

I have a simple order form bound to my Orders table. The only problem is that I now have 20K orders and it takes--no joke--45 seconds to load the form to look at _any_ order. Is there any entry point to change the underlying SQL statemen ...

0
votes
1 answers

How view Console.WriteLine messages for website? (ASP.Net)

When I'm running a website under IIS, where are these messages stored so that I can view them? They must be logged to a file somewhere or something. (Google search hasn't yielded much help.) Pete

0
votes
1 answers

Can DataGridView be used for large data sets?

I have a table with 1 million rows/records and my app dies when I try to use DataGridView. Can DataGridView be configured to select a small number of rows (<500) rather than trying to load the entire table into memory? Or, do I have to ...

0
votes
1 answers

DLL locked in memory for website... how force it out???

I have a C# website running in IIS 6. I have a set of classes in a DLL, like myclasses.dll that is referenced in the project and everything is good, EXCEPT that when I load the myclasses project and add a new method and re-build it, there ...

0
votes
1 answers

How access SmallMoney data type from C# code

What C# data type do I use to store a SmallMoney column data type? SmallMoney DOES NOT equal String: wrong: float f = (float)dataRow["MySmallMoneyColumn"] Thanks, Pete

0
votes
1 answers

How do you refresh a DataGridView

I have a DataGridView on a form that's data-bound. How do I redraw the grid to show the latest information in the database? Pete

0
votes
1 answers

ASP.Net Page Inheritance Buggy? (The type or name 'MyBasePage' could not be found)

All of the pages on my website inherit from a page called MyBasePage to easily call 500 lines of C# code in the MyBasePage.aspx.cs file. (I don't use MyBasePage.aspx.) Occasionally the project won't compile with the above error message ...

0
votes
1 answers

Inside try/catch, how dump the current stack trace?

I've poured through the Microsoft Help and Googled the web but can't seem to find how to dump the current stack inside a catch, e.g.: try { // some error occurs } catch ( Exception e ) { string s = AskRunTimeForStackTrace(); ...

0
votes
1 answers

Best way to code lots of HTML in code behind file?

What is the best way to place HTML in a C# code behind file? If you do a lot of Response.Writes of literal strings then all the HTML double-quotes (") have to be back quoted which is a pain and is less readable: Response.Write(" ...

0
votes
1 answers

Anyone using built-in Crystal Reports? (Visual Studio 2005)

I've tried five times to get a "hello, world" Crystal Report to work. In just a few clicks I can create a form, add a CrystalReportViewer to it, then add a trivial report I created one minute earlier. The previous shows some moc ...

Feedback