When I inspect an object in the debugger, I see a lot more properties in the debugger than what is available in Intellisense or code.
For example, the Page object in ASP.NET in the debugger shows a property RelativeFilePath which has a value. But when I try to use it in code, it doesn't exist. Why is that?
I looked up the property Rel...
Part 1)
I have a bitmap/jpeg image.
I need to convert this image into an ASCII string (because I need to hash it)
How is this conversion to ASCII done?
Part 2)
Then, I need to send this ASCII string from client to server using HTTP Post.
From what I understand, I can only send data as a byte array using HTTP Post.
How can I send an ASC...
I am writing a system for automatically recalculating the results of costly methods, and then storing them in a cache. The cache may be distributed, meaning (obviously) multiple processes can access it.
On the first invocation of the method to cache the result for, I want to spawn a thread that will periodically recalculate the result o...
I have a project utilizing EF4 and Self Tracking Entities (STE). In the pre-release version of STE's you could add the "Namespace" value to each EDMX different from the default Namespace of the current project. (Open EDMX, right click: Properties, Set the "Namespace" attribute.)
When you set this in the pre-release version and use the...
Can subsonic 3.0 be used with a winform app? Do I need to add any references to the system.web?
If it can be done, how can I exclude certain tables in the DB? Can I use the following whih I am using for subsonic 2.0
<providers>
<!--<clear/>-->
<add name="TEST" type="SubSonic.SqlDataProvider, SubSonic" connectionStringName="myString...
I need a form where I could easly select a database source (from file or network) using ODBC or any other data provider, but I don't want to code it myself.
Are there any component or open source code that could save me the trouble?
Thanks in advance.
PS.: to be used with ADO.NET
...
Hi Guys, I been researching for weeks about this.. I'm currently designing a loosely-coupled architecture design using n-tier(3 layered) method and factory design approach. My goal is to put each Client's business logic (ClientA.DLL, ClientB.DLL) in separate namespaces so that the project scales out meaning I can modify/remove/add a spec...
I'm on my first MVC project and am at a point where I need to implement my membership system. I'm not sure whether using the out-of-the-box membership system is a good choice for me given that all I need is a simple login/registration system like the one at Digg. My UserId field is a foreign key to many other tables, which is why I th...
Update: I appreciate all of the comments, which have essentially comprised unanimous opposition. While every objection raised was valid, I feel that the ultimate nail in the coffin was Ani's astute observation that, ultimately, even the one miniscule benefit that this idea ostensibly offered -- the elimination of boilerplate code -- was ...
I have a method to add a date condition to my linq query. What I want to do is pass x.Due in as a parameter to make this able to work with any date. Any Ideas?
protected virtual IQueryable<TaskView> AddTaskDuePredicate( DateCriteria dateCriterion, IQueryable<TaskView> taskSummary )
{
if ( dateCriterion.Condition == DateConditi...
This question appears to have died, so I've decided to offer a bounty.
What I'm most interested in knowing is if my scenario in the ETA1 below is viable and is used. If it isn't, then a good explanation of why not would be a good answer. Another good answer would be an alternative (but not including the internalsvisibleto attribute).
T...
Hi. I just followed a tutorial that created a database and two .aspx web forms.. And it runs perfectly when I view the asp pages in my browser. But when I FTP'd the files:
Default.aspx
AddEntry.aspx
And my entire App_Data folder (with the .mdf and .ldf files)
It doesn't view at the URL. For example.. When I go to http://www.mysite....
In the GetLicense method of a LicenseProvider, there is a context that can be examined for a UsageMode. This is either DesignTime or RunTime.
I assumed that this would behave exactly like a control's DesignMode property but it doesn't appear to.
I've implemented my own LicenseProvider and, as a test, I display the UsageMode everytime t...
Given an assembly A, that refers to Assembly B, how can I figure out methodically all the symbols (classes, constants, enums, etc) that A uses from B? Is there any tool that can tell me that?
PS: I need it to analyse how "entrenched" is the dependency
...
Is there a .Net CSS parser that will allow me to parse css shorthand properties into their longhand form?
For example I'd like to take the following:
#somediv{
margin: 10px;
padding: 10px 20px;
border:5px solid #FFF;
}
And translate it to:
#somediv{
margin-top: ...
My ASP.NET 4.0 Web App is unable to access Network Printers, while debugging on VS 2010. It can access local printers. Seems like it may be a permissions issue. Since VS2010 Debugging runs on ASP.NET Development Server, it must be running under the account I used to log into Windows, right? Does that user need to be added as an Admin...
Hi there,
I want to build a WPF web application that could installed on a user's computer. So any hosting requirements would be subject to whatever configuration the user has. What are there requirements to host a WPF application?
Can any OS be used?
Is it required that the .Net framework be installed on the machine?
Obviously some we...
There are usually some that I don't use in whatever project I'm working on (System.XML, System.XML.Linq for example).
Are there any drawbacks from leaving default assemblies that I won't be using in my project?
...
I have a decent sized chunk of .NET code that now needs to be accessed by an ASP web page. Transactions need to be sent at regular instances to this "server" for processing. Processing takes less than a second and there are maybe 100-1000 such transactions a day
I've really only worked with COM and windows services before, so my normal ...
I've read numerous posts about this and have received conflicting info - I'm trying to 'boil down' a number of questions others have asked in hopes a good clear answer can exist somewhere on the web :-)
I am writing .NET application for my PC that connects to an IIS webserver running ASP.NET. The webserver has two methods similar to...