Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9,360 | 2 | null | 9,336 | 0 | null | Custom handler to generate the sitemap.
| null | CC BY-SA 2.5 | null | 2008-08-13T00:48:30.373 | 2008-08-13T00:48:30.373 | null | null | 17 | null |
9,361 | 1 | 16,650 | null | 5 | 1,705 | I'd like to utilize an ICE Faces fileInput control to fill in the file path & file name for the input to an input field on a web page based on file that the user selects. How can I capture these properties without actually performing any file transfer operations?
| ICE Faces fileInput file path and file name properties | CC BY-SA 2.5 | null | 2008-08-13T00:49:17.360 | 2009-05-06T03:11:40.483 | null | null | 318 | [
"java",
"ajax",
"jsf",
"icefaces"
] |
9,374 | 2 | null | 9,338 | 2 | null | We get a bunch of email/pager alerts from an older host/app/network monitoring environment that get gradually more abusive depending on severity of the problem/time taken to respond. Fortunately we all have thick skins and very broad senses of humour. :)
| null | CC BY-SA 2.5 | null | 2008-08-13T01:04:19.013 | 2008-08-13T01:04:19.013 | null | null | 419 | null |
9,375 | 2 | null | 9,173 | 0 | null | This is where tools like [Resharper](http://www.jetbrains.com/resharper/) really pay off -- a simple Find Usages usually tells me of such "ghost dependencies" several times.
Maybe you could go to your definition of the SuperException class and try to Find All References(). You might also want to investigate if the ass... | null | CC BY-SA 2.5 | null | 2008-08-13T01:05:29.980 | 2008-08-13T01:05:29.980 | null | null | 372 | null |
9,376 | 1 | 34,033 | null | 73 | 58,039 | Do you use ILMerge? Do you use ILMerge to merge multiple assemblies to ease deployment of dll's? Have you found problems with deployment/versioning in production after ILMerging assemblies together?
I'm looking for some advice in regards to using ILMerge to reduce deployment friction, if that is even possible.
| ILMerge Best Practices | CC BY-SA 3.0 | 0 | 2008-08-13T01:05:47.250 | 2017-02-28T13:36:45.647 | 2011-08-15T18:27:07.563 | 140,328 | 1,083 | [
"c#",
".net",
"deployment",
"ilmerge"
] |
9,369 | 2 | null | 9,240 | 0 | null | You may want to split your interfaces into two types, namely:
- -
It is possible to inherit and implement both set of interfaces such that:
```
public class BusinessObject : IView, IData
```
This way, in your data layer you only need to see the interface implementation of IData, while in your UI you only need to ... | null | CC BY-SA 2.5 | null | 2008-08-13T01:00:12.783 | 2008-08-13T01:12:54.130 | 2008-08-13T01:12:54.130 | 372 | 372 | null |
9,372 | 1 | 9,380 | null | 6 | 5,117 | I'm using Windows Vista x64 with SP1, and I'm developing an ASP.NET app with IIS7 as the web server. I've got a problem where my cookies aren't "sticking" to the session, so I had a Google and found that there was a known issue with duplicate response headers overwriting instead of being added to the session. This prob... | How do I prevent IIS7 from dropping my cookies? | CC BY-SA 3.0 | null | 2008-08-13T01:02:27.507 | 2020-08-17T17:03:41.950 | 2012-01-06T15:16:07.693 | 106,224 | 1,157 | [
"http",
"iis",
"iis-7",
"cookies",
"windows-vista"
] |
9,377 | 2 | null | 9,338 | 2 | null | We use log4net, and normally write both to log files and the database. However, when we've been tracking down a particularly difficult problem, we've enabled the email appender, so that critical log messages went straight to a developer's email account. This allowed us to figure out what was happening more immediately.... | null | CC BY-SA 2.5 | null | 2008-08-13T01:07:02.957 | 2008-08-13T01:07:02.957 | null | null | 633 | null |
9,378 | 2 | null | 9,314 | 2 | null | when you added the listview, did you add it to the toolbox and then add it to the form?
| null | CC BY-SA 2.5 | null | 2008-08-13T01:07:15.857 | 2008-08-13T01:07:15.857 | null | null | 493 | null |
9,382 | 2 | null | 9,336 | 0 | null | Using ASP.NET MVC just whipped up a quick bit of code using the .NET XML generation library and then just passed that to a view page that had an XML control on it. In the code-behind I tied the control with the ViewData. This seemed to override the default behaviour of view pages to present a different header.
| null | CC BY-SA 2.5 | null | 2008-08-13T01:12:17.970 | 2008-08-13T01:12:17.970 | null | null | 364 | null |
9,383 | 1 | 9,384 | null | 1 | 1,228 | How do you access a SQL Server 2005 Express Edition from a application in a network computer?
The access I need is both from application (Linq-to-SQL and ODBC) and from Management Studio
| Access a SQL Server 2005 Express Edition from a network computer | CC BY-SA 3.0 | 0 | 2008-08-13T01:14:16.857 | 2012-02-15T07:41:50.847 | 2012-02-15T07:41:50.847 | 13,302 | 1,154 | [
"sql-server",
"sql-server-2005-express"
] |
9,384 | 2 | null | 9,383 | 5 | null | See this KB Article. [How to configure SQL Server 2005 to allow remote connections](http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277).
Oh, and remember that the SQLServer name will probably be MyMachineName\SQLExpress
| null | CC BY-SA 2.5 | null | 2008-08-13T01:16:48.257 | 2008-08-13T01:16:48.257 | null | null | 233 | null |
9,365 | 2 | null | 9,341 | 2 | null | ```
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void indexChanged(object sender, EventArgs e)
{
Label1.Text = " I did something! ";
}
</script>
<html xmlns="ht... | null | CC BY-SA 2.5 | null | 2008-08-13T00:53:34.077 | 2008-08-13T01:15:47.557 | 2008-08-13T01:15:47.557 | 384 | 384 | null |
9,398 | 2 | null | 9,304 | 2 | null | The only problem I have with them is that they don't go far enough. The same release of the compiler that added automatic properties, added partial methods. Why they didnt put the two together is beyond me. A simple "partial On<PropertyName>Changed" would have made these things really really useful.
| null | CC BY-SA 2.5 | null | 2008-08-13T01:36:03.617 | 2008-08-13T01:36:03.617 | null | null | 489 | null |
9,391 | 2 | null | 163 | 9 | null | `$rev` and others like it are revisions for the individual files, so they won't change unless the file changes. The number on the webpage is (most likely, I'm assuming here) the svn revision number for the whole project. That is different than the file revisions, which others have been pointing to.
In this case I assu... | null | CC BY-SA 3.0 | null | 2008-08-13T01:28:33.427 | 2015-12-29T06:28:34.353 | 2015-12-29T06:28:34.353 | 3,787,519 | 1,083 | null |
9,380 | 2 | null | 9,372 | 4 | null | Just a thought, have you got an underscore in the url. e.g. [http://my_site](http://my_site) ?
And one other thing, you're not running the app pool in web garden mode? i.e. Process Model -> Maximum Worker Processes: > 1
What type of app pool are you using - Integrated or Classic mode ?
| null | CC BY-SA 2.5 | null | 2008-08-13T01:09:00.033 | 2008-08-13T01:15:11.067 | 2008-08-13T01:15:11.083 | 419 | 419 | null |
9,403 | 2 | null | 9,018 | 0 | null | There is a way you can programmatically provision your devices. If you're using managed code, you can use Microsoft.WindowsMobile.Configuration.dll to do most of the work for you. If you're using unmanaged code, you have to use DMProcessConfigXML native function.
There's more details in [this blog post by Andrew Arnott... | null | CC BY-SA 4.0 | null | 2008-08-13T02:02:27.727 | 2020-06-26T15:02:01.040 | 2020-06-26T15:02:01.040 | 6,262,124 | 631 | null |
9,401 | 2 | null | 9,033 | 751 | null | This isn't C# per se, but I haven't seen anyone who really uses `System.IO.Path.Combine()` to the extent that they should. In fact, the whole Path class is really useful, but
I'm willing to bet that every production app has the following code, even though it shouldn't:
```
string path = dir + "\\" + fileName;
```
| null | CC BY-SA 2.5 | null | 2008-08-13T01:53:50.460 | 2008-08-13T01:53:50.460 | null | null | 631 | null |
9,404 | 2 | null | 8,968 | 3 | null | If you only need some simple process orchestration, Spring's own [Web Flow](http://springframework.org/webflow), despite its name can serve as a orchestration task manager. If you need to preserve state for several days then you will need to become an 'early adopter' of one of the open-source projects. You may want ... | null | CC BY-SA 2.5 | null | 2008-08-13T02:02:38.537 | 2008-08-13T02:02:38.537 | null | null | 700 | null |
9,408 | 2 | null | 8,219 | 1 | null | There's also [parallel-junit](https://parallel-junit.java.net/). Depending on how you currently execute your tests its convenience may vary - the idea is just to multithread on a single system that has multiple cores. I've played with it briefly, but it's a change from how we currently run our tests.
[Hudson](https:/... | null | CC BY-SA 3.0 | null | 2008-08-13T02:13:56.410 | 2013-11-26T03:58:10.860 | 2013-11-26T03:58:10.860 | 1,102,512 | 235 | null |
9,411 | 2 | null | 9,410 | 3 | null | You need to pass a [function pointer](http://www.newty.de/fpt/fpt.html#passPtr). The syntax is a little cumbersome, but it's really powerful once you get familiar with it.
| null | CC BY-SA 2.5 | null | 2008-08-13T02:18:28.163 | 2008-08-13T02:18:28.163 | null | null | 59 | null |
9,387 | 2 | null | 9,314 | 9 | null | > when you added the listview, did you add it to the toolbox and then add it to the form?
No, I just edited `Main.Designer.cs` and changed it from `System.Windows.Forms.ListView` to `MyApp.Controls.SortableListView<Image>`
Suspecting it might have been due to the generics led me to actually finding a solution.
For e... | null | CC BY-SA 3.0 | null | 2008-08-13T01:23:58.633 | 2013-03-14T20:09:48.573 | 2013-03-14T20:09:48.573 | 234 | 234 | null |
9,410 | 1 | 9,413 | null | 795 | 765,863 | I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C?
| How do you pass a function as a parameter in C? | CC BY-SA 2.5 | 0 | 2008-08-13T02:16:32.520 | 2021-09-23T14:29:50.047 | 2016-07-29T19:09:28.087 | 2,411,320 | 432 | [
"c",
"function",
"pointers",
"syntax",
"parameters"
] |
9,304 | 1 | 9,310 | null | 157 | 49,515 |
I am used to create my properties in C# using a private and a public field:
```
private string title;
public string Title
{
get { return title; }
set { title = value; }
}
```
Now, with [.NET](http://en.wikipedia.org/wiki/.NET_Framework) 3.0, we got auto-properties:
```
public string Title { get; set; }
... | C# 3.0 auto-properties — useful or not? | CC BY-SA 4.0 | 0 | 2008-08-12T23:06:58.767 | 2018-12-12T08:35:03.390 | 2018-10-24T13:49:44.477 | 107,625 | 91 | [
"c#",
".net",
"automatic-properties"
] |
9,406 | 2 | null | 9,033 | 220 | null | > The @ tells the compiler to ignore any
escape characters in a string.
Just wanted to clarify this one... it doesn't tell it to ignore the escape characters, it actually tells the compiler to interpret the string as a literal.
If you have
```
string s = @"cat
dog
fish"
```
it will act... | null | CC BY-SA 2.5 | null | 2008-08-13T02:07:26.267 | 2009-09-12T20:33:53.107 | 2009-09-12T20:33:53.107 | 63,550 | 493 | null |
9,409 | 1 | 9,426 | null | 5 | 9,646 | I have a datagrid getting bound to a dataset, and I want to display the average result in the footer for a column populated with integers.
The way I figure, there's 2 ways I can think of:
1."Use the , Luke"
In the code where I'm calling DataGrid.DataBind(), use the DataTable.Compute() method (). For example:
```
D... | Datagrid: Calculate Avg or Sum for column in Footer | CC BY-SA 3.0 | null | 2008-08-13T02:15:17.093 | 2012-09-11T00:14:12.440 | 2012-09-11T00:14:12.440 | 1,270,384 | 952 | [
"asp.net",
"vb.net",
"datagrid",
"report"
] |
9,417 | 2 | null | 8,896 | 3 | null | I personally feel that you'd have to recompile the application using a 64-bit compiler (obviously on a 64-bit machine) to get the most of Memcached on a 64-bit platform. This may not be an easy task depending on the code. If it was written with 64-bit portability in mind then it could be a simple recompile. If it hasn'... | null | CC BY-SA 2.5 | null | 2008-08-13T02:30:09.480 | 2008-08-13T02:30:09.480 | null | null | 611 | null |
9,239 | 2 | null | 8,452 | 8 | null | I blogged about a bunch of resources on WPF Commands along with an example last year at [http://blogs.vertigo.com/personal/alanl/Blog/archive/2007/05/31/commands-in-wpf.aspx](http://blogs.vertigo.com/personal/alanl/Blog/archive/2007/05/31/commands-in-wpf.aspx)
Pasting here:
[Adam Nathan’s sample chapter on Important ... | null | CC BY-SA 3.0 | null | 2008-08-12T21:03:37.720 | 2016-01-29T21:30:11.517 | 2016-01-29T21:30:11.517 | 982,161 | 1,133 | null |
9,432 | 2 | null | 8,704 | 0 | null | Using those two exception handlers should work. Are you sure you've added them in a place where they're going to be called and properly set (ie, in your application's entry point -- you did put one in, right?)
| null | CC BY-SA 2.5 | null | 2008-08-13T03:10:36.670 | 2008-08-13T03:10:36.670 | null | null | 1,975,282 | null |
9,426 | 2 | null | 9,409 | 1 | null | I don't know if either are necessarily better, but two ways would be:
1. Manually run through the table once you hit the footer and calculate from the on-screen text
2. Manually retrieve the data and do the calculation separately from the bind
Of course, #2 sort of offsets the advantages of data binding (assuming... | null | CC BY-SA 2.5 | null | 2008-08-13T02:59:55.943 | 2008-08-13T02:59:55.943 | null | null | 1,975,282 | null |
9,433 | 1 | 9,453 | null | 10 | 1,323 | For some reason I never see this done. Is there a reason why not? For instance I like _blah for private variables, and at least in Windows Forms controls are by default private member variables, but I can't remember ever seeing them named that way. In the case that I am creating/storing control objects in local vari... | Do you name controls on forms using the same convention as a private variable? | CC BY-SA 2.5 | null | 2008-08-13T03:17:52.037 | 2014-07-15T05:17:15.283 | 2008-08-23T17:49:47.310 | 2,134 | 327 | [
"user-interface",
"oop",
"coding-style"
] |
9,440 | 2 | null | 9,434 | 1 | null | I don't know a lot about ASP.NET, but why not write a custom function for the onload event that in turn calls both functions for you? If you've got two functions, call them both from a third script which you register for the event.
| null | CC BY-SA 2.5 | null | 2008-08-13T03:26:40.617 | 2008-08-13T03:26:40.617 | null | null | 872 | null |
9,435 | 1 | 31,805 | null | 7 | 2,762 | We are in the initial planning stages of building out a mobile site for one of our clients. This mobile site will be in addition to the main site that we have already built for them. We've determined that the content is going to be a small subsection of the main site and will target the main audience that is expected... | Planning and Building a mobile enabled site for your main site | CC BY-SA 2.5 | 0 | 2008-08-13T03:23:55.987 | 2016-11-30T10:48:03.190 | 2014-07-22T21:51:45.193 | 3,857,586 | 648 | [
"html",
"mobile",
"responsive-design",
"wap",
"wml"
] |
9,421 | 2 | null | 9,410 | 161 | null | This question already has the answer for defining function pointers, however they can get very messy, especially if you are going to be passing them around your application. To avoid this unpleasantness I would recommend that you typedef the function pointer into something more readable. For example.
```
typedef void ... | null | CC BY-SA 2.5 | null | 2008-08-13T02:34:47.850 | 2008-09-16T13:22:06.893 | 2008-09-16T13:22:06.893 | 716 | 716 | null |
9,447 | 2 | null | 9,434 | 2 | null | Try this:
```
window.attachEvent("onload", myOtherFunctionToCall);
function myOtherFunctionToCall() {
// do something
}
```
edit: hey, I was just getting ready to log in with Firefox and reformat this myself! Still doesn't seem to format code for me with IE7.
| null | CC BY-SA 2.5 | null | 2008-08-13T03:31:16.847 | 2008-08-13T03:33:50.553 | 2008-08-13T03:33:50.553 | 404 | 404 | null |
9,448 | 2 | null | 9,409 | 1 | null | Thanks [DannySmurf](https://stackoverflow.com/questions/9409/aspnet-datagrid-in-footer-calculate-avg-or-sum-for-column#9426), your first answer made me see sense. ().
For reference, here's what I ended up doing: ()
```
Case ListItemType.Footer
e.Item.Cells(0).Text = "Average"
For i As Integer = 3 To 8
... | null | CC BY-SA 2.5 | null | 2008-08-13T03:36:03.187 | 2008-09-03T05:14:06.243 | 2017-05-23T12:19:33.570 | -1 | 952 | null |
9,413 | 2 | null | 9,410 | 944 | null |
A prototype for a function which takes a function parameter looks like the following:
```
void func ( void (*f)(int) );
```
This states that the parameter `f` will be a pointer to a function which has a `void` return type and which takes a single `int` parameter. The following function (`print`) is an example of a... | null | CC BY-SA 4.0 | null | 2008-08-13T02:22:24.007 | 2020-06-08T12:46:23.863 | 2020-06-08T12:46:23.863 | 10,851,804 | 184 | null |
9,453 | 2 | null | 9,433 | 13 | null | This might be counter-intuitive for some, but we use the dreaded Hungarian notation for UI elements.
The logic is simple: for any given data object you may have two or more controls associated with it. For example, you have a control that indicates a birth date on a text box, you will have:
- - -
For that, I would ... | null | CC BY-SA 2.5 | null | 2008-08-13T03:45:18.550 | 2008-08-13T03:45:18.550 | null | null | 372 | null |
9,418 | 2 | null | 1,644 | 63 | null | My list:
[Hanselminutes](http://www.hanselminutes.com/)
[.NET Rocks!](http://www.dotnetrocks.com/)
[Herding Code](http://herdingcode.com/)
[Deep Fried Bytes](http://deepfriedbytes.com/)
[Spaghetti Code](http://feeds.feedburner.com/SpaghettiCodePodcasts)
[The Sparkling Client](http://www.sparklingclient.com/)
[Plumbers ... | null | CC BY-SA 4.0 | null | 2008-08-13T02:30:36.237 | 2008-08-14T12:17:11.007 | 2021-01-18T12:38:11.483 | -1 | 1,137 | null |
9,456 | 2 | null | 9,433 | 4 | null | Hungarian notation or not, I'm more curious if people prepend m_ or _ or whatever they use for standard private member variables.
| null | CC BY-SA 2.5 | null | 2008-08-13T03:48:00.603 | 2008-08-13T03:48:00.603 | null | null | 327 | null |
9,451 | 2 | null | 9,434 | 1 | null | Actually, according to [this MSDN page](http://msdn.microsoft.com/en-us/library/z9h4dk8y.aspx), it looks like you call this function multiple times to register multiple scripts. You just need to use different keys (the second argument).
```
Page.ClientScript.RegisterStartupScript(
this.GetType(), key1, function1... | null | CC BY-SA 2.5 | null | 2008-08-13T03:39:06.160 | 2008-08-13T03:39:06.160 | null | null | 872 | null |
9,455 | 1 | 113,793 | null | 11 | 642 | Has anyone been able to get xinc to run correctly under OpenBSD's chrooted default Apache? I'd like to keep our development server running fully chrooted just like our Production server so that we make sure our code runs just fine chrooted.
| Running xinc on OpenBSD's Apache Server | CC BY-SA 2.5 | null | 2008-08-13T03:47:52.397 | 2008-09-22T08:26:34.563 | null | null | 204 | [
"php",
"continuous-integration",
"openbsd",
"xinc"
] |
9,434 | 1 | 688,199 | null | 67 | 65,558 | In my ASP.NET User Control I'm adding some JavaScript to the `window.onload` event:
```
if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), onloadScriptName))
Page.ClientScript.RegisterStartupScript(this.GetType(), onloadScriptName,
"window.onload = function() {myFunction();};", true);
```
My pro... | Add multiple window.onload events | CC BY-SA 3.0 | 0 | 2008-08-13T03:18:32.893 | 2018-11-16T10:21:04.980 | 2018-01-14T19:42:54.060 | 122,643 | 233 | [
"javascript",
"asp.net",
"events",
"listener"
] |
9,436 | 2 | null | 9,433 | 0 | null | I don't, but I appreciate your logic. I guess the reason most people don't is that underscores would look kind of ugly in the Properties window at design time. It'd also take up an extra character of horizontal space, which is at a premium in a docked window like that.
| null | CC BY-SA 2.5 | null | 2008-08-13T03:26:07.217 | 2008-08-13T03:26:07.217 | null | null | 615 | null |
9,461 | 2 | null | 3,106 | 2 | null | > this must be a common need.
Some small percentage of software developers develop for .NET
Some very small percentage of that group develop for mono
Some small percentage of that group wants to provide .debs instead of just a zip
Some very small percentage of that group wants to build their linux apps on windows i... | null | CC BY-SA 2.5 | null | 2008-08-13T03:56:07.983 | 2008-08-13T03:56:07.983 | null | null | 234 | null |
9,465 | 2 | null | 9,433 | 0 | null | > Hungarian notation or not, I'm more
curious if people prepend m_ or _ or
whatever they use for standard private
member variables.
Luke,
I use _ prefix for my class library objects. I use Hungarian notation exclusively for the UI, for the reason I stated.
| null | CC BY-SA 2.5 | null | 2008-08-13T03:59:21.190 | 2008-08-13T03:59:21.190 | null | null | 372 | null |
9,466 | 2 | null | 9,433 | -3 | null | I use m_ for member variables, but I'm increasingly becoming tempted to just using lowerCamelCase like I do for method parameters and local variables. Public stuff is in UpperCamelCase.
This seems to be more or less accepted convention across the .NET community.
| null | CC BY-SA 3.0 | null | 2008-08-13T04:00:10.953 | 2014-07-15T05:17:15.283 | 2014-07-15T05:17:15.283 | 229,044 | 234 | null |
9,462 | 2 | null | 9,435 | 0 | null | I think the main difference with the 2.5G phones and the new 3G phones is that while 2.5G phones used their own browsers, browsers on 3G phones have become much more similar/accurate in their rendering capabilities.
On the other hand, you can use CSS to render the same HTML in either a large screen format or a small m... | null | CC BY-SA 2.5 | null | 2008-08-13T03:56:13.787 | 2008-08-13T03:56:13.787 | null | null | 372 | null |
9,467 | 1 | 9,474 | null | 7 | 2,671 | What techniques do people use to "consume" services in the REST stile on .Net ? Plain http client? Related to this: many rest services are now using JSON (its tighter and faster) - so what JSON lib is used?
| Best way to write a RESTful service "client" in .Net? | CC BY-SA 2.5 | 0 | 2008-08-13T04:04:05.877 | 2012-04-05T20:37:22.083 | 2009-08-17T16:47:31.893 | 40,347 | 699 | [
".net",
"web-services",
"rest"
] |
9,473 | 1 | 9,481 | null | 5 | 4,974 | I have a custom control that implements IPostBackEventHandler. Some client-side events invoke __doPostBack(controlID, eventArgs).
The control is implemented in two different user controls. In one control, RaisePostBackEvent is fired on the server-side when `__doPostBack` is invoked. In the other control, RaisePostBack... | RaisePostBackEvent not firing | CC BY-SA 2.5 | 0 | 2008-08-13T04:30:30.610 | 2009-08-18T07:05:02.023 | 2008-08-14T00:40:41.247 | 67 | 67 | [
"asp.net",
"postback"
] |
9,481 | 2 | null | 9,473 | 1 | null | There's a lot of ways this can fall apart. Are you adding the control to the page dynamically in code behind? If so alot of times your UniqueID can be off - even though the client id's are equal. Do you have a code sample that might demonstrate what you're doing?
| null | CC BY-SA 2.5 | null | 2008-08-13T04:45:06.557 | 2008-08-13T04:45:06.557 | null | null | 225 | null |
9,475 | 2 | null | 9,376 | 3 | null | We use ILMerge on quite a few projects. The [Web Service Software Factory](http://www.codeplex.com/servicefactory), for example produces something like 8 assemblies as its output. We merge all of those DLLs into a single DLL so that the service host will only have to reference one DLL.
It makes life somewhat easier, b... | null | CC BY-SA 2.5 | null | 2008-08-13T04:31:44.323 | 2008-08-13T04:31:44.323 | null | null | 781 | null |
9,470 | 2 | null | 9,434 | 3 | null | [Mootools](http://mootools.net/) is another great JavaScript framework which is fairly easy to use, and like RedWolves said with [jQuery](http://jquery.com/) you can can just keep chucking as many handlers as you want.
For every *.js file I include I just wrap the code in a function.
```
window.addEvent('domready', f... | null | CC BY-SA 2.5 | null | 2008-08-13T04:16:01.500 | 2008-08-13T04:16:01.500 | null | null | 910 | null |
9,472 | 1 | 9,531 | null | 0 | 1,156 | I have a WCF service that I have to reference from a .net 2.0 project.
I have tried to reference it using the "" method but it messes up the params.
For example, I have a method in the service that expects a `char[]` to be passed in, but when I add the web reference, the method expects an `int[]`.
So then I tried ... | WCF Backward Compatibility Issue | CC BY-SA 3.0 | null | 2008-08-13T04:27:31.773 | 2015-09-09T09:51:26.000 | 2015-09-09T09:51:26.000 | 1,537,726 | 493 | [
"c#",
".net",
"wcf"
] |
9,474 | 2 | null | 9,467 | 5 | null | My approach was
1. Write some libraries and interfaces to serialize your objects into REST-compatible XML. You can't neccessarily just use the built-in serializers, because your service may not accept the same kind of XML that .NET wants to give you. Example: When passing booleans to a Rails REST service, "true" gets... | null | CC BY-SA 2.5 | null | 2008-08-13T04:30:50.487 | 2008-08-13T04:30:50.487 | null | null | 234 | null |
9,479 | 2 | null | 9,435 | 0 | null | My experience is that it really depends on what you're trying to do and who/where the users are.
While WAP got a lot of bad press, it's strength is where you have low bandwidth high-latency connections. The WML content gets optimised by the carrier's gateway to greatly reduce the amount of data transmitted over th... | null | CC BY-SA 2.5 | null | 2008-08-13T04:38:44.993 | 2008-08-13T22:11:55.070 | 2008-08-13T22:11:55.070 | 1,050 | 1,050 | null |
9,488 | 2 | null | 9,486 | 2 | null | It can be achieved by using code snippets, some are already built in (try typing "svm" and hitting TAB-TAB)..
There's a wealth of info on the net on creating these:
[Jeff did a post himself here](http://www.codinghorror.com/blog/archives/000419.html)
Have a google! I use them LOTS! :D
| null | CC BY-SA 2.5 | null | 2008-08-13T05:14:51.693 | 2008-08-13T05:14:51.693 | null | null | 832 | null |
9,486 | 1 | 9,491 | null | 11 | 6,878 | I could swear I've seen people typing function headers and then hitting some key combination to auto-create function braces and insert the cursor between them like so:
```
void foo()_
```
to
```
void foo()
{
_
}
```
Is this a built-in feature?
| How do I make Visual Studio auto generate braces for a function block? | CC BY-SA 2.5 | 0 | 2008-08-13T05:09:33.233 | 2013-04-01T18:52:23.800 | null | null | 327 | [
"c#",
"visual-studio"
] |
9,485 | 2 | null | 9,433 | 1 | null | I personally prefix private objects with _
Form controls are always prefixed with the type, the reason I do this is because of intellisense. With large forms it becomes easier to "get a labels value" by just typing and selecting it from the list ^_^ It also follows the [logic stated by Jon Limjap](https://stackoverf... | null | CC BY-SA 2.5 | null | 2008-08-13T05:05:57.077 | 2008-08-13T05:05:57.077 | 2017-05-23T12:34:03.920 | -1 | 832 | null |
9,489 | 2 | null | 9,486 | 2 | null | Take a look at [visual assist](http://www.wholetomato.com/) as well.
| null | CC BY-SA 2.5 | null | 2008-08-13T05:15:22.283 | 2008-08-13T05:15:22.283 | null | null | 568 | null |
9,494 | 2 | null | 9,486 | 6 | null | The tools look nice (especially Resharper but at $200-350 ouch!) but I ended up just recording a macro and assigning it to ctrl+alt+[
Macro came out like this:
```
Sub FunctionBraces()
DTE.ActiveDocument.Selection.NewLine
DTE.ActiveDocument.Selection.Text = "{}"
DTE.ActiveDocument.Selection.CharLeft
D... | null | CC BY-SA 2.5 | null | 2008-08-13T05:30:37.527 | 2008-08-13T05:49:04.807 | 2008-08-13T05:49:04.807 | 327 | 327 | null |
9,491 | 2 | null | 9,486 | 5 | null | Check out [Resharper](http://www.jetbrains.com/resharper/documentation/feature_map.html) - it is a Visual Studio add-on with this feature, among many other development helps.
Also see [C# Completer](http://www.knowdotnet.com/articles/csharpcompleter.html), another add-on.
If you want to roll your own, check out [this... | null | CC BY-SA 2.5 | null | 2008-08-13T05:20:34.147 | 2008-08-13T05:27:18.313 | 2008-08-13T05:27:18.313 | 525 | 525 | null |
9,506 | 2 | null | 9,501 | 1 | null | You can find some information about troubleshooting this kind of problem at [this blog entry](http://blogs.msdn.com/tess/archive/2008/05/21/debugdiag-1-1-or-windbg-which-one-should-i-use-and-how-do-i-gather-memory-dumps.aspx). Her blog is generally a good debugging resource.
| null | CC BY-SA 2.5 | null | 2008-08-13T06:13:21.590 | 2008-08-13T06:13:21.590 | null | null | 533 | null |
9,504 | 2 | null | 3,088 | 1 | null | This may sound dumb, but why are YOU trying to teach your brother to program?
Often the best learning environment consists of an goal that can be achieved by a keen beginner (a sample program), an ample supply of resources (google/tutorials/books), and a knowledgeable source of advice that can provide guidance when ne... | null | CC BY-SA 2.5 | null | 2008-08-13T06:10:25.183 | 2008-08-13T06:10:25.183 | null | null | 1,043 | null |
9,497 | 2 | null | 9,355 | 2 | null | Depending on what you actually want to accomplish you may be able to do it with [AutoHotKey](http://www.autohotkey.com/). It is an amazing free tool for automating things you normally can't do. It should come with Windows. This script will select your file and highlight the next two files below it when you hit F12.
`... | null | CC BY-SA 2.5 | null | 2008-08-13T05:56:33.527 | 2008-08-21T16:18:59.480 | 2008-08-21T16:18:59.480 | 791 | 791 | null |
9,507 | 2 | null | 9,501 | 1 | null | I have [an article about debugging ASP.NET in production](http://www.codinghorror.com/blog/archives/000015.html) which may provide some pointers.
| null | CC BY-SA 2.5 | null | 2008-08-13T06:14:11.197 | 2008-08-13T06:14:11.197 | null | null | 1 | null |
9,501 | 1 | null | null | 4 | 936 | We're running a custom application on our intranet and we have found a problem after upgrading it recently where IIS hangs with 100% CPU usage, requiring a reset.
Rather than subject users to the hangs, we've rolled back to the previous release while we determine a solution. The first step is to reproduce the problem... | Replicating load related crashes in non-production environments | CC BY-SA 3.0 | null | 2008-08-13T06:04:52.950 | 2013-12-02T13:17:55.260 | 2013-12-02T13:17:55.260 | 2,432,317 | null | [
"asp.net",
"performance",
"memory",
"crash",
"cpu"
] |
9,508 | 1 | 9,526 | null | 11 | 983 | This should be fine seeing as the CLR hasn't actually changed?
The boxes running the C# 2.0 code had .NET 3.5 rolled out.
The background is that we have a windows service (.NET 2.0 exe built with VS2005, deployed to ~150 servers) that dynamically loads assemblies (almost like plug-ins) to complete various work items... | C# 2.0 code consuming assemblies compiled with C# 3.0 | CC BY-SA 3.0 | null | 2008-08-13T06:17:00.570 | 2013-07-05T19:20:00.637 | 2013-07-05T19:20:00.637 | 419 | 419 | [
"c#",
".net",
".net-3.5"
] |
9,512 | 2 | null | 9,433 | 1 | null | For me, the big win with the naming convention of prepending an underscore to private members has to do with Intellisense. Since underscore precedes any letter in the alphabet, when I do a ctrl-space to bring up Intellisense, there are all of my _privateMembers, right at the top.
Controls, though, are a different sto... | null | CC BY-SA 2.5 | null | 2008-08-13T06:19:16.850 | 2008-08-13T06:19:16.850 | null | null | 1,493 | null |
9,528 | 2 | null | 9,433 | 0 | null | I never use underscores in my variable names. I've found that anything besides alpha (sometimes alphanumeric) characters is excessive unless demanded by the language.
| null | CC BY-SA 2.5 | null | 2008-08-13T07:06:15.587 | 2008-08-13T07:06:15.587 | null | null | 1,063 | null |
9,523 | 2 | null | 9,473 | 0 | null | Double check that it is indeed a derivation of the UserControl class, not the WebControl one.
This one has had me by surprise many times. If you need to use WebControl for the styling, you need to let your control implement INamingContainer. (Don't worry, its a marker interface)
So..
```
public class MyControl : User... | null | CC BY-SA 2.5 | null | 2008-08-13T06:56:24.140 | 2008-08-13T06:56:24.140 | null | null | 960 | null |
9,531 | 2 | null | 9,472 | 2 | null | One of those instances that you need to edit the WSDL. For a start a useful tool
[http://codeplex.com/storm](http://codeplex.com/storm)
| null | CC BY-SA 2.5 | null | 2008-08-13T07:14:23.353 | 2008-08-13T07:14:23.353 | null | null | null | null |
9,526 | 2 | null | 9,508 | 6 | null | C#3 and .Net 3.5 adds new assemblies, but the IL is unchanged.
This means that with .Net 2 assemblies you can compile and use C#3, as long as you don't use Linq or anything else that references System.Linq or System.Core
`yield`, `var`, lambda syntax, anon types and initialisers are all compiler cleverness. The IL th... | null | CC BY-SA 2.5 | null | 2008-08-13T06:58:35.197 | 2008-08-13T06:58:35.197 | null | null | 905 | null |
9,502 | 2 | null | 9,240 | 7 | null | If I understand the question correctly, you've created a domain model and you would like to write an object-relational mapper to map between records in your database and your domain objects. However, you're concerned about polluting your domain model with the 'plumbing' code that would be necessary to read and write to... | null | CC BY-SA 2.5 | null | 2008-08-13T06:08:24.597 | 2008-08-13T06:08:24.597 | null | null | 1,131 | null |
9,532 | 2 | null | 6,155 | 0 | null | A hook to notify the bug/issue management system of changes to repository. Ie. the commit message has issue:546 or similar tag in it that is parsed and fed to the bug management system.
| null | CC BY-SA 2.5 | null | 2008-08-13T07:16:35.083 | 2008-08-13T07:16:35.083 | null | null | 964 | null |
9,535 | 2 | null | 9,501 | 0 | null | Is your test env the same really as live?
i.e
2 separate vm instances on 2 physical servers - with the network connection and account types?
Is there any other instances on the Database?
Is there any other web applications in IIS?
Is the .Net Config right?
Is the App Pool Config right for service accounts ?
[Try l... | null | CC BY-SA 2.5 | null | 2008-08-13T07:26:33.987 | 2008-08-13T07:26:33.987 | null | null | null | null |
9,537 | 2 | null | 9,508 | 1 | null | This is interesting stuff. I was looking at [LinqBridge](http://www.albahari.com/nutshell/linqbridge.html) yesterday after someone on this forum suggested it to me and they are doing a similar thing.
I find it strange that Microsoft named the frameworks 2.0, 3.0 and 3.5 when they all compile down to produce the same I... | null | CC BY-SA 2.5 | null | 2008-08-13T07:27:19.583 | 2008-08-13T07:27:19.583 | null | null | 493 | null |
9,529 | 2 | null | 9,304 | 64 | null | Yes, it does save code. It's miles easier to read when you have loads of them. They're quicker to write and easier to maintain. Saving code is always a good goal.
You can set different scopes:
```
public string PropertyName { get; private set; }
```
So that the property can only be changed inside the class. This ... | null | CC BY-SA 3.0 | null | 2008-08-13T07:09:06.127 | 2015-10-07T08:17:29.367 | 2015-10-07T08:17:29.367 | 905 | 905 | null |
9,562 | 2 | null | 4,860 | 0 | null | Can you let us know that technology you are using as there are some intresting bits out there around this stuff and some short cuts... i.e. WSE2 is complex beast and something that I dont like getting wrong!
I dont like developers doing this and there are WSE2 accelorators out there like SSL Accelorates as the proce... | null | CC BY-SA 2.5 | null | 2008-08-13T07:52:51.123 | 2008-08-13T07:52:51.123 | null | null | null | null |
9,569 | 2 | null | 9,508 | 2 | null | > yield, var, lambda syntax, anon types
and initialisers are all compiler
cleverness. The IL they produce is
cross-compatible.
Minor nit-picking point, but yield was a 2.0 feature anyway.
| null | CC BY-SA 2.5 | null | 2008-08-13T08:03:02.773 | 2008-08-13T08:03:02.773 | null | null | 987 | null |
9,548 | 2 | null | 9,543 | 3 | null | We have a BizTalk 2006 with Web Application and Several WebServices that need to go from Dev to UAT to Live.
We use MSBuild right from within VS to build, run tests, dependent on test result, complie, zip and ship to servers.
Small MSBuild script on server to unzip, move the files, install clean web app, unlist bizta... | null | CC BY-SA 2.5 | null | 2008-08-13T07:39:37.157 | 2008-08-13T07:39:37.157 | null | null | null | null |
9,543 | 1 | 9,643 | null | 18 | 15,532 | I am now in the process of planning the deployment of a SharePoint solution into a production environment.
I have read about some tools that promise an easy way to automate this process, but nothing that seems to fit my scenario.
In the testing phase I have used SharePoint Designer to copy site content between the dif... | How do you deploy your SharePoint solutions? | CC BY-SA 2.5 | 0 | 2008-08-13T07:33:45.810 | 2014-09-24T08:43:31.010 | 2008-08-13T08:58:05.050 | 960 | 960 | [
"sharepoint",
"deployment",
"production"
] |
9,533 | 2 | null | 9,336 | 8 | null | Usually you'll use an [HTTP Handler](http://www.google.com/search?q=HTTPHandler+ASP.NET&spell=1) for this. Given a request for...
> [http://www.yoursite.com/sitemap.axd](http://www.yoursite.com/sitemap.axd)
...your handler will respond with a formatted XML sitemap. Whether that sitemap is generated on the fly, from a... | null | CC BY-SA 2.5 | null | 2008-08-13T07:19:07.713 | 2008-08-13T07:22:27.800 | 2008-08-13T07:22:27.800 | null | null | null |
9,547 | 2 | null | 9,033 | 261 | null | Two things I like are Automatic properties so you can collapse your code down even further:
```
private string _name;
public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}
```
becomes
```
public string Name { get; set;}
```
Also object initializers:
```
Emplo... | null | CC BY-SA 2.5 | null | 2008-08-13T07:39:13.493 | 2008-08-13T07:39:13.493 | null | null | 493 | null |
9,581 | 2 | null | 9,033 | 21 | null | On the basis that this thread should be entitled "", my personal feature is asynchronous delegates.
Until I read Jeff Richter's C#/CLR book (excellent book, everyone doing .NET should read it) I didn't know that you could call delegate using `BeginInvoke` / `EndInvoke`. I tend to do a lot of `ThreadPool.QueueUserWor... | null | CC BY-SA 2.5 | null | 2008-08-13T08:29:09.287 | 2011-03-21T21:35:52.873 | 2011-03-21T21:35:52.873 | 9,453 | 987 | null |
9,584 | 2 | null | 8,747 | 2 | null | I also, like you, never really felt a 100% comfortable with SVN or SourceSafe.
Check out [Mercurial](http://www.selenic.com/mercurial/wiki/). [Quickstart](http://www.selenic.com/mercurial/wiki/index.cgi/QuickStart) and [Cheatsheets](http://www.ivy.fr/mercurial/ref/v1.0/)
also a great [cheat sheet from DongWoo Lee](ht... | null | CC BY-SA 2.5 | null | 2008-08-13T08:39:12.700 | 2008-08-13T08:39:12.700 | null | null | 925 | null |
9,570 | 1 | 10,888 | null | 1 | 1,180 | I'm integrating .NET support into our C++ application.
It's an old-school MFC application, with 1 extra file compiled with the "/clr" option that references a CWinFormsControl.
I'm not allowed to remove the linker flag "/NODEFAULTLIB".
(We have our own build management system, not Visual Studio's.)
This means I have t... | What libraries do I need to link my mixed-mode application to? | CC BY-SA 3.0 | null | 2008-08-13T08:05:00.337 | 2015-04-17T10:46:27.780 | 2015-04-17T10:46:27.780 | 155,077 | 1,163 | [
"linker",
"c++-cli",
"mixed-mode"
] |
9,594 | 2 | null | 9,591 | 0 | null | Yes, I highly recommend [this one](https://rads.stackoverflow.com/amzn/click/com/0596510373)
| null | CC BY-SA 2.5 | null | 2008-08-13T09:10:15.257 | 2008-08-13T09:10:15.257 | null | null | 1,075 | null |
9,591 | 1 | 9,919 | null | 65 | 86,220 | Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.
I really like to read and learn with it. Are there any other WPF books you could recommend?
| What WPF books would you recommend? | CC BY-SA 2.5 | 0 | 2008-08-13T08:59:42.783 | 2011-04-01T18:33:07.297 | null | null | 1,094 | [
"wpf"
] |
9,589 | 1 | 12,064 | null | 50 | 59,932 | I'm looking for a tool which can generate a [Makefile](https://en.wikipedia.org/wiki/Make_(software)#Makefile) for a C/C++ project for different compilers ([GCC](https://en.wikipedia.org/wiki/GNU_Compiler_Collection), [Microsoft Visual C++](https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B), [C++Builder](https://e... | Is there a good tool for Makefile generation? | CC BY-SA 4.0 | 0 | 2008-08-13T08:47:36.363 | 2022-06-27T21:15:13.653 | 2022-06-27T20:37:18.640 | 63,550 | 1,007 | [
"c++",
"c",
"cross-platform",
"makefile"
] |
9,596 | 2 | null | 9,433 | 0 | null | I'm in the Uppercase/Lowercase camp ("title" is private, "Title" is public), mixed with the "hungarian" notation for UI Components (tbTextbox, lblLabel etc.), and I am happy that we do not have Visual Case-Insensitive-Basic developers in the team :-)
I don't like the underscore because it looks kinda ugly, but I have ... | null | CC BY-SA 2.5 | null | 2008-08-13T09:12:24.333 | 2008-08-13T09:12:24.333 | null | null | 91 | null |
9,597 | 2 | null | 9,591 | 5 | null | Adam's book is fantastic - [http://blogs.msdn.com/adam_nathan/archive/2006/05/17/599301.aspx](http://blogs.msdn.com/adam_nathan/archive/2006/05/17/599301.aspx)
Also Petzold's is good although a little chewey to get through :-) [http://www.charlespetzold.com/wpf/](http://www.charlespetzold.com/wpf/)
| null | CC BY-SA 2.5 | null | 2008-08-13T09:13:07.390 | 2008-08-13T09:13:07.390 | null | null | 1,165 | null |
9,602 | 2 | null | 9,591 | 1 | null | I am with KiwiB* awesome book. Although you need to now .net to get some of the examples, as they miss some of the using statements for the code examples.
| null | CC BY-SA 2.5 | null | 2008-08-13T09:25:51.873 | 2008-08-13T09:25:51.873 | null | null | null | null |
9,590 | 2 | null | 9,589 | 8 | null | Try [Automatic Makefile Generator](http://www.robertnz.net/genmake.htm#Details).
It has support for the following compilers:
- - - - - - - - - - - - - - - - - - - - - -
| null | CC BY-SA 4.0 | null | 2008-08-13T08:49:26.253 | 2022-06-27T21:15:13.653 | 2022-06-27T21:15:13.653 | 63,550 | 123 | null |
9,610 | 2 | null | 9,601 | 0 | null | Maybe you're closing Visual Studio while some other instance is still alive. The settings of the last instance that is closed is the one that will be applied.
| null | CC BY-SA 2.5 | null | 2008-08-13T09:35:07.173 | 2008-08-13T09:35:07.173 | null | null | 718 | null |
9,606 | 2 | null | 9,433 | 1 | null | I came through VB and have held onto the control type prefix for controls. My private members use lower-camel case (firstLetterLowercase) while public members use Pascal/upper-camel case (FirstLetterUppercase).
If there are too many identifiers/members/locals to have a 90% chance of remembering/guessing what it is cal... | null | CC BY-SA 2.5 | null | 2008-08-13T09:31:26.340 | 2008-08-13T09:31:26.340 | null | null | 891 | null |
9,604 | 2 | null | 3,088 | 1 | null | I'd suggest taking an approach similiar to that of the book, [Accelerated C++](http://www.acceleratedcpp.com/) in which they cover parts of C++ that are generally useful for making simple programs. For anyone new to programming I think having something to show for a little amount of effort is a good way to keep them in... | null | CC BY-SA 2.5 | null | 2008-08-13T09:29:29.290 | 2010-07-11T21:56:13.707 | 2010-07-11T21:56:13.707 | 14,343 | 1,167 | null |
9,612 | 1 | 9,638 | null | 3 | 4,118 | I'm trying to set the group type for a new Active Directory Entry via VB.NET and DirectoryServices to create a distribution list.
How do I access the ADS_GROUP_TYPE enumerations?
Specifically I'm after ADS_GROUP_TYPE_GLOBAL_GROUP.
| Setting Group Type for new Active Directory Entry in VB.NET | CC BY-SA 2.5 | 0 | 2008-08-13T09:40:12.890 | 2011-02-11T10:35:47.247 | 2009-03-10T03:46:37.537 | 5,640 | 982 | [
"vb.net",
"active-directory",
"directoryservices",
"distribution-list"
] |
9,601 | 1 | 9,630 | null | 8 | 6,588 | I'm having a weird issue with Visual Studio 2008. Every time I fire it up, the solution explorer is about an inch wide. It's like it can't remember it's layout settings.
Every un-docked window is in the position I place it. But if I dock a window, it's position is saved, but it's size will be reset to very-narrow (aro... | Visual Studio 2008 Window layout annoyance | CC BY-SA 2.5 | 0 | 2008-08-13T09:24:10.020 | 2011-12-19T18:44:46.377 | 2011-12-19T18:44:46.377 | 105,971 | 376 | [
"visual-studio"
] |
9,616 | 2 | null | 9,191 | 0 | null | Paul - saw the update. Very interesting.
It would be interesting to try it on Vista or Win2008, as people seem to be reporting some considerable I/O improvements on these in some circumstances.
My only suggestion about a different API would be to try memory mapping the files - have you tried that? Unfortunately at... | null | CC BY-SA 2.5 | null | 2008-08-13T09:44:26.017 | 2008-08-13T09:44:26.017 | null | null | 987 | null |