How to dynamically generate a dictionary base on different criteria?
Gurus!I have a need to dynamically generate dictionaries in my C# code depending on the appearance of certain values in a text file that I am parsing. My text file contains comma separated values of...
View ArticleHow to use DateAdd function in c#?
hi my name is vishal. i am on a project ie: converting a project of vb6 with ms-access to c#(framework 4.5) with sql server 2008. dtDOB.MaxDate = dtDOB.Value; where as in vb6 it is dtDOB.MaxDate =...
View ArticleFinish SqlCommand alert of a button by a thread
Hello, recently got a need to be able to terminate a query on the database where the query takes longer than it should, however I am having trouble dealing with threads, I have no experience in...
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 Articlehtml code behind
i have to dynamically pull the data or some text from data base into html labels can any body help me on this Thanks & RegardsAditya Kashyap
View Articlewhat is wrong with my regex
with RegexOptions IgnoreCase, ExpliciteCapturethe following(?<dt>[0-9]{4,4}-[0-2][0-9]-[0-3][0-9]),(?<desc>(\w|['*#/-])+( (\w|['*/#-])+)*((,( ([a-z'/]+))+(?! +))*))...
View ArticleApparently a standard question regarding MSMQ ....
Good Morning, Gurus !The following seems to be a standard question for getting started with MSMQ ... I see it bandied about quite a bit on the internet.I am trying to create a MessageQueue on...
View ArticleTwo computers and one is wrong
Hello,I have two computers and this code works great on one and terrible on the other. Can you help me determine why? if (!CheckToMakeSureSomethingIsSelected()) return; int width = wi.rcWindow.right -...
View ArticleError: External table is not in the expected format when read file Excel .xls
Hi everyone,I am trying to read an excel file (.xls) by using this connection string:ConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0;" +...
View ArticleexpandoObject: property get
Hello,I would like to add a property-get to an expandoObject. The name of this property will only be known at run-time. I would like to use this property by reflexion in exactly the same way I use a...
View ArticlePassing data between two windows forms
I am trying to pass the data value from a textbox on my main form to a listview on a second form. I created properties to hold the data values that I will passing to the listview as well as a...
View ArticleWhat this Arrays means
Hi can anyone can help me to understand this array i saw this in a book var names = new[] {new{Name="Kasun",Age="23"}, new{Name="Tim",Age="30"},...
View ArticleCannot using word api in asp.net website
Hi ,I have a website designed by MVC 3.0 and .Net 4.0 , and deployed at windows 2012 .now I add a new feature to generate the word document dynamic in website using the Microsoft.Office.InterOP.I have...
View ArticlePassing HeaderHandler to proxy object
Hi All, I am working on a migration application which was earlier developed in .net framework 2.0 and uses some COM components and SOAP 3.0. The SOAP object contains a web service and a headerhandler...
View ArticlePassing data between two windows forms
I am trying to pass the data value from a textbox on my main form to a listview on a second form. I created properties to hold the data values that I will passing to the listview as well as a...
View ArticleFileNotFoundException in Assembly.ReflectionOnlyLoad
Hi everyoneI am using a code which collects the assemblies used in a program(which is not mine I'm just using it for another purpose). I have to use this code:try{fileName =...
View Articlecan we access html code of any web portal which requires login crdentials in c#
Hi everyone,I need to get html code of a web page. But that page is accessed through credentials only.Is it possible to do this?Thanks in advance.
View ArticleProblem to retrieve image
Hi, I am to retrieve one picture file from an Access table, using these OleDbCommand cmd = new OleDbCommand("SELECT [photo_file] FROM [ite_tab3] where [ite_id]=@par_id", conn); if (tb_iteabbr.Text!="")...
View ArticleOpenFileDialog.ShowDialog(owner) returns immediately
Hello, allHere's another mysterious problem. I want to display a modal OpenFileDialog in the SAP B1 application. I used to do it by calling OpenFileDialog.ShowDialog(owner)passing B1's...
View ArticleEmbeded Hyperlink in email not displaying correctly for asp.net program
I am trying to send emails out from a Visual Studio program that have a hyperlink in them back to the system. The result I am getting is the following:Risk Number: <a...
View Article