Software Development Network Logo
  • Windows Forms
  • Smart Devicet
  • Windows Vista
  • VS Team System
  • Visual C++
  • Visual Basic
  • .NET Development
  • Visual C#
  • SharePoint Products
  • Visual Studio
  • Visual FoxPro
  • Microsoft ISV
  • IE Development
  • Game Technologies
  • SQL Server

Software Development Network >> .NET Development

.NET Development

New Question

how to associate a filetype with a windows service
Server-side EventLog
static constructor
serialport
detailsView and/or tableAdapter data manipulation
About implementing IDisposable for use Using statement
Not associated with trusted sql server connection
GAC temp and tmp
How to Find Yesterday's date
Xml File + DataGridView

Top Answerers

TillmanJ
Kingsonal
AndyQ
xplosiv_1
sooraj
Nlepor
SweptSquash
vkas7
neoret
zhihao
sitemap
Only Title

Answer Questions

  • mahioper Error using FTPWebRequest

    Hello, I want to upload a file through ftp, and I have a simple code like this: filename = "ftp://e-breadmaking.izr.com/Ebreadmaking/VR2/" + filename; Uri u = new Uri(filename); FtpWebRequest f = (FtpWebRequest)WebRequest.Create(u); f.UsePassive = false; f.Method = WebRequestMethods.Ftp.UploadFile; f.Credentials = new NetworkCredential("user","password"); Stream requestStream = f.GetRequestStream(); // upload file.... requestStream.Close(); but it raises an exception in the line Stream requestStream = f.GetRequestStream(); saying "Remote server error (550) ... " What is the problem Thanks ...Show All

  • valraj Custom datetime deserialization

    I'm developing a .net client, It acces to a java (axis) web service. The web service, return dates in a object in GMT by example: 2006-07-13T12:10:22.000Z But, by default, the proxy class generated in my .net client don't understand of timezones and don't parse it to my timezone. How can I do a custom deserialization Thanks in advance you can customize web services proxy generation process using a SchemaImporterExtensions.... you will have to create a class that extends from System.Xml.Serialization.Advances.SchemaImporterExtension and override one of its methods.... here you have an example: public override string ImportSchemaType(string name, string ns, XmlSchemaObject context, XmlSchemas schemas, XmlSchemaImporter im ...Show All

  • KDragon75 "The content of the response is text/html type instead of text/xml": problem consuming a Web Service

    Hi, i have a web service written in PHP, which is running on http://localhost:8000/server.php. It has a method, CalculateOntarioTax, which take a number and multiply it by 0.15; i tried to use it with ASP.NET. Visual Web Developer Express find the web service correctly, but, when i call the method, i get this exception: "The content of the response is text/html type instead of text/xml" and then, a long list of HTML code. Where is the problem Here is the PHP code of the server: < php require_once("nusoap.php"); $ns="http://localhost/"; $server = new soap_server(); $server->configureWSDL('CanadaTaxCalculator',$ns); $server->wsdl->schemaTargetNamespace=$ns; $server->register('CalculateOntarioTax' ...Show All

  • ceebee Access denied

    in .net 2005, when try to delete a folder using c# code. the folder becomes access denied. System.UnAuthorized exception raise, when i tried to copy a file into that folder.. This is not happening in .net 2003. i searched and try to solve , but not got the solution. A folder won't disappear after you delete it if any application has a lock on the folder. Windows will automatically remove the folder once the last lock disappears. One way to get a folder locked is when it is the default working directory for an app... this folder disappears when try to delete through delete_button click. the problem occurs when i enter already existing folder to delete in the starting ...Show All

  • neelesh0307 Accessing OLE2 streams

    Hi! I'm working on a project aimed to test if it is possible to read data/streams from an generic ole2 file with .Net 1.1 (C# or VB). Now i tried using the dllimport attribute and im somewhat stuck. but before investigating further on this matter, i wanted to figure out if it possible to do this with managed code. Though my first research turned out to be unsuccessful, i might have overlooked something, and maybe some of you know anything about accessing ole2 files with .net 1.1 managed code greets   nobugz wrote: Are you talking about the structure storage files you create with StgCreateStorageEx() and access with IStorage and IStream Yes that's right. The only useful hint I found so f ...Show All

  • Raulsassaa Help with Regex Pattern for Matching Files Ending with '.aspx' but not with 'Handler.aspx'

    Hi. I'm trying to make a regex pattern that will match all file names ending with .aspx, excluding any that end with Handler.aspx. So given these inputs: Login.aspx Login.aspx.vb Logo.png Default.aspx Default.aspx.vb MyHandler.aspx MyHandler.aspx.vb Global.asax Global.asax.vb I only want to match these: Login.aspx Default.aspx I've been trying to workout whether I need to use negative lookaheads or something, but I'm not following how to use them. Am I on the right track, or not Any thoughts, anyone Thanks, Scott i'd use ^\w+( <!handler)\.aspx$ w/ IgnoreCase ON assuming that u r validating the filenames one-by-one on a separate line: {^.......$} I am ac ...Show All

  • martok Changes made to multiple tables

    Hello all, This may sound rather silly (a newbie question...), but is there a way to have more than one table in a dataset, and to have the dataAdapter updated afterwards with changes that were made to all tables If not (as I believe would be the case), what is the easiest way to go about this Am I obliged to create a dataAdapter & dataset for each table if I wish to minimize the usage of dataAdapter.update dataAdapter.fill methods (initializing/filling the Dset & Dadapter upon Form load, then having a certain point to update, instead of updating with every click event and the likes..) Hope this was coherent enough , thanks for any answer.. Thanks, It works! Now, I suppose there's no way to do it with only one DataAdapter.. ...Show All

  • programmer01 Using Cookies/Session in MSXML / DOM Classes

    I have an access application that needs to download a set of XML files on a weekly basis. I then load this data into my applicatino. The developers of the site i'm downloading the files from have provided a URL to which you post an ilogin and ipassword variable. You are then supposed to get a reply of OK or failed. After authentication, session should be created with Session Key ("XMLSessID") passed as a cookie... I would then need to go and Load and Save each of the XML pages, using this authenticated session. Without embedding an IE browser into the MS Access application, how could i do this Thanks! -Ben Hi Ben, Take a look at XMLHTTPRequest - http://msdn.microsoft.c ...Show All

  • Ke Sun hi!! plz hurry up help ....i have a queue linklist data structure..

    hi!! plz hurry up help ....i have a queue linklist data structures.......now in this queue objects are being stored.....problem arises when........i use the peek() function returns the object from the begining of the queue ,,,,,means it returns the first object ,,,,,but i have to returns all the object means first object ,second object ,third object,,,,in this queue,,,,,is there any function in c# which returns all the objects of queue or is there any way to do it..plz write a code in this respect,,,,,,,,,,,, thank u... hi....well thx for reply but if i had to used an array why i should use a queue.....i am working in queue class and in a queue data structure.....i was the access all the objects of the queue ..as peek() function ...Show All

  • Michal Szalai Not the same Primary Key in DataTable and in SQL Table

    The database: I have three tables in a Microsoft SQL Server 2005. Those tables are given and can not be changed. The main table of those three is called spbTable and has a primary key (int) called spbId. Further settings of this primary key are: (Is Identity) = Yes Identity seed = 1 Identity increment = 1 The other two tables are dependent on the spbTable with the foreign key spbId. The code: I am coding a web application using C# (ASP.NET 2.0 and ADO.NET 2.0). I was generating three DataTable using the Designer of VisualStudio 2005. So I have three TableAdapter, one for each DataTable and each DataTable has its own sql commands. The code I wrote looks like the following: ...Show All

  • ghostnguyen Finding a record

    Why can it be simple when it can be complivated :) I am trying to achieve something that was so simple to do with ADO recordset. Lets say I want to find a record that starts with a value typed by user in a textbox. Find method of DataTable will allow me to search in a particular column, but only for a full match. Also, does ArrayList have this search functionality Lets say that we have bound datagrid to arraylist, and want to search for a row that its column value starts with some value DataGrid cant search in its data, as far as I have searched in its properties and methods... As I said before, RowFilter property is not a solution since FILTERS rows, and definetely cant be called a replacement for ADO F ...Show All

  • Nilesh Ingale how to solve this connection problem

    hello... when i open my connection(sql connection ) am geting this problem... can any one tell how to solve this An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) am using sql server 2000 for my database am getting this error how to solve this.. plz help me s i did as wat u said.... more over u said me to do with sql 2005 rit.. am not using sql 2005 am using sql 2000.. i even too did wat u suggested me before but still i have this problem.. here goes my web. ...Show All

  • pd_tch Windows Service and Web.config file

    Hi, I'm creating a Windows service and a web site for an application. Code in the windows service should query the database used by the web site. In other words both these application communicate with the same database. How can i read the "Web.Config" file (for database connection string) from the windows service Regards, SS Anand Thanks for the suggestions. But how can i share the same "web.config" file between web application and windows service. Regards, You can read a config file just the same wa you would with a Windows or Console application, using the ConfigurationManager class, to be able to use it just make sure ...Show All

  • Yaroslav Ivanov Problem using Left() in ASP.NET

    I am having problems manipulating strings. I want to take the first 15 Characters from a databind for example: <%# DataBinder.Eval(Container.DataItem, "Reference").ToString().Replace("-", "").Replace("/", "").Replace("(", "").Replace(")", "").Replace(" ", "").Replace(",", "") %> I have used the replace to replace some characters and take out spaces (Although ideally I need to remove all non-alphanumberic charcaters) Then I want to shorten the remaining string to 15 characters I have tried using Left(DataBinder... etc. but this just gives me a compiling error. Can anyone help me please ...Show All

  • Rabtok Ad Removal via MSHTML

    hey guys, i have an interesting quest ahead of me, i was wondering if its possible to load a website, and then parse out the ads ive been trying to look into adding ads and removing ads via MSHTML but no luck yet, can anybody show me some code or tutorials on adding ads and removing ads via MSHTML thanks for your time! I assume the web browser control gives you access to the raw HTML response stream. If so, you will then need to parse the HTML response and look for HTML IMG tags, etc that meet a specific set of criteria (ie. definition of an Ad). Since an Ad image can look (in code) just like an image from the page being accessed, you will need to come up with some heuristics to detect an Ad (perhaps look ...Show All

424344454647484950515253545556575859

©2008 Software Development Network

powered by phorum