.net

List getting cleared every button click inside Update Panel?

No this isn't a copy of this question: http://stackoverflow.com/questions/654423/button-in-update-panel-is-doing-a-full-postback I've got a drop down inside an update panel, and I am trying to get it to allow the person using the page to add users to a list that is bound to a gridview. The list is a global variable, and on page_load I s...

GRant Access to write and read from a Folder to ASp.net application

Hello all, I need to allow my asp.net application to read and write from and to a folder. Could you please help me to do so. Regards, ...

AppDomain.CurrentDomain.DomainUnload not be raised in Console app

I have an assembly that when accessed spins up a single thread to process items placed on a queue. In that assembly I attach a handler to the DomainUnload event: AppDomain.CurrentDomain.DomainUnload += new EventHandler(CurrentDomain_DomainUnload); That handler joins the thread to the main thread so that all items on the queue can compl...

WinForms: Control ListView checkbox painting

It seems that the checkbox used in a ListView when CheckBoxes = true isn't a proper checkbox. It doesn't draw the MouseOver or MouseDown state and it doesn't support the Indeterminate/Intermediate state. How can I replace the checkbox with a standard checkbox control or take control of the drawing of just the checkbox so I can use the ...

Issue with T4 Templates for ASP.NET

I'm trying to get T4 to work with ASP.NET, however when I create a textfile and rename it to .tt, I don't get the option to run it Any ideas? ...

dotConnect LINQ to MySQL Issue

I am using dotConnect LINQ to MySQL and i have the following error. what would be the cause for this issue annot convert parameter value of type 'System.String' to MySQL type 'MySqlType.TimeStamp'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more informa...

How to iterate through ASP .NET textboxes using javascript and calculate a value ?

i have a multiple textboxes in repeater and i will enter value in those textboxes at runtime. and i want sum of all value entered in those textboxes in one label.i want to do this thing using java script. so can u please help me. ...

What groupbox method (if any) monitors radio button selections?

I'm creating a VB.NET application that includes two radio buttons inside of a groupbox. If the first radio button is selected, a certain tab on a tab form should be enabled. If the second radio button is selected, that tab should be disabled. Is there a groupbox method that monitors both radio buttons and fires when the selection chan...

How to resize a group of vectors in Expression Blend/WPF/Silverlight ?

So say for example I created a few small squares in expression blend. I then group them together by selecting them, right clicking and selecting "Group Into -> Grid" So now that they are in the grid, I'd like to be able to resize this grid and then they would resize but it doesn't happen, it just resizes the grid but leaves the vectors...

Inserting data into a Database

SO I'm making a "basic" login file where a person logs in and the data that person entered on that form gets transfered to another form aka my database/table. I think the problems is here but I'll post the rest of the code. CREATE FUNCTION dbo.Function4 ( parameter1 int = 5, parameter2 datatype ) RETURNS Table1 TABLE (UserName, P...

ObservableCollections in the ViewModel and IEnumerables in the Models?

Keep only ObservableCollections in the ViewModel and IEnumerables in the Model? Does following this general guideline make any sense? I'm thinking this is the way to go because the models don't care about updating the View with the RaiseNotifyChanged. ...

Need example for BouncyCastle PGP File encryption in C#

Hi, I'm trying to encrypt files using my private key (in ascii format) and any other public key (also in ascii format). The BouncyCastle library looks like the correct thing to use, but I cannot find documentation for C#. Could anyone please assist me with an example. Thank you. ...

File System Transactions using .NET on WinXP

I'm using WinXP on clients and Win2003 on a server. I need do atomic actions: create-moving files, insert-update database. Are there any good practices for file system transactions using WinXP? I know in Vista/Win2008/Win7 there are TxF transaction (NTFS) but not in WinXP. I don't want use COM+, neither other complex solutions. Only n...

Uml library for .Net

I'm looking for a .Net class library to load UML models (the more serialization formats the better) for an application I'm developing. I only need the UML object model, no graphs, graphic, UI or anything like that. Currently I'm using NUml, however that library hasn't seen much maintainance in the last few years and is somewhat outdated...

Including Data From DropDownList Into Gridview

I feel a little embarassed posting two questions relating to the same problem, but the first one ended up answering a question that I believe is unrelated to the solution so I'm leaving it up and outlining what I'm trying to accomplish with the hopes that someone can help out a .Net noob. What I need to be able to do is create a field i...

Adding arbitary links in a RichTextBox control

Is it possible to add links that will just be links, i.e. not urls or file links but thinks like: click me, do something etc Is this possible? IF so, how do I do this? Basically I just need to mark certain text inside the RichTextBox as links so I can perform operations depending on what link is clicked. ...

How to get the current line in a RichTextBox control?

Say I clicked somewhere inside a RichTextBox control. How can I get the current line the caret is currently on? Btw this is to retrieve the whole text string of that line. ...

System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse request failed with HTTP status 404

I am trying to make some enhancements to a production web app. After quite a bit of unit testing on my WinXP IIS 5.1 development machine, everything works on my localhost so I used the Visual Studio 2008 PUBLISH dialog on my Dev PC to push the following projects to a staging server: the primary web app the "primary" webservice (the hom...

How to publish via ClickOnce from one domain to the other?

Hello I am trying to deploy an application via Clickonce from one domain, where I'm logged in as DOMAINONE\Irwin to another, where I am granted permission via DOMAINTWO\deployer. When I try this, Visual Studio (2008) reports: Unable to access \\DOMAINTWO\publishfolder. Any advice on how to accomplish this? ...

.NET library for generating javascript?

Do you know of a .NET library for generating javascript code? I want to generate javascript code based on information in my .NET application. I would like to be able to create an AST-like datastructure (using C#) and have it turned into valid javascript. I need to be able to create functions, statements, expressions etc., so I need som...