Hi, I would like to ask a question about returning the column value(s) returned by stored procedure in c#. I have created the code but somehow I encountered an error saying: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Here is my code public void Display(string pdesc, string psdesc, string psize, string category, ListView lv) { cn.con.Open(); queryString = "execute dbo.sp_RunningBalance @desc, @sdesc, @cat, @size"; …

Member Avatar
Member Avatar
+0 forum 1

How do I start a MonoDevelop software program as a system service on Windows, Linux, and Mac? Windows appears to not have a system service setting. I have a WCF service that essentially runs from command line. Even if I have to run from command line, I will need to be able to start the command line server on startup. Apologies for the weird tech, all you have to do is compile MonoDevelop for windows as per the instructions, and when you have a good WCF service you need to remember to set up the project as conventional command line …

Member Avatar
Member Avatar
+0 forum 2

Sometimes you have long processes and you even want display them up to the millisecond. Here is a way to do it.

Member Avatar
+0 forum 0

Hi, How can I pass a c# string to C++ side of the app? Right now, I have all handling in Const char * format . When I pass c# string, c++ working fine when using Platform::String . But there is no good way of converting Platform::String to const char *. Any inputs from your side? Any help will be appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 9

Why is it that C# disappeared from the Programming menu? Something to do with upcoming changes?

Member Avatar
Member Avatar
+0 forum 3

Hi Every one, i have a server and a numbers of clients and i have a C# program on that server. My question is how to run that program on these clients without installing the visual studio on the clienets computers????? you very much

Member Avatar
Member Avatar
+0 forum 3

Hi, I am working on parsing pdf layers from a pdf file into separate images. It was really hard to find an library that does this and now I am digging into iTextSharp which seems like it's handling layers. public static void CreatePDF( string fileName, string destinationFolder ) { PdfReader reader = new PdfReader( fileName ); PdfDictionary ocProps = reader.Catalog.GetAsDict( PdfName.OCPROPERTIES ); PdfDictionary occd = ocProps.GetAsDict( PdfName.D ); PdfArray order = occd.GetAsArray( PdfName.ORDER ); List<PdfObject> layers = new List<PdfObject>(); for( int i = 0; i < order.Size; i++ ) { layers.Add( order[ i ] ); } for( int i = …

Member Avatar
+0 forum 0

I started working on a windows forms authentication project, which uses nhibernate, and has some management pages for managing user settings, such as resetting user password. This forms based authentication uses session state in order to save the user's authentication information. I will be using a special authentication attribute in order to determine whether the user has access to the application. Since the authentication method is it's own mosaic of object relational mapping code, attributes, repositories, and asp.net mvc pages, I was thinking I could run this application as it's own project on a web server, and I could use …

Member Avatar
Member Avatar
+0 forum 4

I had a cool idea concerning threading in C#. I was reading a book called "CLR via C#" and it was discussing threading, and how people should seldom use actual thread objects, and instead should use the thread pooling services. The reason being they spool up worker threads for you to use and they reduce the overall overhead because of thread re-use. Now I had an idea. Since C# has now been open sourced and dumped online, I was thinking that perhaps an alteration to the threading API could allow us all to use the thread pool service behind the …

Member Avatar
Member Avatar
+0 forum 1

Ok, So I have an instance of **Windows Server 2012 R2** installed to a virtual machine on my local development PC with **IIS** . The idea being I need to practice and learn about how to deploy sites to web servers. I have tinkered around with some of the settings, but I am not entirely sure how to set up this server for **.NET development**. Does anybody have a clear cut translation of what exactly I am supposed to do to set this server up so that I can deploy to it? I am entirely confused right now because I …

Member Avatar
Member Avatar
+0 forum 3

I need some help building a bootstrap Angular UI modal. This is what I have so far, but I am pretty sure it is wrong. Any assistance would be good. This actually appears to be doing mostly bootstrap stuff. It was originally jquery, but I figured out the hard way that jquery does not mix with Angular Js well. <div id="excelModal" modal="excelModal" close="cancel()" hidden> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" hidden>&times;</button> <h4 class="modal-title">Excel Upload</h4> </div> <div class="modal-body"> <p>Please upload an excel file that contains the data you are wishing to include in the report parameters.</p> </div> …

Member Avatar
Member Avatar
+0 forum 1

The End.