I have a page that displays data from an object. I'm loading the object server side, and passing the results through an AJAX call with json. There is a date property that is part of the object. For some reason, the date is being changed. It looks like it is trying to take into account the timezone I'm in and subtracting 4 hours from the ...
We have an existing system that processes a lot of files on an ongoing basis. Roughly speaking, about 3 million files a day that can range in size from a few kilobytes to in excess of 50 MB. These files go through a few different stages of processing from the time they are received to when they are finished being consumed, depending on...
I have a simple service and I try to set up authentication. On the client I want the user to enter there windows user account. And the WCF will use the username/password provided by the client and authenticate them against windows authentication.
Here is my server app.config
<system.serviceModel>
<services>
<service name="W...
I have the following control:
<asp:TextBox ID="textbox1" runat="server" Width="95px" MaxLength="6" />
which i would like to be hidden/invisible on page load, and have the textbox appear after clicking a button/running some javascript without reloading the page.
Here's my current button:
<asp:Button ID="cmdShowBox" runat="server" Tex...
Pretty simple.
UInteger data type hold any value between 0 and 4,294,967,295. MSDN.
If I try this code in VB.NET I get a compiler error:
Dim Test As UInteger = &HFFFFFFFF
Error: "Constant expression not representable in type 'UInteger'.
Why I can't set 0xFFFFFFFF (4,294,967,295) to a UInteger if this type can hold this value?
...
My application loads a lot of different plugin assemblies. Each plugin can add their own services into the IoC container and can also use all services provided by the main application.
I'm moving from a home brewn security solution to use CAS (PrincipalPermissionAttribute and an own one derived from CodeAccessSecurityAttribute).
Can I ...
In the company I work for, we're using a NHibernate session wrapper that disposes all the sessions opened in the current web request at the end of the same request, and commits all the associated transactions (we're working in a multi-database environment, and we create a session for every database).
Also, in the session wrapper we're u...
Hello,
C# newbie here. I am trying to set a C# variable as follows.
string profileArg = @"/profile ""eScore"" ";
The end result is that I want the variable to contain the value
/profile "eScore"
There should be a space in the string after the "eScore"
How do I do it?
Seth
...
I'm writing a .NET program that downloads web pages using proxy servers from a list. I'm running into the problem that sometimes a proxy server will return its own junk content, instead of returning the content from the intended page. The download will appear to succeed, but when you look at the downloaded HTML, it will have obviously ...
If my user is in California and they have their computer set to PST, it's 1:00 pm there. If my server is set to EST, the current server time is 4:00 pm.
I need a way to get the timezone difference between the client and the server, either in Javascript or C#. In my example, I would get 3 (or -3, doesn't matter).
Does anyone know how to...
I'm wanting to know to get Intellisense in Visual Studio 2005 to display the meaning of individual enum values for a VB.NET project. This already happens for enums that are a part of the .NET library:
Is this possible? If so, how would I need to comment my enums to get this to happen?
...
I'm trying to use the EBay Finding API to send an advanced search request and return the results. I have included my code below.
For some reason when I get to the following line:
FindItemsAdvancedResponse response = service.findItemsAdvanced(request);
the object called "response" is coming back as null.
I'm not sure where I'm going ...
Using Windows Server 2003, MySQL 5.1.23, MySQL .NET Connector 6.2.2
I am trying to use the MySQLBulkLoader class to read in a fixed width text file. An excerpt from that classes Load method is:
string sql = BuildSqlCommand();
MySqlCommand cmd = new MySqlCommand(sql, Connection);
cmd.CommandTimeout = 10 * 60;// Timeout;
cmd.ExecuteNonQ...
I have a datatable from database on the basis of some query.
I want that datatable to have a primary key for an existing column.
How can I do this?
...
In VS 2010/.NET 4.0, I have a List<MyClass> list of a simple class as such:
public class MyClass
{
public string String1 { get; set; }
public string String2 { get; set; }
public MyClass(string string1, string string2)
{
String1 = string1;
String2 = string2;
}
}
This list is displayed in a W...
Hi all,
As we' re designing our brand new social media platform, we' ve decided to construct our site on a Restful interface. Later on, this restful interface will be used as a public API by our visitors.
I heard several rest frameworks like Restsharp, Hammock etc.
Which one is best? Do you have any experiences with any of these? What...
I created a WCF service that has a method which makes a call to a SOAP web service over the internet.
In order to make a call to the SOAP web service, it requires that an X.509 certificate be sent with the HttpWebRequest.
The X.509 certificates are loaded in the Personal and Trusted Certificate store of the account which the service i...
Does anyone know if there an open-source .NET wrapper that can reliably parse the OData protocol Uri?
I'm not looking for pointers to WCF Data Services... I'm creating a WCF-based data querying service that (for complicated reasons) cannot be a real Atom/OData service, but I really like the expressiveness of the OData Uri for identifyin...
A company I work for develops winforms .net applications in which users are required to login. These applications are deployed in an online environment, e.g desktops in a LAN where the client app connects to a service on a server. The same applications can be deployed 'standalone' in an offline environment, where data is occasionally syn...
I need to implement IXMLSerializeable for custom serialization on 2 members, but I want the rest of the members to be serialized with the default serialization. Or at least, is there a way for me to invoke the standard serialization on the other members? The types of the other members are very large and deeply neseted classes, and it wou...