I'm just now created Dynamic Data Entities Web Site.
And I have got a problem with image type. for all sql data types generated html elements by fieldTemplate. So, how can I create fieldtemplate for image-view, and image-upload ?
...
I'm looking for the most efficient way to suck out a series of monthly counts of records in my database, but adjusting for time zone, since the times are actually stored as UTC. I would like my result set to be a series of objects that include month, year and count.
I have LINQ to SQL objects that looks something like this:
public clas...
I have a WinForms application with an embedded MapPoint control that I've been maintaining for about 5 years now.
The application originally used MapPoint 2004, then 2006, and now we're upgrading to 2010.
Within my development environment (VS2008/.NET 2.0 for the project) the application runs fine.
Once I create an installer and insta...
I am getting the error message “The remote server returned an error: (501) Not Implemented.” when I try to use the HttpWebRequest.GetResponse() using the GET Method to get an email attachment from exchange. I have tried to change the HttpVersion and don’t think it is a permissions issue since I can search the inbox.
I know my credential...
I'm currently working on my first WPF application, and I'm curious as to whether I'll hit a snag down the line with performance by doing something like this:
Dim binding As New Binding("PropertyOnObject.Property1.Property2.Value")
binding.Source = Object
vs doing
Dim binding As New Binding("Value")
binding.Source = Object.PropertyOnO...
Hello guys,
I have a .NET program that "listens" and broadcasts on the same port. So, when it broadcasts packets, these packets loop back to my program, and I wish it didn't happen.
Is there a way to block broadcast loopback?
...
I have a singleton instance that is referenced throughout the project which works like a charm. It saves me the trouble from having to pass around an instance of the object to every little class in the project. However, now I need to manage multiple instances of the previous setup, which means that the singleton pattern breaks since each...
Working on the data access / model layer in this little MVC2 project and trying to think things out to future projects.
I have a database with some basic tables and I have classes in the model layer that represent them. I obviously need something to connect the two. The easiest is to provide some sort of 'provider' that can run operatio...
On a recent question about MVC attributes, someone asked whether using HttpPost and HttpDelete attributes on an action method would result in either request type being allowed or no requests being allowed (since it can't be both a Post and a Delete at the same time). I noticed that ActionMethodSelectorAttribute, from which HttpPostAttr...
So the other day my C# application crashed. Usually, with a .NET application, if you have an unhandled exception you get a nice error message with a stack trace.
However, this time, I got a different dialog that just told me there was an error and offered to attach a Debugger, but there was no stack trace in the dialog and the machine ...
How would i pass some parameters to a new thread that runs a function from another class ?
What i'm trying to do is to pass an array or multiple variables to a function that sits in another class and its called by a new thread.
i have tried to do it like this >
Functions functions = new Functions();
string[] data;
Thread...
I have a lot of classes and want to create some kind of 'directory'.
So that I can create menus automatically.
Clicking a menu-item would then create an instance of the class and shows the window.
What I want for this is an array of System.Type where I can stuff in all the classes without instantiating them.
Though from my test and (...
I am working on a client server system, and am running into issues where multiple clients are executing an action at the same time. We are able to solve this by locking on the critical section of code, which ensures that the first client will complete the action before the second client enters the code block. My question is this: our se...
I've created a simple application .Net Class that converts an excel spreadsheet into a a pdf file. I then get a Excel 2007 application to call this dll which works fine on my development machine.
However when i deploy it on to a Vista machine that has both the .net framework and excel 2007, i get this error -
run-time error '429' acti...
Given a simple class:
public class Person
{
public string FirstName;
public string LastName;
public string GetFullName()
{
return FirstName + LastName;
}
}
The user of this class will populate a List<Person> object by reading an Xml file or some other data source. Should the logic for populating the List be...
I understand that System.DirectoryServices is a "layer above" System.DirectoryServices.Protocols and abstracts some of the complexity.
Are there any other advantages, performance or otherwise, to using System.DirectoryServices.DirectorySearcher vs. System.DirectoryServices.Protocols.SearchRequest for LDAP queries from .NET.
What crit...
I have a text area and I want to store the text entered by user in database with html formatting like paragraph break, numbered list. I am using HTMLencode and HTMLdecode for this.
Sample of my code is like this:
string str1 = Server.HtmlEncode(TextBox1.Text);
Response.Write(Server.HtmlDecode(str1));
If user entered text with 2 parag...
Background:
I have created sample windows application for learning to implement localization. My each form has two RESX file. One for Bulgaria and one for French(Belgium). It has default culture English(XX)
To test locally currently I am programmatically changing UICulture i.e. Thread.CurrentThread.CurrentUICulture = new CultureInfo("f...
Hi there,
How can I draw candle charts in C#? Does anybody has any examples with a nice interface?
Thanks in advance
...
This works under the .net framework 3.5 client.
This fails under the .net framework 4.0 client.
Was I doing something that was illegal under 3.5 but just happened to work, or is this a bug?
Note that in my project 'PropInt' does not raise change events so
using ctx[obj1.PropObj2, "PropInt"] is not an option.
public class Obj1
{
...