I want a method which gives an object for each and every instance of Internet Explorer, such that I can catch the text of the web page displayed in IE. I want to catch that text before it displayed on screen.
How to do?
I have created an "User Control" and using it around 10times on the same page, displaying 10 different datasets it works fine.
Now I have a button on the same user control and have to generate a number from [ 1 to 10] each time to know on what control the button click event has happened [Say for example when user click on "User Control-1, button the click event has to generate 1, if he click on "User Control 2" button, 2 has to be generated and so on..]. I don't know how this can be achieved.
How is this possible.....any help is greatly appreciated.
I did it in a different way, I have added a property to my user control and then setting that property on every usage of the user control on the page and in the button click using that property able to know which controls button has been clicked.
You are Doing String Concatination. The only thing that might cause this error is the "cmd" if you dont hava a statement above this code that says
SqlCommand cmd = new SqlCommand();
then that is a problem, because the incorect string concatination will not give this error descritption
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
Is it posible to declare the type of a generic at runtime?
I mean, you normaly would have to do something like this:
And I want to do something like this:
GenericMethod<(expression that evaluates to a type)>();
I have tried a few things but nothing seems to work.
MSDN's C# Programming Guide states that:
"client code must declare and instantiate a constructed type by specifying a type argument inside the angle brackets. The type argument for this particular class can be any type recognized by the compiler."
Dave BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
What kind of expression that evaluates to a type would you have there? Something with reflection? You could probably use reflection to invoke the method with an expression of the type Type, but I'm not actually sure. Reflection can do a lot though, so why not..
edit: If all else fails, there is still the possibility to compile and run a piece of code that has been generated at runtime. But I wouldn't use that except in emergencies. It's not exactly fast, or a clean design.
Last Visit: 31-Dec-99 18:00 Last Update: 26-Sep-23 3:55