How to create copy of class object without any reference in C# (Cloning an...
Hi,I have a class with private variables, public properties and private/public member functions, etc.I have created an instance of this class and did some manipulations on this object.I want to create...
View ArticleFile transfer using C#, ASP.net
Hi, I am using ASP.Net and c# to upload large files using FTP (FTPWebRequest class).But when I am verify my application then it shows that it uses HTTP protocol. So how can I transfer files using FTP...
View ArticleJavaScriptSerializer().Serialize returning different results on different...
Hello,We have a problem with a web application which uses JavaScriptSerializer().Serialize to encode a JSON string. We get different results on our Test and Production Servers.We thought it was due to...
View Articleexe created in framework 3.5 can run with framework 4.0
Hi,I created the exe using visual studio 2008 (.NET framework 3.5).Now I want to execute same exe on another machine which is having framework 4.0 and framework 3.5 is not there .Will this exe execute...
View ArticleUsing the same identifier for a Type and a Class: What is the semantic effect...
I am trying to understand the details of Nested Properties, and this seems to be an excellent resource: Nested Property BindingIn the file Order.cs I found an unusual construct: public Customer...
View ArticleSet up Project for Window Client Application with and with out Data Base
Hi,I am creating a window application using Visual studio 2008. I am using Sql server 2005 as my data base. The window application will be a client application and as per user's role it will show the...
View ArticleDynamically add columns to a grid in wpf, mvvm
Hi, I have to dynamically add new columns to a exceed grid control, in my viewmodel. Already my view will be having some columns. As a item source I have to use ObservableCollection<XmlData>,...
View ArticleHow to access data from a windows form in a html file
Hi.I'm creating a windows form that obtains values from a database and saves them in a list of dataset. When pressing a button (in the form) i open a web browser window to present a html file.What i...
View ArticleHow c# compiler search namespace? CS0118 error occurs.
I defined a class in Microsoft.Practices namespace in my project, which referecs System.Xml.Linq.dll and System.Windows.Interactivity.dll files.When using Expression class in System.Linq.Expressions...
View ArticleInheritance
Ihaveanabstraction classperformer thathassubclassessoloand group.SoloArtist can only createrefererensto classMemberthatMemberSoloartist.KlasenArtistisjustastringname.Groupmembershaveanarray that...
View ArticleUnable to cast object of type 'System.String[*]' to type 'System.String[]'.
"In C# I am getting this error message. "Unable to cast object of type 'System.String' to type 'System.String[]'." However, in the debugger the object is indeed String[] and not String. What is String?...
View ArticleHow do i set in the program to frames per second ?
I have a class and im doing the calculation if the user move the mouse wheel up make the frames per second higher.If the user move the mouse wheel down lower. Up i mean 20,30,40 fps....Down...
View ArticleC# GroupPrincipal ismember
Dear Exprt,Althought user member for group value come in falsebool result = true; PrincipalContext context = new PrincipalContext(ContextType.Domain, "Mydomain");...
View ArticleRandom Unity Error in UnityContainer.IsRegistered() : Value cannot be null....
I am getting a random unity error “Value cannot be null. Parameter name: key” in production WCF servers. Resetting IIS or App pool on that WCF server solve this problem. I am not able to reproduce this...
View ArticleRefreshing A Access Database in Datagridview:
Hello.I am attempting to create a program in which the user is able to access certain tables from a Access Database & Update, Edit, Delete & Save information onto this table.The programs...
View Articlehow can i create a sub-domain with asp.net using c#.net?
hi everybodyi'm trying to create a website which will have a lot of users having their own pages with a unique URL like a weblog but i don't know how to do it!?i need your help
View ArticleParsing HTML files while developing windows 8 app.
I want to develop a cricket live score windows 8 app in which i have to update my app continuously with the latest scores from http://www.espncricinfo.com . They provide APIs but by using their APIs ,...
View ArticleI want large collection C# programs for practice
hiI am using C# more than a year now but I want to learn more and practice more. So i want collection of problem definition with solution. First I try myself to solve the program if I haven't got...
View Articlehe type or namespace name 'RegexStringValidator' could not be found
using System; using System.Configuration; namespace Microsoft.Samples.AspNet.Validators { class UsingRegexStringValidator { static void Main(string[] args) { // Display...
View ArticleRock, Paper, Scissors and looping dilemma.
Bare with me, this might be kind of sloppy. But first off, I've basically built the majority of the game, but now all I have left is to figure out a better way to get the game to continuously loop...
View Article