I have a client/server application and I'm looking for some advice about how to handle the interface between the two. The Server/clients will be deployed over a LAN (potentially WAN, but definitely customer-managed, not centralized server). I'm considering these two options:
Client and Server can be different versions. This way, the WC...
Show the accurate running time of each line and total running time for the following function:
int f1(int n, int A[ ], int B[ ])
{
if ( (n>=5) || (n<0) )
return 0;
for (int i=0; i<=n; ++i)
{
A[I] = 0;
for (int j=0; ...
I have two web methods which I wish to overload:
<WebMethod()> _
Public Function GetProject(ByVal id As Int32) As Project
<WebMethod(MessageName:="GetProjects")> _
Public Function GetProject(ByVal filter As String) As Projects
I read about overloading using MessageName, however I cannot get this to work. Is this possible?
...
Maybe a little tricky, but I wonder why. In System.Linq.Enumerable.cs of System.Core.dll we have:
public static int Count<TSource>(this IEnumerable<TSource> source);
In my code I'm doing something evil:
namespace Test
{
public static class Extensions
{
public static int Count<TSource>(this IEnumerable<TSource> source)
...
I've embedded the LuaInterface project into an application written in C# using .NET Framework 4.0. After compiling LuaInterface and Lua 5.1 I've referenced them in my application and created a Lua VM and exposed a few .NET classes. When the Lua VM doesn't make many calls, performance is not affected at all; but when it starts to call a l...
Hi.,
I am using ASP.Net to create a web page, in that login page i need to use the "postback" option., may i know how to use the "postback" option in the login page. Please give me some sample codes for using "postback" option.
Thanks in Advance
...
Hi everyone,
Every time I build my .NET application with Visual Studio, I got a appname.vchost.exe file along with my appname.exe file. This file doesn't exist when I build with command line commands. So,
What is this *.vchost.exe file for?
Could someone explain its working mechanism in detail?
Thanks.
...
There is some php API service that when sent some parameters in query string, it returns date in xml format. So I was wondering how to send call the page and get back the result in c# .net. Like with an xml reader or xml scheme?
...
How to know that DataTable is already subscribed to OnRowChanged or OnColumnChanged events ?
I am facing a issue with many notifications in my app ? so I wanted to put a check and want to subscribe table only once ??
...
is there easy way to store dates as number and convert number to date equivalent in .NET 3.5 such as julian date format?.
...
I have a variable of XDocument, and I want to display its structure in a TreeView. I tried
TreeView1.DataSource = doc;
but I got this error
HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.
...
Is there a way to make Episerver leave the HTML id attribute alone and more importantly how much work is that?
I know you could also remove the viewstate, how much work is that?
I'm not here to start a discussion about semantics and optimization, whether or not a CMS should touch the front-end code is a long debate. I just need to know...
Suppose I have a Java or C# application in which I have classes like Book, Library, Author, ... and I want an easy way to map these items to database, or show them in a data grid.
I could implement interfaces for all these classes specifically for the data grid and for the database interaction, but this may mean quite some work whenever...
Hi,
I know that once a .NET application is launched, 3 Application Domains are created automatically by the CLR, they are System Domain, Shared Domain and Default Domain.
System Domain:
Create the Shared & Default domains
Provide the funcitons of loading and unloading application domains
Load mscorlib.dll into Shared domain
Bookkeepi...
Hello all,
I'm wondering if there's a way to make the parameters of this extension method 'intellisensible' from my view. at the moment, i can get a tooltip nudge of what the parameters (in the controller action method) are but would love to confidently intellisense type the parameter names for 'safety'. anyway, without further ado, the...
I have a working distributed application that has a rather big blemish. The client.exe needs the server.exe to work.
The reason for this is that the client and server use a MarshalByRef Class (which exists on both sides in the form of a .DLL) which contains a reference to the server.
Is there any way I can rearrange things so that I do...
I want to make round a number to million. This is my code:
string formating = "#,#,,";
decimal abc = 1234567890m;
decimal abc2 = 0m;
string text = abc.ToString(formating); // text="1,235"
string text2 = abc2.ToString(formating); // text2=""
Please help me to correct formating so that text2="0". Thanks.
P/S: I use ...
We have a DAL that we're using with NHibernate.Search, so classes that need to be indexed are decorated with an attribute Indexed(Index:="ClassName"), and each property that needs to be be indexed has an attribute Field(Index:=Index.Tokenized, Store:=Store.No) . When one wants the index to drill down special objects, there's the attribut...
Hello,
I have build a program in Visual Studio. The program creates a logfile and writes into it while the program is running. Therefore I constructed an installer (setup-project), that should set write permissions for my program-folder regardless which user works with the program.
currently it looks like this:
// ...
}
InitializeCom...
Hello,
I have a winform that opens (ShowDialog) other winforms.
Is there a way to get the first winform from the opened winform without passing it as a parameter or using a "public static" solution ?
EDIT: Didn't notice that i'm in a user control, how can i get my form?
Thanks in advance.
...