Answer Questions
Coder25 Creating a Search using VB.NET and SQL
Okay, I have ran into a problem with my Search engine for my database i created in VS.NET (phonelist.mdf). I have an <asp:GridView> setup for the results. I have been trying to read up on SQL and implement my own search but here is what i am running into. I launch the program and it runs fine until it gets to MyCommand.Connection.Open() . The error is InvalidOperationException was unhandled by user , The ConnectionString property has not been initialized. Here is my code for the search. <% @ Page Language ="VB" AutoEventWireup ="false" CodeFile ="phonelist_search.aspx.vb" Inherits ="phonelist_search" %> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T ...Show All
Arun Narayan developing webservice on Dev server
Please let me know if this is correct. I would like to have a Web server installed with visual studio 2005. Develop web services in it. Then from the workstation where I develop apps, reference the webservices on the web server, as opposed to what I do now (Developing webservices in the same solution with the other projects). If the above is possible, then how do I referene the webservices on a webserver on the same network Is it by add webreference and enter the http address of the services in the web server Thanks On the client side you, of course, should add the web reference to the web service (it will create a proxy class for you). And it will automatically configure your config file and put the a ...Show All
Jonny Kievits Shutting down network computers?
I suspect that I once again have someone leeching of my Wireless router again and I can't connect and lock it for some reason. So I thought perhaps I could shutdown the computer who is leeching off my network As a lesson :P There are probably a lot of software out there that could do this but it would be nice to learn how I could create such software. really you need to implement security on your wireless router, such as disabling SSID and adding encryption as well as MAC Address filtering. This would all be done on your wireless router configuration page. In terms of developing it in C#, not entirely sure. you can shutdown a computer by using the Windows 2000 (I think or at least XP) and high ...Show All
Jimmy_fingers Custom Data Types
I am having trouble creating a custom data type. I would create a data type that will work like the standard data types in .net so I can using in the following manner. I am using vs 2003. Dim mt As MyType mt = Type1 How can I define a structure that will allow me to set its value this way. And how can I make intellesense list the available options. For discussion purposes my options would be Type1, Type2 and Type3 which would actual correspond to 1,2 and 3. Hi, I would also recommand that you use a simple enum, but if you really want a struct, this would work: Public Class Form1 Private Sub Button1_Click ( ByVal sender As System .Object, ByVal e As System . EventA ...Show All
comsult How to Manage Transactions
Hello, I have 2 different class.Each of them inserts 1 Row in 2 different Tables in my DataBase. Means Class 1 inserts 1 Row in Table 1, and class 2 inserts a row in Table 2. Now I want both of the queries must be fired. If single query is failed to insert row there should not be the effect of other. So I need to User Transaction with my Connection Object. But how to Use it when my Both classes are Different. And I can not mix both queries into one class as per the structrural design of my Application Thank U..... Logic in multiple classes could participated in a single transaction if all of them using same, previously openned, connection to the database. You need to pass connection as a ...Show All
CalinMac System.NET.AuthenticationManager
There is PreAuthenticate method in System.NET.AuthenticationManager. This method does nothing because it uses PrefixLookup class instance which never gets filled... This method is used by HttpWebRequest class in MakeRequest method. This method never adds Authentication header ... How to add Authentication info to HttpWebRequest without manual a adding header Sending credentials without being challlenged is a security risk. System.Net never sends credenatials on the *FIRST* request. You have to go through send - get challenged - send auth - success once. Once we know that the server indeed demands the auth, from the *SECOND* request on wards we do send the ...Show All
RudySchneider Embedding .dll file in Internet Explorer
Hi, I am experimenting with windows form. I tried to embed dll file in Internet Explorer and I run into Security Permission issue. The dll can't run. So I do some research and finally find a way to do it. Assign strong name to the .dll file. Then put the .snk strong name key file and .dll file together in a directory, use the .NET security configuration tool and increase the assembly trust to full trust. Then I am manage to run the .dll without any permission issues. But what I am not too sure is, since I wish to distribute this .dll file from internet through internet explorer, I believe not every user on the client side would have actually configure my .dll to have full trust on their machine. And if it is the case they would ...Show All
evaleah Volume Shadow Copy
Hi all. I assume that this is not the correct place to post this question. If so, please point me to the correct place. Here is my question: I want to create an application that will backup files. I want to prevent locking the files during the backup. So, I want to use Volume Shadow Copy service. This is what I need to do (I think so): - implement a requestor that will tell VSS to create a shadow copy of the specified files - get the location of the shadow copy of the files from VSS - backup the files from the shadow copy location. Can I make direct calls to the VSS API from c# (using PInvoke) Or I need to create a C++ library that will implement the requestor Any examples that can guide me Or maybe another a ...Show All
LTD How to call a aspx page from a exe file
Hi, Here is my problem.I have an application in which i enter data into database using one asp page.After the whole data is entered i want to start a exe file which executes some code and that data should be entered into the database and into a aspx page and i want that page to be displayed as soon as the exe file finishes executing the code. Can anyone help me out by telling how can we call a aspx page from a exe file. Thanks. You can call an aspx page using System.Net.HttpWebRequest class from .NET. Search for articles about screen scraping, this should get you pretty close for example: http://www.dotnetjohn.com/articles.aspx articleid=93 Might be easier to just create an asp.net web ...Show All
Ben Vanik Command in C# fr EchoOff & EchoOn...
Hi... What is the command for 'EchoOff' & 'EchoOn' in C# for SerialPort communication. I am developing one application which will communicate with one instrument & send/receive some ASCII text. Regards, Vinay There is no dedicated command for setting half-duplex or full-duplex communication. It is a feature of the application program and the device, not of the serial port communication protocol. Check for example the HyperTerminal applet, File + Properties, Settings tab, ASCII setup, "Echo typed characters locally". You would turn that option on if the device is operating in half-duplex mode and doesn't echo the received characters. ...Show All
Srdjan Out of memory exception (c#, .net 2003, large images)
Hi, I am developing an application (c#, .Net 2003, Framework 1.1) that deals with large images. The application captures multiple image frames and stitch them up into a large hige-res image. We are looking at 50+ frames and sometimes more than 100 frames of 1024x768 color images. I am also using double buffers for edit purposes. To get an idea of what this application does: beyond the image acquisition and stitching, it is very similar to Paint.Net ( http://www.getpaint.net/index2.html ) in providing tools to draw on top of the image. The program is hitting out of memory exceptions -- sometimes even with smaller images. Documentation on LOH seems to explain this observation well, especially with memory fragmentation a likely cause of ...Show All
El Bruno XML Parsing
Hello, I need a fast xml parser, that saves the data in memory after the first read, and lets read and update the data. the operation of searching a child element by name is a very common operation and I need it to be fast (in microsoft DOM implementation this operation is called SelectSingleNode(NodeName)) which parser should I use I want it to be fast, I don't need any more features (like schema validation or XSL transforamation). I also want my parser to use small amount of memory. thanks. Check out the Chilkat XML Parser to see if it meets your criteria. Within the Microsoft .NET framework you should use System.Xml.XmlDocument as that allows both reading and updating the XML. ...Show All
libra08 Error trying when remoting to a external server
Hi everyone; I’m creating a remote object using remoting, when I test the application into my LAN it executes correctly, but when I try to connect it to an external server, I get next error: System.Runtime.Remoting.RemotingException: Server encountered an internal error. For more information, turn on customErrors in the server's .config file. I’m creating the channel connection programatically without a config file and always get the same error. I was searching a solution without sucess. I hope somebody can assistance me. Thanks; I checked the firewall and I permit both incoming and outgoing data, but I get the same error. I think it is because my client machine is no visible fro ...Show All
samardjiev Deserialize XML that uses "False" instead of "false"
I need to deserialize a XML file generated by a third-party software. However, this software uses Boolean "False" instead of "false" and I get an exception when i deserialize it. "The string 'False' is not a valid Boolean value." How can i get the deserializer to recongise "False" as boolean Can someone point me in the right direction Thanks Hi, below is my deserializing code, sample XML to deserialize, and 2 classes uses. Thanks. how are you deserializing the xml could you show us your code to provide you with some help ...Show All
hotaruu Update without Parameter
Hi, Is it possible to write an update in ADO.NET without deffining my update with parameters In ADO we use to be able to create a connection edit the field and called the the ado1.recordset.update function. It's a lot of codes to update a database. Thanks. In ADO.NET functionality is split. A DataReader is only for traversing the result set. Consider using DataSet: http://msdn2.microsoft.com/en-us/library/system.data.dataset.aspx Zlatko Do you still have to use the update query with a SqlConnection like OledbConnection That's were I find that it's a lot of codes declaring fields, type, etc... Thanks again. .NET uses a disconnected ...Show All
