Oh boy, it's so close to realty ... ;-)
Natty Gur
Posts
-
MVP summit -
MVP summitI can bet I'll be the first to fall :-) So I'm bringing my wife to keep an eye on me.
-
The Palestinian/Israeli conflictWell, I usually don't like to participate in political debates but I have to say couple of words. First of all I'm living in Israel so I'm pretty diverts. I don't think that the blame is on Israel or on Palestinians. I do think that as every crisis the blame can be split equally between the two parties. I also thing that most of the palatinates and Israeli people just want to live their life peacefully, but there are small groups of extremes that knows how to keep the fire up. Any way I think that no one that lives here (Israel) can really understand what goes here. You can't understand such a conflict from 50,000 feet view. It's like Don Box that from 50,000 view throughout that COM is great solution but down from the ground it looks completely different.... :-)
-
MVP summitI wonder if someone is attending the nearest global MVP summit.
-
POST to outside legacy form?Scott Hi, 1)Add new Form without runat=server and set its Action attribute to new address. 2) catch the button event on the server and use Response.Redirect()
-
Execute-likeDo you mean Server.Execute ?
-
How to change remote service on runtime?Qin hi, You might use
Activator
:SessionInterface.ITryClass oObj = (SessionInterface.ITryClass)Activator.GetObject( typeof(SessionInterface.ITryClass),"tcp://localhost:1967/TcpSession");
-
System.Web.HttpException: The View State is invalid for this page and might be corrupted.Venkatraman Hi, Part of the form that you are sending contains the view state of the current page (the
__ViewState
hidden field), for thePostBack
machinery. While page is load on the server side the ASP.NET read the viewstate hidden field to set the controls value. Your problem is that the target page can’t translate the__viewstate
field to the target page controls and you get your error. To overcome it try to: 1) Remove viewstate, if you don’t use it. 2) Create new form with javascript that will send the necessary fields. 3) User server side event to catch the click. Use Server.Transfer to move into the target page. Send the Form data view Context -
sending a string value to a web siteIf I understand you, You can send the string using GET : http://www.m.com?MyString=data. You can handle it in the server side by using QueryString :
C#string mydata = this.Request.QueryString["MyString"];
-
Speed up port scan process...?by using multi-threading ?
-
Internet Web ControlsI find them very useful. You can find their source at: http://www.asp.net/IEWebControls/Download.aspx?tabindex=0&tabid=1
-
SessionsNo you cant. Session is part of application and every application got its own sessions (users). So, the best way to do it is to share data between two applications. The problem here is that every application living in its own application domain. Every application domain got its own memory address so you can’t share data between them. As far as I know you can overcome it using two methods 1) Using remoting to share the data. Slower 2) Using memory map file to share the data. Faster.
-
cast to c++ interface from C#public interface ICOSP_9054_Connection { object getConnection( ); } public MyClass : public ICOSP_9054_Connection { public: Object __gc* getConnection() { } };
-
create object with string parametertUsing System.Reflaction
-
_EVENTTARGETThe button ID should appear as a key in the
Form
collection. You should: Check the_EVENTTARGET
for data. if the_EVENTTARGET
is empty look in the key collection of theForm (Page.Form)
for one of the buttons. If you found one of them, he is the responsible for the postback. -
_EVENTTARGETYes, just the button ID will be return with the Form to the server.
-
_EVENTTARGETIt returns the name of the control id that fired the postback unless no one call the postback function. If a button is responsible for the postback the form will be submit without using the __dopostback.
-
Accessing Web Service through HTTP ProxyIf you use the HttpWebRequest class under the Proxy property you can find Credentials.GetCredential(..params..).Password or .UserName
-
Jagged arrays in MC++__wchar_t comma __gc[] = {L','};
-
What's the difference between VC++ and Managed C++?Managed c++ - the C++ code will be run under the CLR. you can take advantage of the CLR services and be aware of its limitation (for example the CLR control the memory allocation) COM - is a protocol used by Microsoft in the latest years (until the appearance of .Net) to enable communication, transfer of data and activation of components (DLL, EXE, OCX …) writing in different development tools and languages. As long as the provider and consumer support COM a communication can established between them. ATL (Active Template Library) - is a library that enable c++ programmer to write components that support COM with less effort. The ATL contain templates that encapsulate many coding issue regarding to COM and let you spend more time on your application rather on COM.