Answer Questions
CostasZ Attribute inheritance and changing the attribute
If I have a property, method, or event, which has a particular attribute, of a base class, is there any way of changing that attribute in a derived class without creating a re-implementing the property, method, or event. By re-implementing I mean creating a new property, method, or event of the exact same name and signature. If the property, method, or event, which has a particular attribute, of a base class is virtual, is there any way of changing the attribute in a derived class without overriding the property, method, or event By overriding the property, method, or event In either case is it possible to add new attributes to the property, method, or event in a derived class without re-implementing the property, method, or event ...Show All
Steve St.Jean How to deploy web services created using Visual studio 2005 in IIS server
Hi, I have created web service using Visual studio 2005 and am trying to deploy it in IIS server. But my web service is created in local server only. How I can deploy it in IIS server how exactly do you mean deploy You should be able to just create a virtual directory in IIS and place all the files in there (.asmx/cs/bin folder) and hopefully that should be ok. The other thing you could do is create a setup project, and use this project to create an installer to deploy your web service, this would be better and more professional ...Show All
TheInsaneCoder The schema returned by the new query differs from the base query.
Well I'm trying to make a query but everytime I hit the 'ok' button when I'm done in the Query Builder it says the message that is in my title. What am I doing wrong :( Thanks in advance little bump :x I checked our internal bug database and this appears to be by design, you cannot add or remove columns from the query builder. Seems a bit odd, but there you have it. "Add a database connection to server poutine, database Northwind, ..." And how do I do this "Hence query builder is not very useful!" Is there another way to make query or querylike things then Hi all, I have this msg to ...Show All
Chris_Clark FileSystemWatcher watcher.NotifyFilter issue
Hi all, I am using the example from the MSDN Library for the FileSystemWatcher class with only a single change watcher.NotifyFilter = (NotifyFilters.LastWrite) ' Or ' NotifyFilters.LastAccess Or _ ' NotifyFilters.FileName Or _ ' NotifyFilters.DirectoryName) that is - I am only watching for changed events...(to text files). My problem is that when opening and saving the file the event is being executed 3 times for no obvious reason. I have read everything about the class notify filters etc. but cannot see anything wrong, can someone help I have disabled Windows Desktop Search/AntiVirus (security department not happy) etc etc etc but still get three executions - all one after the other. Can anyone shed ...Show All
crash33 how to associate a filetype with a windows service
suppose i have a custom file format with an extension. how do i associate that file extension with a windows service. suppose when i click on the file with particular extension '.dmz', the particular windows service is automatically invoked. should i use filesystem watcher component. Hi, Sure. Since you have your own filetype, you can associate the type with another program that you would need to write. This is a simple proxy that would then communicate with the Windows Service. You would not use the File System Watcher component - that's for monitoring when files get created/modified for eg. Cheers i do not want to exactly associate a file type to associated with a service. but i want the service to respond when i clic ...Show All
ejstembler Web Services - can only be used by other ASP.NET apps?
Can web services made with VS 2005 and published to an IIS web server (with .NET 2.0) be used by web servers not running ASP code Rob. 1st one is what I mean -- can you be more specific about "generally speaking yes". Example of how a web code from non-ASP web server would make a call to my web service And how the caller would read the results returned from my ASP.NET web service. The ASP.NET web server is SSL -- is SSL a road block for web services Rob. Thank you. Going thru the article Step 5. Install the Certificate Authority's Certificate on the Client Computer Is this step required Dev only or end user requirement Definitely a sho ...Show All
Steven Gilissen Creating List<> at runtime
I am trying to create a List<> at runtime as the type of the list is known only at runtime. I am unable to use a typeof() or TYPE within List<>. I understand that it is meant for a StronglyType scenario but i was wondering if it can be done in any way Thanks Suraj Guptha wrote: I am trying to create a List<> at runtime as the type of the list is known only at runtime. I am unable to use a typeof() or TYPE within List<>. I understand that it is meant for a StronglyType scenario but i was wondering if it can be done in any way Thanks If you don't know the type you can't create a List<> variable to directly use the List<> methods. It kinda defeats the purpose of generics; ...Show All
CBuilder Adding column to a dbf file
IDE: Visual Studio 2005 Language: Visual Basic Question1: "How would I alter a table (specifically add a column) that already contains data Question2: "If I am unable to add a column to a dbf file that contains data, then how should I approach this problem " Question3: "Should I use an alternitive way to read and write information to a dbf file (I am looking the quickest way to process data.)" Situation: I am trying to find away to quickly process information that is contained in a dbf file. Processing consists of removing records, adding records, and adding fields to a dbf file. Most important processing must be exceptionally fast. For example: I am currenly working on a way to programmically remo ...Show All
jturpin Going through every element on a page
Hi, I have elements dynamically created on a Web page (using ASP.NET). Some of them have a special attribute set. On the page load, I'd like to scan through all the elements on my page and if the attribute exists and is set, do some action on that element. All this in JavaScript. There must be a way to do this recursively right Any help would be appreciated. Thanks, Skip. I think that the .NET "Controls" array is just what you are looking for. In ASP .NET the "Page" object contains a property called "Controls". It is an array that contains all of the controls on the Page. You can find all of the controls on the page by writing a program that loops through the ...Show All
Robert Barnes Session_end not working
Hi Session_end is not working in asp.net1.1 and 2.0 how to work with this. actually i want when user close the browser automaically fire the session_end. then we need to maintain online users count. this is urgent requirement plz help me if any one know thx advance The forums at http://forums.asp.net will be better able to help you (see http://forums.asp.net/search/SearchResults.aspx q=session_end&o=Relevance ). Thanks. ...Show All
daimaku Cannot add a SimpleContent column to a table containing element columns or nested relations
Hi, i'm trying to populate my dataset with one XML and i get the error: "Cannot add a SimpleContent column to a table containing element columns or nested relations" There is the code: Dim ds As New DataSet Dim doc As XmlDocument = New XmlDocument() doc.Load(URL) doc.Save("players.xml") ds.ReadXml("players.xml") Can someone help me out please is there any kind of formatting i can do or other way to go around that issue It looks like your xml contains an element which has both text children (simple content) and other element children. DataSet does not allow a table to have both simple content columns as well as element columns. See ...Show All
Cory Cundy Updates Using the Entreprise Library DAAB
I am using the Jan 2006 Enterprise Library DAAB. One of the big benefits for me is abstracting myself from the database. I work for an ISV and our product must run on multiple databases. With that said I have been instructed to stay away from stored procedures. The dataadapter can create Update, Insert and Delete commands dynamically based on the Insert Command. I am trying to figure out how to dynamically create delete, insert and update statements using the DAAB. It appears that you to update using DAAB you must create your own commands. Therefore I decided to try and create a generic routine that would create these commands based on the columns in the dataset. I can cycle through the columns in the table to get the column names and ...Show All
Puntor SAPI - missing?
First off, sorry if this is somewhere else in the forum but I canot find it and at my wits end. First off, I have been beta testing Vista since Beta1, now have RC1 and have the Voice Recogition working. I am now trying to get my new Mac Pro with XP sp2 so that the Voice Recognition is working and having issues. I have a vs2005 project that has VR and TTS and works in Vista RC1, yet I have installed the .net 3.0 framework and all 4 items. So the issue is that my Vista project when copied to XP SP2 cannot find the file Interop.Speechlib.dll AND I think that I do not have SAPI installed but I have read that SAPI is part of the Windows SDK Does anyone have this issue How can I get the VR Control panel as in Vista Thanks ahead of time Brad ...Show All
Capt. KDS AcceptChanges
I obviously misunderstand the functionality of AcceptChanges() as my Access 2003 database is not getting updated when I do the following: MyDataSet . MyTableRow row = MyDataSet.MyTable.FindById(id); row.BeginEdit(); row.Name = txtName.Text; row.Email = txtEmail.Text; row.EndEdit(); row.AcceptChanges(); The 'row' is found (using the id) and contains the correct data. I've also tried calling: MyTableAdapter.Update(row) But still the update is not commited to the database Can anyone sched some light I know how to do it the long way, but I am trying to use the inbuilt .NET 2.0 functionality. Thanks AcceptChanges() should not be called before the udpate. Please r ...Show All
Hollispj What is the best way to do this - xml & ado.net question
Im recieving some data from a web service call that is in a format of elements with many attributes. Id like to pull this data into a DataTable, with one of the fields set to be a DateTime type. At present, im handling like so: - recieve xml response as string - parse xml into new format as elements with values (versus attributes) - use Dataset.LoadXml to load this xml stream into a datatable - (hack) create a datatable programatically and assign datetime type to one column - copy table from dataset into a DataRow [ ] array - then populate the new table from data in the DataRow [ ] - apply a sort expression to the default view of the new datatable - bind my dataview to my gridview control The above steps are needed because if the xml ...Show All
