-
- Data Transfer from client to webservice
by sspShankar
- 4 Replies
- Last post
by Peter Ritchie
- Hello All,
I am building a client application(C#), which call's the webservice, which in turn calls the dataAccess layer to fetch or update the database.
The data returned by the webservice sometimes can be huge (maximum2MB), heirarchical data.
What is the best way to transfer data to and fro between the client and the webservice.
I am using dataset now, but I heard dataset
-
- One Part Of A File Name
by Wasting Body
- 4 Replies
- Last post
by Wasting Body
- When click a node my app it makes a new tab in the tab control with the text of the name of the node which is a file name. I only want the last part of the file name, for example "test.txt", in the tabs text; how would I go about doing this
-
- debugger VS 2005 doesn't stop on break points
by nouveau
- 6 Replies
- Last post
by TFM
- Hi. Has anyone had any problems with the debugger not stopping on break points
I have debug="true" in web.config
Thanks!
-
- Space between Lines of File
by Pravin Prabhu
- 8 Replies
- Last post
by Pravin Prabhu
- Hi ,
I use Visual Studio 2005. I opened a .cs (csharp) file from someone else's machine.
The file opens with a blank line between all the lines. It opes correctly in other machines using vstudio 2005
I am not able to find the correct settings to change in options.
For example
Code Snippet
xrs.Load(strAisresponse);
ItemList = xrs.SelectNodes( &
-
- Generating Unique Number daily in WebService.
by BlueGuy
- 7 Replies
- Last post
by BlueGuy
- I have to generate a six digit number that's unique for any given day, it has to be truly unique in the sense that it will be generated within a webservice and the sevice can be invoked by multiple clients simultaneously, so the hours,munutes,seconds one won't work.Can you comeup with some thing
-
- Finding controls on a web form
by Zamial
- 4 Replies
- Last post
by Zamial
- I'll set out the pattern for you.
I am writing a method - purpose unimportant but the location I think is important. The method is based in a user control, this control is on a web page that also inherits from a Master page.
I am trying to find a control that is on a different user control that is in the same web page.
I have tried various routes of the Page.Controls collection and using
-
- Calculate a persons age yy:mm:dd
by Can-Ann
- 4 Replies
- Last post
by AlexBB
- Does anyone have a function to calculate a persons age - yy:mm d
Thanks in advance.
-
- Problem code generated with a Web reference
by Franck6
- 3 Replies
- Last post
by Caddre
- I posted this thread in C++ forum because the problem is with my C++ project but they redirect me here. I need help, I dont know how to correct my problem.
I have au Web service in C# with a personalized SoapHeader like
Code Snippet
private AuthenticationHeader _authentication;
public AuthenticationHeader Authentication
{
get { return _authenticatio
-
- Two Constructors
by JMOdom
- 2 Replies
- Last post
by TilakGopi
- I'm trying to learn C# and I have a problem. I have two constructors that deliever a return called WeeklyWages. In one a annual salary is input and divided by 52. In the other one I input HoursWorked and PayRate. See below.
My question is: On my Application how do I go about calling the right constructor I suppect I will have to use some kind of if-else statement. Any help will be apprecia
-
- Hex String
by Anil554403
- 4 Replies
- Last post
by Anil
- Hello,
I need to send selected items from the ListBox to the database field "keyrings" of datatype varbinary(128), the logic i used is to get the selected items from the Listbox and set the byte[] to 1 for the sected item,
//Keyrings byte[] aGroup = new byte[1024]; string hexString; for (int index = 0; index < SecurityGroups.Items.Count; index++) {
-
- Activex and registration
by &#1055;&#1072;
- 3 Replies
- Last post
by TaylorMichaelL
- Hello, I have code ACTIVEX:
Code Block
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace SSSearchService { public interface ISSSearch { string returnXML(); } [ClassInterface(ClassInterfaceType.AutoDual)] public class SSSearch : ISSSearch { public string returnXML() { return "tes
-
- screenshot of desktop
by Phyx
- 5 Replies
- Last post
by Phyx
- I'm looking to take a screenshot of the desktop at any time, so, i want to get all the icons etc aswell. but the problem is, their might be windows ontop of it. i don't want to have to minimize them all to take it, is there another way to do it maybe read the hdc of it, but the problem is, does that even have the icons, and does it even have something if the window is hidden out of sight
-
- Using break with nested loops
by Stephen Fulwider
- 8 Replies
- Last post
by Paul Louth
- Hey, trying to write a pretty simple piece of code, seeing if there's a bit more elegant way to do this in C#. I'm trying to write a nested for loop, and have a single break statement to break out of the highest for loop. For instance, in Java this would be done like this: outerloop: for (int i=0; i<10; i++) for (int j=0; j<10; j++) if (condition_met) break outerloop; Do
-
- Stop Thread and exit program
by danni123
- 11 Replies
- Last post
by OmegaMan
- My program has a form and another worker class. Worker class has a thread that receiving data, in loop: socket.ReceiveFrom(....) When I close the form the program (thread) is still running. How to stop everything and exit
-
- Serializing Pains
by Stuby085
- 6 Replies
- Last post
by Stuby085
- I have a class, ClassA, that is serializable. The class has been tested and works perfectly. I have another class, ClassB, that uses the first class and it too is serializable. I am able to serialize the instance of ClassA inside ClassB but I am not able to deserialize it back from the temporary file. I'll try to make an example of the problem without giving all the unneeded information.
-
- C# Using a Shell from a Windows Application
by zigy42
- 4 Replies
- Last post
by daniel sovino
- I am inquiring on how to shell out from a windows application to use the command prompt window as the type of display. For example: I want the user to be able to click a button and that button open the command prompt and run a particular script and display those results in the command prompt window. Any ideas Thanks
-
- Help with Custom Parser
by Web DynamiX
- 2 Replies
- Last post
by Web DynamiX
- I am writing a webserver which accepts integer values for object properties. These are then cast to enums. I would like to add some validation which allows me to validate wether the integer represents a valid enum value. e.g. public enum ConditionType { Poor = 1401, Good = 1402, VeryGood = 1403 } I would like to validate wether a passed value i.e 1401 is part of the enum. I have tri
-
- Aysnchronous Vs. Multithreaded Client-Server application
by ZINK_C
- 8 Replies
- Last post
by Peter Ritchie
- Hi , I am developing a Client-Server application , I have done some research and found there are three ways to handle multiple client requests. 1. To use old style multithreaded server 2. To use .NET threadPoll worker threads 3. Asynchronous Socket programing But I am confused that which appproch I shld go.... My clients will run and provide all local info to main application ( Server ) so its th
-
- DllImport only works in VS but not in the exe
by sun450
- 4 Replies
- Last post
by Peter Ritchie
- Hi,
I have a C# application which has several dllImport calls like
[DllImport("ba.dll", EntryPoint = "BstateNxt")] private static extern void BstateNxt(long p)
The interface in c++ code of ba.dll is the following:
//return the address
__declspec(dllexport) long BstateNxt(long p) { return (long)((BState *)p)->nxt; }
If I run the
-
- Reflection - GetMethod - Ref Parameter
by Nasmi
- 4 Replies
- Last post
by Nasmi
- I need to call GetMethod through reflection. The method I should refer is
public ServerResponse SetUserData ( string sessionid , string country , string user , ref System.Net.CookieContainer cookies )
How can I get an instance of MethodInfo for this method. This method is a member of my class called ABCClient
Thank you
-
- how to convert pdf file to doc/txt file
by Riphat
- 4 Replies
- Last post
by micvos
- i want to convert a pdf file to text file and then updates that file..after updating i want to convert that file again in pdf format.
-
- Simple array question
by Azurewrath
- 4 Replies
- Last post
by Azurewrath
- Hi,
I am trying to create an array having a number of colors generated from 2 colors. But I can't think of any way.
Basically I have 2 colors: a and b. Using their hue, saturation and value, I want to say create a 4x3x2 colors (HxSxV). But the problem, is I don't know how to construct the for loop, because I don't know how I can generalize it.
Any help is appreciated. Since th
-
- My C# application abruptly closes down on VS2005
by Subbu
- 4 Replies
- Last post
by Subbu
- Hello, I developed a simple C# application to download a file from a website. After testing it, I gave it to a customer to help him download patches etc.. from my company's update site. Surprisingly, when he clicks the download button on the form, the C# application closes . Sometimes, it even closes when puts his mouse cursor on any part of the C# form. This is very bizarre to me!!! My customer
-
- I am such a beginner
by Gary Mitchell
- 12 Replies
- Last post
by Gary Mitchell
- I would like to understand these parameters better ( object sender, EventArgs e) and would like to know what Debugging Symbols are. If anyone could take the time to answer a beginners questions, I would truly appreciate it.
-
- Converting VB6 to C#
by de_henny
- 4 Replies
- Last post
by de_henny
- Hi all,
i was wondering if anybody has any experience with converting vb6 code to C# automatically. Off course i realize a lot of work still will has be done manually, but some research pointed out that there are a lot of tools available. If anyone has used any of them i would very much appreciate any experiences.
the tools i came across :
http://www.artinsoft.com/so_vb.aspx g