I am trying to get the HTML inside a HTMLElement which has an id "block".
I have tried:
If webbrowser1.document.getelementbyid("block") isnot nothing then
MsgBox(webbrowser1.document.getelementbyid("block").innerHTML)
end if
But it keep throwing a NullReferenceException and tells me to check if it null/nothing which is what I'm do...
I'm interested in getting solution ideas for a problem we have.
Background:
We have software tools that run on laptops and flash data onto hardware components. This software reads in a series of data files in order to do the programming on the hardware. It's in a manufacturing environment and is running continuously throughout the day....
Hi, I have a device that uses a custom scripting language. This language provides the capability to set http request headers then perform a post to a URL. The server that the device communicates with is running .net, and I would like the handler on the server to retrieve data from the device by simply pulling it from the Request.Files[] ...
When you can simply encode the data using HttpUtility.HtmlEncode, why should we use AntiXss.HtmlEncode?
Why is white list approach better than black listing?
Also, in the Anti XSS library, where do I specify the whitelist?
...
Hi
I have a simple hyperlink server control which i am trying to reference from my code behind page.
It is inside a Login server control (shows the username and password boxes to login) which has been converted to an editable template, and this is also inside a LoginView.
I can easily reference a server control outside of the Login co...
As shown in this screenshot, windows forms widgets appear different in design mode than they do in the actual runtime.
I'm using VS2008 Pro and my desktop is set to use the default windows-xp style. Why does .net insist on using legacy widgets? My google-foo fails to find a solution that doesn't require custom widgets or extended user...
I am changing the question as it appears to be vague.
I have an interface that forces implementation of n methods. Each method takes different arguments. I use 2 implementations, one in the DMZ and one in my application server. Call them Communicator and Handler, one sends it and the other implements it.
The interface is injected ...
I'd like to send a chipcard command (an APDU) to a chipcard and read the response from the chipcard.
Because there should be no extra install on the windows system, I'd like to do it within windows powershell.
Is there an easy way to do this?
...
I am trying to get the path to the currently logged in user's application data folder.
I'm using
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
But the path that is returned is:
C:\Documents and Settings\Default User\Application Data
I want the logged in user not the Default User.
The path I was expecting...
Hello,
I have Dictionary<long, Location> PostalCodes .
While i m adding new elements to this Dictionary I want to make a lookup to this dictionary and if the Location.PostalCode is not in this dictionary, I want to insert it. Otherwise I want to skip it. So , need to know if the PostalCode is already in the Collection. Cant use it as ...
I'm writing an ASP.net application and I'm working with the WindowsIdentity.GetCurrent() function. I want to know how (or if it's possible) to change what identity the ASP.net application runs as.
I eventually want to run it as an account associated with the end-user. I understand I can do this with Windows Authentication in IIS, but ...
I have an insert statement that pulls some data into a few table variables and then based on that data does a few inserts into several tables. I only care about the rows that are inserted into the real tables and not the table variables, but ExecuteNonQuery will return the sum of all @@ROWCOUNT's. What I would like to know is there a way...
I was wondering why my ClickOnce deployment contains the same .dll in multiple folders that reside on the client once it is installed. Im assuming its becasue the same assembly is being referenced by 2 different assemblies that are deployed.
That brings me to the next questions:
1.) Why? It seems like a waste to have the file there tw...
I know this is probably simple and has probably been asked before, but I'm having trouble coming up with a solution.
I am parsing some RSS feeds which include HTML as CDATA blocks. One example is here: http://g.msn.com/1ewenus50/news2
The feed changes a lot, but there are almost always some extended characters in it. For example if I m...
What is the best way to convert from a non-indexed pixel format bitmap to an indexed format in C# ?
...
So if it's toolwindow or a minimizable form, I want to be able to get its height programmatically.
Is this possible? If so how?
...
I'd like to access a web service with a given (simple) WSDL from within windows powershell.
Is there an easy way to do this?
...
I have a method that retrieves a set of records from a database.
I map this data to a business object - let's call the business object ProcessModel. One of the properties in ProcessModel is a list, called ProcessChildren. The property is List.
So, the data is linked by various fields/properties. There is one object at the top of the...
I'm writing a method in C# (2.0) that has to return a collection of simple objects. Normally I would do something like this:
class MyWidget
{
struct LittleThing
{
int foo;
DateTime bar;
}
public IList<LittleThing> LookupThings()
{
// etc.
}
}
However, I have to declare this method in an...
I have a scenario where I have a custom mapping class.
I would like to be able to create the new instance and declare data for it at the same time and implement a syntax similar to:
public static HybridDictionary Names = new HybridDictionary()
{
{People.Dave, "Dave H."},
{People.Wendy, "Wendy R."}
...