Answer Questions
Krutika How to connect to remote computer by LAN
Hello In VB6, I was connecting to another computer by LAN using Microsoft Winsock Control and I was making conversations between computers. Is there better way to do it in VB2005 Thanks the examples shown in the links given can achieve this :-) of course you need to have a client/server app going on, again as shown/demo'd in the doc's in order to send and recieve data Can I do in one project Why does it need two projects (Server and Client) I want to do it by IPs. I mean I want to send a word then the other receives it. Example: I have two computer, IP of the first is "192.168.0.1" and the second is "192.168.0.2&quo ...Show All
FannwongCindy Web.Config
Hi there, I have used the sample website which is already made for you (With Web.Config) when you load it in visual web developer but after I upload the whole website to the web. The website cannot find the .aspx file. The webserver does allow ASP.Net but it still cannot find a aspx webpage.. Could anyone come up with a solution or what might be my problem Thanks, AliQ Hi Ali, it looks as if you are just starting with ASP.NET. This forum is for ASP.NET Web Services questions, not for general ASP.NET questions. I suggest you ask your question here: http://forums.asp.net/15/ShowForum.aspx Clemens ...Show All
GrandpaB GetChanges() always returns null table
I have a database with two tables. ContactInfo (Contact ID int (PK), Last Name varchar(50)) AltAddress (AltAddressID int (PK), Address varchar(50), ContactID (FK)) I'm wanting to display and update related in text boxes on a form. Each ContactInfo entry will only have one AltAddress entry. I've added the text boxes from the DataSources windows and it creates two Binding Source objects. ContactInfoBindingSource(dataSource = testDataSet, dataMember = ContactInfo); AlternateAddressBindingSource(dataSource = contactInfoBindingSource, dataMember = altAddressContactID_fk) This works for displaying the data correctly! My problem is when I try to get changes to the altAddressTable, it always returns a null table. Here is the line ...Show All
joss1974 XmlValidatingReader does not give any validation error
Hi I am using XmlValidatingReader to validate my XML with schema. There is a particular validation error that does not appear when I use the XMLValidatingReader, but it is shown when I try with XML SPY. I am sure XML spy is right in this particular case as I can see manually that the schema does'nt allow a particular element and it appears in the XML document. Is this a bug in microsoft If you need more details, please let me know. Below is the XML file I am trying to validate < Command > < Step > < Para > One or more of the following may be evidenceTAT probe icing: </ Para > </ Step > < List > < ListItem > < Para > autothrottleand Referenc ...Show All
rternier XML File Comparision USing VB and storing the result in thir file
HI, I need to Compare to XML file and highlite the difference in the original file.Can any one help me on this as i am new to VB. Regards, Prashant Check out the XML diff and patch tool . Hi Martin, Thanks for the reply, but i need to write code in VB to make XML file comparision work and highlight the result in main file. IN this case i need the code Regards, Prashant Xml Diff and Patch 1.1 comes with full sources and XmlDiffView sample application. ...Show All
Johnny Liverpool How do i send email in both HTML and text format?
Does anyone know how i can send an email with two bodies - one in HTML which will be displayed if client supports HTML, and one plain text message that will be displayed if the client does not support HTML .net 2.0 has the MailMessage.AlternateViews MailMessage message = new MailMessage( "jane@contoso.com", recipients, "This e-mail message has multiple views.", "This is some plain text."); // Construct the alternate body as HTML. string body = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"; body += "<HTML><HEAD><META http-equiv=Content-Type content=\"text/html; charset=iso-885 ...Show All
CodePfo Evaluate a string Expression
Hi, I have a table which has expression as a column and the data looks similar to the following . ID (int) Expression (nvarchar data type) 1 8*(1/2)-6 2 278*(1/4)-2 3 81*(3/5) +4 I now have the expression as an nvarchar. (Ex: 8*(1/2)-6) Now I need to evaluate this expression and output the result (which is -2 in above Ex) .Can someone give me idea on how do I evaluate the expression which is available as a string. I am unable to cast/convert nvarchar to float/int for evaluating.I can either write a SQl Server procedure or implement it in C#.NET to accomplish the task. Any sample code would be greatly appreciated. ...Show All
Jason D. Camp Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource
Hi Yes, it's another one of these - sorry but I'm fairly new to this. I'm getting the following error, when trying to display some XML code on a browser and can't see where I'm going wrong: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource 'http://localhost:2999/Exam/Exam.aspx'. L... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "&.. I'm using t ...Show All
allpdoff How to use pointer to "ref class Form1 : public System::Windows::Forms::Form"?
I pass the the pointer of ref class Form1 to an non-ref object. (It has to be non-ref as it derives from generic code that has to work on non-.NET platforms, as well). E.g: System::Void Form1::insertToolStripItem_Click(System::Object^ sender, System::EventArgs^ e){ //Display is global object Display.Event_Insert( this ); } The pointer is then used to create graphics. E.g: void SNetDisplay::Event_Insert(System::Windows::Forms::Form^ const aDisplayForm){ // iDisplayForm is of System::Windows::Forms::Form^ const * type iDisplayForm = &aDisplayForm; Graphics^ g = (*iDisplayForm)->CreateGraphics(); ... It works fine as long as code doesn't display another window dialog or message box, for example using ...Show All
David Luu Find/Select Methods in vb.net
Hi, I already know how to use this methods. What I don't know is if using them, will change the position on the DataSet In other words, after the Fill method is applyed, if the Find/Select methods are used, what happens to the DataSet position How can I determine the position on the DataSet Lets say that I found one particular row on the DataSet that matches my conditions (sql expression - key) and want to make this row "the current" (to move the "pointer" to that position). I only fill the DataSet at the beginning, must I do it again I'm using the DataSet/TableAdapter/BindingSource in VB 2005 Express. Please Help. Regards, Pedro Hi, To add to what kdrad ...Show All
bndgk1337 Newbie questions- Help doc
Hi, I have came across mdbg, should say is a very inetrestiong tool for IT people, opened the mdbg project ion VS 2005, added a reference to GUI project, compiled launched it on the commande line, typed Load gui and everything is working perfect. 1st question : why the GUI extension is not referenced in the main project mdbg by default 2nd question which the real question : is there any article or doc that explains HOW TO USE THE GUI. there is OPen source, Launch and attach and don't know really where to start for debugging an VB or C# exe or dll0. Thanks in advance. We view MDbg as just a sample on how to use the managed-debugging APIs (ICorDebug). VC# Express is a free download and signifi ...Show All
Venkata Bayanaboyna Architecture issue similiar to Device.IsHandlingEvents
As we all know there're some issues with Device.IsHandlingEvents, so we usually set it to false at the first line of our code. I'm writing a small graphics engine and I'm facing a similiar issue: If I want to hide the device lost/reset housekeeping job, my object must handle these events from the d3d device. But if my object handles these events, the d3d device will hold a reference to my object, that means it won't be garbage collected as long as d3d device lives. So the finalizer fails to be a safe-guard in case Dispose() is not called. I currently have 3 ideas: 1) Keep it that way and make sure the user calls Dispose()...sounds quite prone to memory/resource leak. 2) Expose OnDeviceLost()/OnDeviceLost() like D3DX objects. .. ...Show All
raghu_grdr Is this a bug , any one can tell me?
I found a bug when I am programing: when I use like this: " ".IndexOf(" ") is returns -1,when it should return 9; but " ".IndexOf(' ') is OK. and belows all worked well: " ".IndexOf(" "); " ".IndexOf(" "); " ".IndexOf(" "); My environment is : Windows XP SP2(English Edition + Mutil-Language Pack) + .NET Framework v2.0.50727+Visual Studio 2005 PS: It works well in javascript. I understand your examples with double quotes all around. The thing is here more about simple quotes versus double quotes. Do you mean that the character between simple quotes is not unicode Why would the search work for it with simple quotes and not double quotes...... Actually, it is entir ...Show All
Hikmer xsd.exe fails to create common data types out of nested schemas
Hi, with the contract first approach we have some xsd schemas as the core interface definitions. We outsourced common data types (enumerations and some length limited string types) in a shared common.xsd file which in turn is <import> ed into the top level xsd schemas. We tried to generate .cs code files with xsd.exe in this scenario. But all the generated code files repeatingly contain the common data type definitions. This leads into several compiler errors. Using different namespace delcarations for each generated class does not solve the problem: The shared character of our common data types is completely lost after code generation with xsd.exe ! It seems to be a popular problem, because shared data types is a commonly u ...Show All
Bear23 creating web method dynamically
i have created web services Project.asmx. i want to create a web method dynamically, Means, if user add new state then once more web method should create using some tool or code whatever...we no need to go on visual studion 2005 SDK to create web method. is it possible to create web method dynamically Waiting for your reply I am not sure what you mean by "we no need to go on visual studion 2005 SDK to create web method." but there are two things here. 1. If you know the signature of the method before hand you can create it statically. This will be the most performant. 2. If not, use Reflection or codedom to create the method on the fly(at runtime) ...Show All
