I have a .NET 2.0 app (using C#) that shows some dynamically constructed HTML pages, some of which contain Silverlight. Here's a simple example of the HTML (Note, I am using absolute paths):
<html>
<head></head>
<body>
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" he...
Using Web Browser control or http request in C#, when a website creates a cookie (or tries to), is there a way to capture and display that cookie?
...
On Windows and .Net 4.0 What is the best web based log viewer that is free / open source.
...
HTML and XML are not same just given for illustration.
For input HTML file
<p class=MsoNormal style='tab-stops:.5in'><b><span style='mso-tab-count:3'> </span></b><b><span
lang=AR-SY dir=RTL style='mso-bidi-language:AR-SY'>عزت
ابراهيم
ا...
Hi folks,
while looking at Shrinkr's source code (we all review other project's source code to learn, right??? :) ) I noticed the following kewl code .. (abbreviated by me, below)
public virtual Foo Foo
{
get;
set
{
Check.Argument.IsNotNull(value, "value");
// then do something.
}
}
Notice the fluen...
This is the command line I want to use inside my VB.NET program. Look for the running process "mpc-hc.exe" and get the commandline of the running process
wmic process where name='mpc-hc.exe' get CommandLine
I want to retrieve the output from that command into a string. I know that it could be done natively in a VB.NET program and I ha...
I'm implementing some custom serialization (to byte array), and have run into a problem handling circular references.
Example:
Class A
public MyBs as new List(of B)
end class
class B
public MyParent as A
public MiscInt1 as integer
public MiscInt2 as integer
end class
When serializing A, I must serialize each instance of B....
I am working on WCF client-server app. where the client has to be constantly synchronized with the server (at least every 10 seconds). At the moment I'm polling the server to see if anything has changed. If so, the changes (sometimes tens of db records) are pulled down to the client.
My design felt a bit clunky so I had a look at how g...
I have Visual c++ 2010 express installed. I develop some apps with it (mainly console based for now).
I usually compile via the cl.exe command line option. Does these apps that I compiled with Visual C++ require .net framework to run?
Also what exactly is the object code file?
Lastly, I know that mono has Windows Form 2.0 fully imple...
Hi friends, I am new to wpf.I want to apply animations for r1,r2,r3,r4,e1,e2. I have to access these object names in my .xaml file for writing storyboards so that i can apply animations.How can i acces these object names in .xaml file? Can you send me sample applicationsfor how to create dynamic objects and how to access it into .xaml fo...
Are there any tutorials around for how one would go about creating a control that can be bound to a DataSet? I can't seem to find anything much about it on Google.
I've tried this, where my control has a DataRowCollection property called Items (and a dataset called ds, containing a single table):
ctrl.DataBindings.Add("Items", ds.Table...
I have a situation where I user IoC (WindsorContainer) in a .Net web application, and in the Global.asax I register my container, but straight after I register my WindsorContainer I also need to Instantiate another Class (Oauth) in the Global.asax.
However because I use the Sharp Architecture and Nhibernate on IIS7 it makes the situatio...
Hi,
I have a WPF .net4 app with a webBrowser component that navigates to a local HTML page that uses a CSS file.
When I navigate to the page using IE8 the CSS styling is corrrect, but when I navigate to the page in the webBrowser component the CSS styling is wrong.
Am I wrong in thinking that the webBrowser uses the same activex as IE...
I want to add the current date/time to an XML document
So i use something like this
XmlAttribute receivedDateTime = SettingsFile.CreateAttribute("ReceivedDateTime");
receivedDateTime.Value = DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString();
Debug.WriteLine("Adding Date Time in addMessage method : " + Da...
Possible Duplicate:
How does Object.GetHashCode work when the GC moves an object?
The garbage collector in .NET moves objects, so the object's address is not stable. How is Object's GetHashCode() method implemented?
Thanks!
...
How to know whether the mouse is moving over the particular control or point on screen..
Dont ask me to use mouse events of controls..
i want to trace points
in windows form....
Actually i have a combobox and some items in there in the combobox,
when the mouse moves over the items when the combobox is dropped down state,
the tooltip ...
Hi friends,
Assume we have three different ASP.NET web applications in our intranet, that all of them have a login page and after authenticating user create a cookie for authenticated user.
Is it available to have one page as a login page and create that three application's cookie from here and then redirect user to demanded application?...
In .NET the Integer Parse methods are useful for converting a string to an int, but the string must be a valid integer without any extra characters. Is there a function that will convert the integer portion of a string to an int and ignore everything else in the input string?
I'm looking for something like this:
int x = ConvertFunction...
I can check for a DBnull on a data row using any of the methods.
Either by using
if(dr[0][0]==DBNull.Value)
//do somethin
or by doing
if(dr[0][0].ToString().IsNullOrEmpty())
//do something
In Both Cases I will be getting same result.
But Which one is conecptually right approach. Which was will use less resources
...
I have a ILazyComponentLoader that registers any type on demand. My container also has an IModelInterceptorsSelector. When I resolve an unknown type, the ILazyComponentLoader is invoked correctly and then the IModelInterceptorsSelector is also invoked and returns the correct interceptors, but the resulting instance (which is indeed creat...