editing

.net mvc and editing data with forms

I have a form for editing gigs. The initial controller action is called "Edit". The form posts to a second controller action called "Update" So, once the form has posted, I use a bespoke ModelBinder which uses bindingContext.ModelState.AddModelError to add validation messages to the modelstate The Update copntroller action looks this...

Editing C# while debugging.

I know I've dealt with this issue before, but the settings to override this always seem to be changing. I have a C# project in Visual Studio 2008. While I'm debugging, VS won't let me edit my code. I don't want to Edit and Continue - I just want to make changes for my next build. Edit and Continue is disabled. When I try to edit a file ...

How do you populate a radio button or drop down box when editing from a database?

I know this is a similar question to one already asked, but I was hoping for a different answers to a problem. I have a form where you can upload new articles to a database all fine works ace, wonderful, brill. The form uses a drop down menu for the type of article, I have news, gossip, travel, performances and others in my drop down box...

What unix command can we use to append some text to a specific line in a file?

Does anyone know of a series of unix commands that allows someone to append some text to the end of a specific line in a file? eg Line 1 Line 2 Line 3 Line 4 I wish to append the text ", extra information" to Line 3 so that the File will now look like this: Line 1 Line 2 Line 3, extra information Line 4 ...

Copy matching text to register

Hi, does anyone know if it is possible to concatenate matches resulting from a search into a single register? E.g, I have a file with following contents: aaa :xxx 123 bb :y 8 ccccc :zzzzz 1923 Now what I want is to copy column starting with ':' somewhere else. Unfortunatelly I can't use visual block mode, because the first column hasn...

vim enter a new line with tabspaces

Lets say that i have this block of text public function __construct() { parent::__construct(); } and i want to insert a new line above parrent::construct at the same level. Like: public function __construct() { // this is the new line. parent::__construct(); } how can i do this. I try'ed to do CTRL+Enter in command mod...

Vim: Use an expression as a filename

I'm doing some debugging, which involves checking logfiles name "blah N.log" where N is an integer. Periodically, a new log file gets added, and I'd like to just skip to the next log file, rather than explicitly do :e blah\ N.log. I can't just do % vim *.log and then :n, b/c not all the log files exist yet. I've got an expression that...

Pessimistic versus Optimistic Concurrency (Locking versus Feedback)

I'm building an application with the following criteria: work items: items that need to be manually worked via the web by users (short one page form) Multiple users working 'work items' Each user has a queue of 'work items' There is a search that allows users to view 'work items' and assign 'work items' to their queues Users can take '...

How do you edit records from a VBA form that you want to interactively select?

I have a set of ComboBox's in an MS Access 2003 DB that are all bound to fields in a single table. However, the data that they allow you to select doesn't come from that table and instead comes from various other tables. This works fine for the record creation story but now I want to be able to edit the record retroactively. The probl...

Video tutorial showing code editing

I'm working on a video tutorial (and accompanying text) for installing a program in Mac OS X (http://forum.codelain.com is where the program is downloaded). I'm almost done, but I've run into a problem that I don't really know how to show in the video. For the most part, the videos are just showing the user what to click, which command...

Changing EditRowStyle programmatically when Edit is clicked

Hi, I have an ASP.NET(2.0 using C#) web app, in which I have a gridview. I have an Edit column in it, but I'm not using the regular Edit functionality. When Edit is clicked something else happens. I wanted to know how to change the style of the row in which Edit was clicked in the GridView_RowEditing function? I have tried this: ...

Edit messing up after Gridview_Sorting

I have a web app (ASP.NET 2.0 C#), and on one of the pages I have a Gridview. The Gridview has 3 columns (Edit, ID, Name), and sorting is enabled. The Edit doesn't work in the conventional way: It uses the ID and adds it to the QueryString, and the user is taken to the Edit page. Something like this: protected void Grid_RowEditing(obj...

problem of editing multiple cells in a dataGridView in c#

when I finish editing a cell and click on another cell to edit, the previous cell becomes empity(the unicode characters are removed) why? but when the characters bieng edited are english there is no problem why? any body who can help me with this silly problem? ...

need for tool for video processing

Hi I have a 2giga mpeg file of people runnig,jogging,walking etc. in it. I will use it in a image classification project but I need to segmentate the video depending on per person an per action. for example; there are 25 people in video which repeat these actions in order 1st person -runs -walks 2nd person -runs -walks and goes on....

Unable to move fast between files in Vim

I have the following in my .Zshrc . /Users/Masi/bin/Zsh/prompt I need run the following code to access the file from .zshrc Ctrl-Z vim ~/bin/Zsh/prompt I tried to do the same unsuccessfully by first highlighting the path in visual mode and running :'<,'>!vim How can you move fast between files in Vim? ...

Are there any platform agnostic SQL query builders with syntax, logic formatting etc.?

Are there any lightweight tools that allow easy-to-read crafting of SQL independently of the main apps/utilities associated with a particular database? I lately find myself working with MySQL, Access & now MS-SQL and use Notepad++ to build queries as it provides basic syntax highlighting that helps my unfamiliar eyes, but no logic forma...

More efficient movements editing python files in vim.

Given a python file with the following repeated endlessly: def myFunction(a, b, c): if a: print b elif c: print 'hello' I'd like to move around and edit this file using familiar vim movements. For instance, using (, ), [[, ]], {, } or deleting/yanking/changing text using commands like di}. In other languages ...

Bulk Editing of A GridView in ASP.Net

What is the best way to achieve bulk editing of a grid view in ASP.net? I don't want the user to have to click edit on each individual row to change it. It would be much better if they could make all the changes and then submit them in one go. What I want is something like Item1 x x x x Item2 x x x x Item3 ...

Can I use ido-completing-read instead of completing-read everywhere?

I'm a big fan of ido-mode, so much so that I would like to use it for things like describe-function or find-tag and so on, without having to write something like in "Can I get ido-mode-style completion for searching tags in Emacs?" for each one. Both (defalias completing-read ido-completing-read) and (setf 'completing-read 'ido-comp...

Why can't I edit the values in my DataGridView, even though its not set to ReadOnly?

I have a DataGridView, which is not set to ReadOnly. None of its columns are set to ReadOnly, and the object it is bound to is not set to ReadOnly. Yet, I can't edit the DataGridView items? The .DataSource property of the DataGridView is set to a ReadOnlyCollection<>, but I can programmatically alter the elements, just not from the UI...