Answer Questions
AdeptBlue Raise event when “Html <DIV>” Change data, Ajax purpose
Ajax, When server send data to client html div, I want to raise a event or function automatically trigger once data arrive to “Div”. Something like “on change”. “OnAfterupdate” event only for datasrc it seems. Some one please help me to give a tip. Raise event when “DIV” Change data Or how to trigger a function automatically when the data arrives to “DIV” <script language="JavaScript1.2"> hex=255 // Initial color value. var inName=""; function fadetext(itemName){ if(itemName)inName=itemName; if(hex>0) { //If color is not black yet hex-=11; // increase color darkness document.getEle ...Show All
crussting newbie question
Hello, I'm new to asp webservices. Following Code public class CalendarService : WebService { private bool authenticated = false; private int userId; [WebMethod] public void Login(string user, string pwd) { //login logic userId = 1; authenticated = true; } [WebMethod] public User GetUserData() { return DataAccess.GetUserData(userId); } } If I login and call GetUserData after that, the service doesn't remeber the userId set at login stage. The User class is defined in a extern assembly. But on the client side vs generates a new class out of the original without the properties It contains a public string Username { get {return username;} } but the User object I receive from the webservice does not contain this property... ...Show All
doc203 Cannot Update...
I have an access database and I am using ADO.NET. I have created code to add a new record and it works fine. However, I cannot get this UPDATE code to work! it is bugging me so much! Heres my code: void btnSubmit_Click(object sender, ImageClickEventArgs e) { //string UpdateCommand = "UPDATE Meeting SET Name = '"+txtName.Text+"', Topic = '"+txtTopic.Text+"', Host = '"+txtHost.Text+"', Contact = '"+txtContact.Text+"', Location = '"+txtLocation.Text+"', From_Date = '"+txtFromDate.Text+"', To_Date = '"+txtToDate.Text+"', Start_Time = '"+txtStartTime.Text+"', End_Time = '"+txtEndTime.Text+"' WHERE ID = " + idIndex; string Name = txtName.Text; string Topic = txtTopic.Text; & ...Show All
Kevinmac Getting stream from Socket?
Im am using the following code to receive an object over a socket connection. How do i get the stream from the socket Socket listener = ( Socket )ar.AsyncState; Socket handler = listener.EndAccept(ar); // how do i get the sockets stream so i can go: BinaryFormatter bf; bf = new BinaryFormatter (); Astruct reci = ( Astruct )bf.Deserialize(stream); Can anyone confirm there is a problem with using .net serialisation using sockets across the internet RizwanSharp wrote: try this: See BitConvertor class and make your own Serializer and Desreializer that works fine on Internet Ready Application. ...Show All
Adrian Heath Problem retrieving Serialized Data
Actually, I'm serializing a Class (marked with [Serializable()] attribute) with a BinaryFormatter, but the problem is, when the thread that serializes the object is disposed I can not retrieve the Serialized data !! ... But right after Serialization I can simply retrieve the serialized graph !! ... And even when the program is disposed and spawned again, In case of calling BinaryFormatter.Deserialize(stream serializationStream) I'll get an instance of the serialized object but all of the properties are nulled !! ... I'm sure that I'm missing something ... !! Here's the Implantation of the BinaryFormatter : public static System.Runtime.Serialization.Formatters.Binary. BinaryFormatter bf = new System.Runtime.Serializati ...Show All
Ramanujam Sampath xpath evaluation
I have the result stream from a third party webservice as such < xml version="1.0" encoding="utf-8" > <soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema "> <soap:Body> <CompanyName xmlns="somehowhere"> <Date>10/10/2006</Date> <SubCompany> <Company id="3490561" serviceid="112233"><OnLine Code="OK">OK</OnLine></Company> </SubCompany> </CompanyName> </soap:Body></soap:Envelope> I tried using the xpathnavigator method but to no avai ...Show All
Keithyboy1 .Net Framework 3.0 hangs during setup
I've tried both the web and full dowloads (dotnetfx3). Both fail at exactly the same point: the screen show "Setup is loading installation components. This may take a minute or two". The status bar gets to about the 100% point, but then remains that way. The last few lines of the log show: [02/25/07,11:35:08] WapUI: Entering CFeaturePage Create [02/25/07,11:35:08] WapUI: CFeaturePage::PopulateTree: Creating a new CComponent Object... [02/25/07,11:35:08] vs70uimgr: CUIMgr::ThreadUI(): Finished creating the page. [02/25/07,11:35:08] vs70uimgr: CUIMgr::ThreadUI(): Getting the Header. [02/25/07,11:35:08] vs70uimgr: CUIMgr::ThreadUI(): Finished Getting the Header. [02/25/07,11:35:08] vs70uimgr: CUIMgr::ThreadUI(): Current page does ...Show All
cgraus Netframework 1.1 and 2.0
I am just a normal everyday home user that downloaded netframe 2.0. I have 1.1 and the hot fix for 1.1 on my pc. Do I need 2.0 on my machine When I go to control panel under "administrative options" everything is 1.1. I plan on upgrading to Vista soon so I was wondering if I was going to need it then. The other question is why does "admin. options" still just have 1.1 Thank you for your help in advance Tim shockley stepsx12@yahoo.com How do you change the class With the .Net framework it will still use the older classes, if a class was not changed with the new release it will use the older version, so use you will need the 1.1 system as ...Show All
Harkernator Xlink - How to use xlink in every browser ?
Hello, I must develop a site in pure XML. I carried out my first pages and I encountered some problems to create links between the pages. I used Xlink for my links, the simple version (http://www.w3.org/TR/xlink/). The links function correctly under Firefox 1.5, but impossible to make them function with Internet Explorer 6 or Opera 9. As that did not function for these navigators, I tried to implement another recommendation of the W3C, events XML (http://www.w3.org/TR/xml-events/). But here still, I did not succeed in obtaining functional links. The code is not interpreted as it should in Javascript. Here the code which I used: example.xml < xml version="1.0" encoding="ISO-8859-1" > < xml-sty ...Show All
Koruyucu Simple example that not works...
Server: namespace RemotingServerExample { public class SampleObject : MarshalByRefObject { public string HelloWorld() { return "Hello World!"; } } public partial class Form1 : Form { TcpChannel channel; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { channel = new TcpChannel(8080); ChannelServices.RegisterChannel(channel,true); RemotingConfiguration.RegisterWellKnownServiceType(typeof(SampleObject),"HelloWorld", WellKnownObjectMode.SingleCall); } } } Client: namespace RemotingClientExample { public partial class Form1 : Form { TcpChannel chan= new TcpChannel(); public Form1() { InitializeComponent(); } ...Show All
AdriaanDavel process.StartInfo.Arguments
I am trying ot run this programm from a windows form application but at command line it stops with message: "Reading passphrase from file descriptor 0 ..." and nothing happens. Same program run fine on command line with follwoing line: C:\Program Files\GNU\GnuPG>gpg --passphrase-fd 0 < c:\gnupg\passphrase.txt -o c:\HIF\Clock.swf -d c:\gnupg\Clock.gpg This is a command to decrypt the file using GnuPG encryption and decryption program. Any help is most welcome. Thank you. Bharat Gadhia. ================================= public void Decrypt() { string strArg = @" --passphrase-fd 0 < c:\gnupg\passphrase.txt -o c:\HIF\Clock.swf -d c:\gnupg\\Clock.gpg"; process.Start ...Show All
allison_h Needed: Socket
Hello everybody :) I'm searching for a good socket(Server/client). I know, in C# I can use System.Net.Socket, but I'm looking for something more easy. A socket that's free, multi-threaded(so that it can handle multiple connections if it's listening to connections) and it would be nice if it was open-source. Thank you, Nils A socket server generally supports more than one concurrent connection; but that's done through more than one socket. Often well-known ports are used simply to initiate a connection, thereafter a ephemeral port is used. If the "connected" protocol is such that it follows a connect-communicate-close model then ports can be reused. A socket library won't abstract the basic nature of sockets away; you'll st ...Show All
r1ck5-focus HttpWebrequest Post
Hello Im trying to upload a file to a https address using the getRequestStream method of the httpWebRequest class. The code appears to work fine and no exceptions are thrown, but the file does not appear to have uploaded to the server. The stream is working as it should. The server requires authentification via a public key, which i have and is installed. I have used the CreateFromCertFile method of the X509Certificate to add the certificate to the WebRequests client certificates. I belive this method extracts the public key from the certificate If I try and call the GetResponse method, an exception is thrown - The remote server returned an error : (401) Unauthorized. The URL is something like https://somesite.com:500/test/tes ...Show All
ZardoS42 Reflection on abstract classes
How do you do reflection on abstract classes I want to get the events in the abstract class. How do I go about doing it With instances you can get type information with the GetType() method. This mehtod return a Type object which you can use for reflection. The problem with abstract classes is ofcourse that you can't instantiate them. But you can use the 'typeof' keyword. This also returns a Type object. So if you have an abstract class called MyClass just use typeof(MyClass). ...Show All
piportill4 Error Launching the Framework MDbg debugger
I am having some difficulties with the Mdbg sample debugger so I thought I would try the Framework version MDbg.exe. 1. I launch MDbg.exe from a command prompt 2. Issue an "echo hello world" command 3. Works fine. 4. If I execute the following fragment then I can Issue the echo command and it works. Process process = new Process (); process.StartInfo.FileName = "Mdbg.exe" ; process.StartInfo.WorkingDirectory = Application .StartupPath; process.Start(); 5. If I execute the following fragment in which I pass the command arguments then it ends with "the system can not find the specified file" exception. Process process = new Process (); process.StartInfo.FileName = ...Show All
