I have a c# program that uses the Process class to launch Internet Explorer and goes to a url.
It then sends in specific strings to the search box of that page, copies the whole screen of the returned results, and processes it.
The problem I encountered is this:
I use SendKeys.SendWait("abc") to send the string to the page in Internet...
I want to inject some Json into the Html page returned by the server?
Is there a public function that returns the Json string when Json(someObject) gets called?
Note that I don't want to return Json to the browser in a seperate request. I want to convert an object graph to json and inject it into a script block.
Thanks
...
I've got a few projects that are configured for delay signing on development machines, and I want to configure the build server so that it doesn't delay sign release builds.
How can I do this?
I'm using VSTS/TFS.
The question is different, but the answer is what I need.
...
So I wrote this simple console app to aid in my question asking. What is the proper way to use a lambda expression on line 3 of the method to get the common members. Tried a Join() but couldn't figure out the correct syntax. As follow up... is there a non-LINQ way to do this in one line that I missed?
class Program
{
static void Mai...
I have a background thread that handles communication with an external service. Each time the background thread receives a message I'd like to pass it to the UI thread for further processing (displaying to user).
Currently I've made a thread safe message queue that is pooled periodically in Timer.Tick and filled in background thread. Bu...
Hello everyone,
Any C# function which could be used to escape and un-escape a string, which could be used to fill in the content of an XML element?
I am using VSTS 2008 + C# + .Net 3.0.
EDIT 1: I am concatenating simple and short XML file and I do not use serialization, so I need to explicitly escape XML character by hand, for example...
I am looking to expose my existing .NET libraries to an intranet.
With many moving to RESTful services, OpenRasta looks tempting.
In a similar vein, I am playing around with Sinatra in IronRuby.
I am primarily looking for 3 points:
1) What are you using to expose your existing codebase to the web?
2) What about your method makes it eas...
Hi there,
I have a webservice programmed in coldfusion which I'm attempting to consume using c#.net.
The particular webservices returns a coldfusion structure (a collection of items with a key and a value) which is exposed by the webservice as a complex object of type apachesoap:Map
<wsdl:message name="getDetailResponse">
<wsdl:p...
When using P/Invoke, adding [SuppressUnmanagedCodeSecurity] can speed calls from managed code into unmanaged code in trusted scenarios.
Is there a way to accomplish the same thing in the reverse direction, to speed things up when I call from unmanaged code back into managed code? Profiling shows a much higher overhead going in that dir...
I have seen some instances where people will say you have to use JS .style.display = 'none'; and that .NET .Visible = false will not work.
What is the difference between the two and why would something work with the JS and not with the .NET?
An example is http://www.componentart.com/forums/ShowPost.aspx?PostID=27586 (see the bottom pos...
I am creating a Visual Studio .NET plugin using DXCore for my group to use and have been trying to figure out how to open the plugin in a tab like source control does instead of it opening in a new window. Any Ideas how this can be done???
...
I wrote an extension method for String to get a char argument, string.Remove(char). But when I used this, it instead called the default string.Remove(int) method.
Shouldn't the presence of an actual method have higher priority than an implicit conversion?
...
Hello, I can't seem to find why this function doesn't insert records into the database. :(
I get no error messages or whatsoever, just nothing in the database.
EDIT: this is how my query looks now .. still nothing ..
connection.Open();
XmlNodeList nodeItem = rssDoc.SelectNodes("/edno23/posts/post");
foreach (XmlNode xn in nodeItem)...
These lines in C#
decimal a = 2m;
decimal b = 2.0m;
decimal c = 2.00000000m;
decimal d = 2.000000000000000000000000000m;
Console.WriteLine(a);
Console.WriteLine(b);
Console.WriteLine(c);
Console.WriteLine(d);
Generates this output:
2
2.0
2.00000000
2.000000000000000000000000000
So I can see that creating a decimal variable from a ...
I am rendering stuff with a Graphics-object in a picturebox inside the Paint-event for that picturebox.
void pictureBox1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
g.FillEllipse(color, x, ...);
etc etc......
}
Everything works fine but suddenly the picturebox turns white and ...
If you have a DataGridView that is bound to a DataView (someDataTable.DefaultView).
..and a number of edits are performed on rows in the underlying DataTable from code.
Is it possible to defer the updating of the DataGridView until you decide that you are finished editing rows?
As it is, the DataGridView is updated after every edit, w...
The company where I work has recently decided to use a combination of .NET and Java for all future development efforts. We've been trying to standardize how we organize our code into namespaces (.NET) and packages (Java) and no one really has experience trying to organize namespaces for multiple products involving multiple platforms.
Re...
Are there any tools (emulators, IDE) which can help you develop iphone apps using .Net on windows and then publish to iTunes?
...
Possible Duplicate:
Singleton: How should it be used
Hi all,
I am new to .net and in programming too. I want to that what is the real time scenario when one should use singleton design pattern.
Thanks in advance,
Anant
...
This is brought on by a previous question. Apparently ImageList doesn't support animated GIFs, so I'm stuck animating it myself.
I know how to extract the frames, but does anyone know how to extract the frame timing information from an animated GIF?
...