Problem with Dynamic menu and XML resource
hiI have an dynamic menu with XSLT file in asp.net. the below code is my code for get menu item from dbprotected void getmymenu() { DataSet ds = new DataSet(); string connStr =...
View ArticleWhat does that means?
Hi,What does that mean when method return 0 or 1 or -1 ?What does that mean when if return 0 or 1 or -1 ?How does for if?if (args.Length == 0) { System.Console.WriteLine("Please enter a numeric...
View ArticleHtmlElementCollection
I have used this code before and it worked but now when I tryed to use it again it doesn't seem to work again HtmlElementCollection google = this.wb.Document.GetElementsByTagName("title"); foreach...
View Articleprint fckeditor textarea in crystal report using asp.net
Hi, I am using VS2008 for developing one web application and one of mine page i am using fckeditor. I want to print the textarea of fckeditor in crystal report in same format as i was written in...
View ArticleSqlParameterCollection only accepts non-null SqlParameter type objects, not...
Dear All i searched on google but did not find exact solution.. pls help to resolve this problem.. I have a procedure and i am using to insert values in table..like below but i got error like:-The...
View ArticleCreating "strongly typed accessors"
I've seen several questions along these lines (e.g. overloading a function by return type - not possible obviously) and the only thing that gives me hope is that ASP.Net already does what I want just...
View ArticleType or namespace could not be found - missing directive /assembly reference?
Hi,I am trying an example from a book and I am getting errors. The main error I am getting is Error2 The type or namespace name 'Entitykey' could not be found (are you missing a using directive or an...
View ArticleConsuming webservice in C#
Hi, I have a web service which has been created in a non .net technology. I know for sure the web service works fine. I would like to write a C# desktop app client that'd consume the web service....
View Articleoraoledb.oracle not registered on local machine
Hello GuysI have a C# application which runs fine on a 32 bit environment using a 32 bit client and having MSDAORA as the provider.Now i need to migrate that to a 64 bit environment.First question...
View ArticleWrite the prime Number code which output like this?
Enter the number of prime numbers you want5First 5 Prime Numbers are:2 3 5711
View ArticlePass type as string variable
I'm relatively new at C# programming, I've been coding in it for almost a year now. Previously I have been using PowerShell, and am pretty good at that and it seems that C# is a next step. So, if this...
View ArticleUpdate to the database was only read the first value in program
Hai everyone, i have a problem, the program just read the first entered `Quantity` value in the program and apply it to all rows in database and the value of first and second row are same, even though...
View ArticleC# - Question about events (also textbox clearing and starting/stopping a timer)
Hi all,I basically have a System.Timers.Timer that is set to trigger an event every 10 seconds. In the event, I usedtextbox1.Clear(); so that every time the event is triggered, the textbox clears....
View ArticleXdocument Parse XML
Hello.I did post a XML question a couple of days ago and i have parsed several XML files with the help of the answer in that post XML Post but now i have a XML file that i dont know how to...
View ArticleHow do make the texbox accept only numerics, del key and backspace?
hi friends, is there away to make a textbox accept only numeric, del key and backspace key?I used the following code but it doesn't work: private void textBox1_KeyPress(object sender, KeyPressEventArgs...
View ArticleHow to Serialize the Excel data with the XML Serialization Method ?
In XML Serialization we have a direct method for XML Serialization. But for excel we don't have such direct methods, We can serialize the Excel data also. Step 1 : Load the Excel data to DataSet and...
View ArticleUsing Task.Run() without Lamda
I'm not wild about Lambda expressions. I know how to use them but would like to be able to put a Func in the Task.Run(...) and keep the method itself separate. I just think that it would look cleaner....
View ArticleWhy can't get consistent e.End.ToString() with same date range selection on...
Seems no one reported my problem...I have a RSS reader. There is a Month Calender to let user to filter out RSS feeds.I implemented following method:private void mc1_DateSelected(object sender,...
View ArticleWebservice RequestSoapContext does not exists.
hiI am using WSE 3.0 .dll Please help...X509SecurityToken signatureToken = GetSecurityToken(); CBSVService.CBSVServices objser = new CBSVService.CBSVServices(); SoapContext requestContext =...
View Article