.net

Creating a Directory on a remote machine using VB.NET

How can I create a directory on a remote server using .NET? Both servers are running Windows Server 2003. I have looked at the system.IO.directory class, and FtpWebRequest, both of which don't seem to do what I need. If there isn't an existing method for this, I should be able to form a VPN tunnel, map the drive, and use directory.copy,...

Is there a standard way to store arbitary settings in an XML file for use by .net?

Ideally I'd be using files of the same basic structure as an app.config and pulling settings buy so long as I can get any sort of "pathed" XML storage for settings I'd be okay. Ideally given something like : <Root> <ApplicationSettings> <Setting key="SomeKey", value="SomeValue"/> </ApplicationSettings> </Root> I'd call something ...

Setting a button's text to have some bold characters in WPF

I'd like to know if it is possible to define as the text of a Button in WPF, something like: a b c I've tried setting but that doesn't seem to work. Is it only possible to use the Bold tag with FlowDocuments? Thanks ...

WinForms Invoke/BeginInvoke

I have a C# win form where I read a file and show lines in a datagridview. Everything works fine.. and I use delegate and Invoke for displaying the lines as they are being read. It also shows a progressbar and does some other stuff like calculating line length and parse the lines to extract certain fields from each line. Just curious, i...

Programmatically turn off the automation features of windows speech recognition?

I'm making a program that uses the system.speech namespace (it's a simple program that will launch movies). I load all of the filenames from a folder and add them to the grammars I want to use. It's working remarkably well, however there is a hitch: I DON'T want the windows speech recognition to interact with windows at all (ie. when I s...

c#: How to change title of FolderBrowserDialog using P/Invoke?

FolderBrowserDialog displayed a text "Browse For Folder" as the title. This Link says that using P/Invoke we can do that. Whats that? How to use P/Invoke for this? Is there any other way also to change this? ...

how to prevent jerk in chat application - vb.net

there is jerking in text in my chat application (particularly in IE) as i have set timer for refresh the content for each one second how to prevent this ...

Menu control in Child master page cannot be accessed in content page in nested master page senario.

I have a nested master page scenario where i have a menu both in main master and in the child master page. Now if i try to access either of the two... both are not accessible in the content page. I am using this code to access it. The variable n is getting null value. Menu n = (Menu)this.Master.FindControl("Menu1"); ...

.NET Localization problem

I have an .NET application with satellite assemblies containing resource to be localized, but I want to leave the localization work to the customer, could I sign my application with strong-name and then deliver the application binary to the customer and let they do the localization job on their own? what else do i need to do? thanks a lo...

Passing Textboxes from 'form' to stored procedure is resulting in errors

I am passing form values to stored procedure parameters and it appears I may have some data type issues. The stored procedure has been tested thoroughly and is working great, so I will just include the parameters from the stored proc. I'll also include the aspx and code behind detail below. I am VERY new at this, so any help on why I a...

What to do if one detects flaw in architecture of the software

Currently our team of 11 people is working on a project on asp.net platform. Timeline for the project is of 8 months and we have already done 4 months. Now working on new functionalities we find that there are some flaws in the architecture of the system due to which we are facing lot of problems. Now whom to look-up for solving this ......

how to call EPO(European patent Office) web service to get weekly updates using c#.net

I am developing an application which calls EPO webservice to fetch data and it inserts to the database. Plese can anyone let me know how can i get weekly updates from EPO calling their webservice using c# Ref wsdl url : http://ops.espacenet.com/OpenPatentServices/end-of-life/webService/getPatentData?wsdl . ...

How to solve '...is a 'type', which is not valid in the given context'? (C#)

i want to call this class from my Winform.But if i write this codes. Compiler send me error. What is solution. Please help me Error : 'CERas.CERAS' is a 'type', which is not valid in the given context using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WinApp_WMI2 { public partial clas...

How can i use Linq / Linq to Sql to do this?

Hi folks, I have an audit table and I'm trying to use Linq to figure out how to grab all the people's more recent audit actions. I'm just not sure how. Sample Schema Audit Table (technically it's actually a view) AuditId UserName Action CreatedOn 1 Bob Action1 2000-01-01 2 Bob Action2 2000-01-...

Browser close event in .net

is there any way to find the browser close event in asp.net ...

How to update a running asp.net application ?

We have a running asp.net application which is accessed by various offices of the client worldwide (around 42 offices in 12 countries). Now after 8 months of hosting it we have to include updations in 6 pages and addition of 15 new asp.net pages. Now is there any way by which we could update the existing upside without taking it offline ...

Entity Framework. Saving Changes event. Navigation properties are nulls.

Hi! I'm using Entity Framework. Registering the handler for the SavingChanges event, for the further processing deleted entities. public partial class MyModel { partial void OnContextCreated() { this.SavingChanges += new EventHandler(onSavingChanges); } private void onSavingChanges(object sender, EventArgs e) { Obj...

C#: How to load assembly from GAC?

I have "mycomp.myassembly.dll" in GAC but Load and LoadFrom throws file not found exception and LoadWithPartialName returns null. I'm doing the following: AssemblyName name = new AssemblyName(); name.Name = "mycomp.myassembly.dll"; Assembly assembly = Assembly.Load(name); fails with FileNotFound for mycomp.myassembly.dll ...

Expanding an existing ASP.NET 1.1 application using ASP.NET MVC

Currently I'm working with a big, old and extremely poorly written ASP.NET 1.1 application and the continuous maintenance is becoming quite a problem. Basically it's reaching breaking point and I'm reluctant to expand it any more than I have to as demanded by the business. Based on my experience creating other projects from scratch it wo...

How to check for special characters using regex

Hi I am using c#.NET. I have created a regex validator to check for special characters means I donot want any special characters in username. The following is the code Regex objAlphaPattern = new Regex(@"[[email protected]]"); bool sts = objAlphaPattern.IsMatch(username); If I provide username as $%^&*asghf then the valid...