control

Dynamically create controls using stringbuilder

hi, i have been trying to create controls dynamically on my web page using the StringBuilder class..and i dont quite seem to get through... any help would be appreciated. i am trying to do this... StringBuilder sbTest = new StringBuilder(string.Empty); sbTest.Append("<input type=\"text\" id=\"txt1\" runat=\"server\" />"); Response.W...

Publish MVC v1 C# application through Cruise Control

I am attempting to publish a 3.5 MVC website on my build server through cruise control. Having looked around on the net it appears you need to wrap the ASP Net Compiler. I was hoping that this task can be called through MSBuild. Any ideas on how this is done? ...

How to count the number of listitems in an asp.bulletedlist with JavaScript

Hi I have an asp:bulletedlist control, which sits inside a div tag, and I need to count the number of list items inside the control. Searching the internet, and noting the fact the html given back by the items is a list i.e. <li>, I thought I could use an example of: var listcontrol = document.getElementById('BulletedList1'); var count...

How to convert InnerText to InnerHtml in Webbrowser Control in C#?

I'm working on a WYSIWYG editor with builtin spell checker Hunspell and online highlighting of misspelled words. I'm using Webbrowser control as a html handler. It's a way easy to spell check text than html in webbrowser control, but following this way I'm losing all html formatting. So the question is: is there any way to spell check bo...

vb6: get reference with given hwnd

hi, how can i get a control's reference with given hwnd? (i dont want to do it by querying eg. Form1.controls), it should work with the AccessibleObjectFromWindow api. unfortunately i couldn't figure it out how to use it. anyone would have a little code snippet? thanks ...

RegularExpression Validator doesn't display error message.

I have a regular expression validation control initialized to validate a textbox control. I want users to be able to enter U.S. Currency values ($12,115.85 or 1500.22 etc.). I found a regular expression off of regexlib website that does the trick. The validation control seems to be working except for one crucial thing. If invalid data is...

Windows forms control designer, adding 'task menus'

Hey, I would like to know how to add menus similar to this to my custom controls designed in Visual Studio. http://img687.imageshack.us/img687/8702/tasksy.jpg ...

usb device identification

hello all i am using python on ubuntu 9.04 say i have two usb devices connected to a single PC. how can i identify the devices in python code.....for example like if usb port id == A write data to device 1 if usb port id == B write data to device 2 any ideas.... ...

Changing WPFToolKit Calendar control

Hi, Im looking to add a new feature to the WPF Calendar control, At the moment this control allows you to set blackout dates... So you can add a group of dates in which cannot be selected and they are shown grayed out I want to add another collection of dates in which I can highlight in red to denote some kind of special events that h...

C# Enum List/Collection on User/Web Control design time support?

I've been banging my head against a brick wall over this little problem since thursday and I'm still no nearer to an answer than I was back then. I have a user control which has a property like this: /// <summary> /// Gets or sets the media types. /// </summary> /// <value>The media types.</value> public List<MediaType> MediaTypesFilte...

WPF Enable/Disabled controls from a page placed inside main window application

Hi! I have an WPF application that has a main window. In the left side of this Window there are some buttons into a listbox, it is a kind of menu to access faster to pages. These buttons belongs to pages that they are loaded inside the window when the user selects one. Main window also has another main menu in the top for doing other ta...

Access properties controls of a window from a page in WPF

Hi, My problem is that I want to access from a page to the properties of a control (button, textblock, label, or a menuitem of the window....) placed in a window. The page is placed into the window. How can I do this? Is there any method to find controls by name in a specific window or page or entire application? Thanks. ...

For each <item> in CheckedListBox. <item> returns as Object and not as Control

Hello there. I have a CheckedListBox previously populated. I want to loop with a "for each / next" through all items in the CheckedListBox and do a lot of "stuff" with each iteration element of the checkedlistbox. example code: For Each item In CheckedListBox1.Items If item.Checked = True Then 'do stuff like...

Which Controls will used to create Active X controls in asp.net

Existing application in Java, Present we developed in .net. ...

WPF WIN32 hwndhost WM_MOUSEMOVE WM_MOUSEHOVER

I have a WPF app with a usercontrol that contains a HwndHost. The HwndHost is created as follows: hwndHost = CreateWindowEx(0, "static", "", WS_CHILD | WS_VISIBLE, 0, 0, hostHeight, hostWidth, hwndParent.Handle, ...

Do you have to call .Save() when modifying a application setting that is bound to a control property?

I am programming in .NET I have an application setting of type string. On my form I have a textbox. I bound the text property of the textbox to my application setting. If I type something in the textbox it changes the value that is held in the Application setting but the next time I start the program it goes back to the default value. Do...

WPF Control Background under GridViewColumn

Hi, I'd like make background for colums like in this image http://www.freeimagehosting.net/image.php?e2435df982.png I have CheckBoxes on the left and TreeView on the right. In one column I have checkboxes in other I have treeview. In column with checkboxes I need set background. Background has to be permanent. ...

How do I consume an ADO.NET Entity model or LINQ query in a custom ASP.NET Server Control

Dear All, I have written a fairly complicated ASP.NET server control that can bind to various data sources such as the SqlDataSource, XmlDataSource and DataTables I would like to extend it to bind to a user supplied Linq query or ADO.NET Entity model in a manner similar to the GridView How do I begin to do this? I've searched around ...

I want to use a Currency control in Ajax that accepts any number of inputs

I want to use a Currency Control in Ajax that accepts any number of input digits( with decimal maximum up to two digits only) For example If i am having a code like this: TextBox txt = new TextBox(); txt.Text ="99.99"; txt.Id = "TextBox1"; MaskedEditExtender mskEdit = new MaskEditExtender(); mskEdit.Id="CurrencyController"; mskEdit.M...

Custom textbox control in asp.nt

Hi.. I m trying to create a custom textbox with a enum kind property in it(like textmode).the enum values will come from database..but enums cant be dynamic..is there another way out?? ...