Answer Questions
TheBlackhorse A potentially dangerous Request.Form value was detected from the client
We have a DOT.NET app that we paste info into. Sometimes the text contains characters which seem to offend dot.net. So the application breaks. How we intecept these breaks and then decide for ourselves if the content is really "potentially dangerous" or not The same string even breaks this "post a new message". I disagree, while it does mean there are more threads that show up in a search (the actual post count doesn’t really change though), it means that your new thread will show up at the top of the list so more people can assist in answering it instead of hoping that one of the previous posters to the previous thread (the only ones who see that the thread has been posted to directly) check it and help... s ...Show All
Tex-Twil How do I pass a variable for the sheetname parameter of the "Insert Into" command?
I have a spreadsheet with 5 worksheets each named after one of our plants. The Insert Into command works fine with the sheet name hard coded in but I need it to use a variable (sPlant) How do I re-write this line so it will use that variable for the sheet name Thanks Private Sub Add_Record( ByVal source As Object , ByVal e As System.IO.FileSystemEventArgs) Dim en As New CultureInfo("en-US") Thread.CurrentThread.CurrentCulture = en Dim uFile As String = e.Name Dim TheDate As String = DateTime.Now Dim sFolder As String Dim sPlant As String Dim sFile As String Dim iUpper As Integer Dim PathPiece() As String = uFile.Split("\ ...Show All
Muhammad Adel how to get device info?
in manageengine.adventnet.com when you add a device to monitor using the device IP address it detects few details like the device name and model. how can I do that in C# well, i tried it with 1. LightPoint 2. Cisco Routers and I am getting the exact name and model, for example if I add an IP for a Cisco router it adds (Cisco 2500) Which product are you talking about ...Show All
Khilji Web Service: What approach should be taken to return "UNRELATED EXTRA DATA" from web method as response
Hello People, I am working in a web application where business operations are exposed as Web Services (internal at present) and the Web Client consumes the web service for ALL activities. Of course, there is a business layer that executes the functionality. All the web service does is to accept and validate the request, invoke the relevant business method(s) and return the operation response. One of the tricky situations I facing now is to return "Unrelated Extra Data" as response to an operation. I will explain this with an example... ------------------------------------------------------------------------------------------ Consider "Customers" and "Contacts" for each customer. A Customer has details such as address, web sit ...Show All
evilc What happens underneath the BulkCopy Object of ADO.NET 2.0
Hi , Does someknow how does new Bulkcopy work in ADO.NET 2.0 What happens underneath because of which the performance gets better with BulkCopy Regards, Anjana There are a number of reasons why bulk-copy is faster. Here is a summary: No per-row statement execution. When you do multiple inserts without bulk-copy, each insert is a statement in itself (regardless of whether it's batched together with other statements). With bulk-copy, we don't incur the cost of executing a statement for each row, the whole copy operation is a single thing. No multiple network round-trips. Once the bulk-insert operation is setup, we send rows from the client to the server continously, without going back-and-forth over the wire. ...Show All
TechNoFear -> CAS Security Question for Application Running on a shared drive
Hello, I have some problems getting a winforms application based on Framework 2.0 to work. I have the Executible on a Server (Network Share) and I want to run it from a client. Since MS decided not to ship the security settings GUI with FW 2.0 (but that is another story) I work myself through the dirt to get it done with caspol.exe. This seams very obious in the first shot but isn't. Maybe I am missing something and it would be great if someone could assist me. What I did was: caspol.exe -m -ag 1.2 -url \\ServerName\Foldername\ * FullTrust but in the internet I found tones of way to write this command so I tryed it with caspol.exe -m -ag 1.2 -url file:/// \\ServerName\Foldername\ * FullTrust caspol.exe -m -ag 1.2 - ...Show All
Ms_user How do I alter HTTP response?
Hi I am receiving xml (HTTP Response) from the server. I am capturing this message in the text box in xml format. My question is how do I read the below nodes and alter this message and send them back to the server as new request. From < Class > IR-LTR </ Class > < Qualifier > acknowledgement </ Qualifier > < Function > submit </ Function > To < Class > LTR </ Class > < Qualifier > poll </ Qualifier > < Function > process </ Function > The below is the Xml Replied from the server < xml version="1.0" > - < TalkMessage xmlns = h ...Show All
mrbelk Append at the end of an existing xml file?
I got an XML file, and I want add new data to its end, how I'm able to do that I use appendChild and save to do all my nodes creation and saving.Using .NET 2003 Thanks alot, you solve my problem in no times. If the XML file is a well-formed XML document then to add data to its end you need to read in the XML document, for instance with System.Xml.XmlDocument, then create and insert the new elements and call the Save method of the XmlDocument instance e.g. XmlDocument xmlDocument = new XmlDocument(); string xmlFileName = @"file.xml"; xmlDocument.Load(xmlFileName); // now add data e.g. XmlElement data = xmlDocument.CreateElement("data"); ...Show All
Mike P B How to reject addNew() or Update command on the "parent child data" mode?
Hi I use vb.net 2003 I make a data form with one XML file. I read XML file with dsName.XMLRead(file name) XML File is Parent Child format and one parent included many children. I use 2 dbGrid for showing these data and use many textboxes on the form. I Bind textBoxes to DataSet. for example: txt1.text ===> ds.tblParent txt2.text ===> ds.tblChild GridParent ===> ds.tblParent GridChild ===> ds.tblChild and more... when I click on the Add New Record Button, AddNew() running and when I input data into txt1 and then lost focus (txt1) a new record on the ds.tblParent Saved with this commands: EndCurrentEdit() & AcceptCahnges() when txt1 lost focus, txt2 (child record) got focus and for many record added with txt2. at the last ...Show All
cippyboy xsd.exe-generated classes do not serialize enum members properly
Hi Hi have a class generated by the xsd.exe tool (it's the wix.xsd file describing the WiX wxs file structure - not very important). More of the elements in the xsd file have an attribute of the YesNo simple type defined like this: <xs:simpleType name="YesNoType"> <xs:annotation> <xs:documentation>Values of this type will either be "yes" or "no".</xs:documentation> </xs:annotation> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="no" /> <xs:enumeration value="yes" /> </xs:restriction> </xs:simpleType> The xsd.exe tool mapped it to a enum: /// <remarks/> [System.CodeDom.Compiler.Gener ...Show All
Sweeps78 VWD 2005 Express:Compilation Error BC30002-Type 'Conc' is not defined in SqlDataSource, DataView, CType Function & Page_Load
Hi all, I have a database "ChemDatabase" with a Table "LabData" that has 4 columns (SampleID, SampleName, AnalyteName and Concentration) in my SQL Server 2005 Express. I tried to get a value of Concentration for a selected chemical Analyte from the Table "LabData" via SqlDataSource, DataView, CType Function and the Page_Load procedure in a Web page "Default.aspx" with "Default.aspx.vb" of my Web site "AverageTCE" in my VWD 2005 Express. When I executed the attached code, I got a Compilation Error BC30002: Type 'Conc' is not defined: Source Error: Line 9: Partial Class _Default Line 10: Inherits System.Web.UI.Page Line 11: Private SelectedConcent ...Show All
Tridex Config File, Tracing, and Custom Properties...
Here's a humdinger whopper doohickey that I'm sure someone has run into. I just hope that someone reads MSDN Forums and knows the answer. I am using an app.config file to set my tracing information. I am able to have the config file use an inherited trace listener that I wrote rather than a framework listener, but the problem is, I have properties on my listener that I want to set, and the config file isn't going to recognize them. How do I set the properties on my custom TraceListener through the app.config file I've got my fingers crossed... where's the programmer in shining armor who's going to ride into town, whip out his code manual and throw down an example before riding off in the sunset to answer the next brainteezer. ...Show All
sciFiFan howto converting millimeter to inch and viceversa?
Hi Community! Is there some built in functionallity in the framework, to convert millimeter to inch and viceversa especially I must be able to convert the millimeters to inch with fraction format like: 3,175 mm -> 1/8 " Background: My application is internally based on datatables holding collums with metric lengths, but the customer is used to inch and doesn't want to see mm :-( Therefore I must display all lengths in inch (fraction format). Also they must be editable in inch (fraction formatted). What would be the easiest way to get that done Thanks for help and hints Rainer Queck Is your problem solved Please mark the thread as answered if it is.... I'm not aware of a ...Show All
Mojosound C# - What is the Big Whoop?
Hello, Sorry if this is the wrong place for this question. I have been directed here from the question asking interface in Visual Studio 2005, under the Help menu. Recently, a headhunter told me .Net, especially C#, is all the rage. I don't understand why this is the case. My perception is most development these days is going to aim for a browser-based (i.e., 'web') interface for end users. That makes me think the most popular uses of Visual Studio 2005 would be for building ASP.Net data access applications, which points toward Visual Basic.Net, not C#, at least in my confused mind. Do I have this all mixed up If you are working with C#, could you write a few words about what you are using it for This would be extremely helpf ...Show All
omar_rapid How do I compile a Web Service
Please excuse my ignorance but I'm having some difficulty understanding the whole setup regarding Web Services in Visual Studio .net 2005. I have created a VS web site and used the Web Service template to create a Web Service. Everything works fine locally but now I want to move it to my production server. Everything I read says I have to compile the Web Service to a DLL. There seems to be no way of doing this from the Web Service Web Project. Am I missing something How do I compile a Web Service into a DLL Regards Jose, Can you send me the error you're receiving What about if you instead of adding the web reference try to directly navigate to the www.yyy.com/Dir1/Service.asmx do you ...Show All
