controls

Can We use AJAX Toolkit controls in ASP.NET Repeater Control

hi there, Can we use AJAX Toolkit Autocomplete control in ASP.NET Repeater Control. Can't we add it at runtime? ...

How to use Controls in sharepoint without using the spcontext.current.

Sharepoint Controls require SPContext.current.site/web to work, but i am opening many sites using site= new spsite(siteID); and i want to use Controls. So do u have any idea or available class to use asp.net controls in sharepoint? ...

Tag property for Controls not carrying over to static method

I have the below method in a class, HUD.cs, that has helper methods. The below method is suppossed to check all controls TAG for "required" and highlight those it finds. It works fine if I call it from a UserControl and the Control's to be Highlighted are not contained in a GroupBox but when they are the TAG does not seem to come acr...

Update WPF controls at run time

I'm trying to write a WPF application that will update a set of text boxes and labels at run time using threads but the problem is that when ever a thread tries to update the text boxes and labels I get the following error: "The calling thread cannot access this object because a different thread owns it." Is it possible to update the co...

How to inherit base Textbox to provide colored borders

I have a winform app that we use in house. It has many individual controls on each of it's 25 "pages"(usercontrols). Our user base prefers very technicolor apps...they want a TextBox to be outlined Blue if it is a required field (color should go away if data entered). They want a TextBox to change to outlined Green if data has been ch...

Adorners for C# Windows Forms

Hello, I have a canvas (Panel Control) in my WinForms app where users can drag things like textbox's, labels etc around. But I want to make it easier for them to more precisely align the objects. I've read into it and Adorners seem to be the way to go? But, apparently it's only for WPF. WPF is not an option for me, unfortunately. What ...

What is affected in the Page/Control life cycle when an asp.net control has no ID

If in the markup you declare a control like this: <asp:Label runat="server" AssociatedControlID="txtSomeInput">Some Input:</asp:Label> <asp:Textbox id="txtSomeInput" runat="server" /> Does leaving out the ID from the label control change anything in regards to Viewstate or the Page/Control life cycle? Does it just get some generated I...

ASP .NET text box that supports fractions and imperial to metric conversion

I am developing in ASP .NET, C#. I'm looking for third party components that support the following requirements: 1) Ability to enter information into a numeric (preferably spin button enabled) text box as fractions. 2) Support for conversion between fractions and decimal. 3) Support for conversion between metric and imperial units of...

UI Modification to jQuery scrollTo: Fade Prev/Next controls when nothing left to scroll.

http://cambridgeuplighting.com/portfolio I am trying to create a function that will fade the Next and Prev controls for a scrollTo function when the slideshow has reached either end. I have a good start but it doesn't work how I want it to. I need the controls to fade out the click BEFORE it reaches the end. Right now it reaches the en...

Silverlight resizable container by mouse

Just checking to see if a free control with the following feature is available before I go build one. I'm looking for a container that contains grips in which I can drag and re-size, much like a window. Thank you, ...

Silverlight: Docking of controls

Is it possible to dock Silverlight based controls like Windows Forms control ? For example I want to use a tab control, which I want to use as a control for page navigation ! Unfortunately I don't find a "Dock" property :-( ! ...

Replace string with a control

Hey everyone, I have a string with special characters insert in different places. For example: string myString = "This is a textbox: ##"; I would like to replace the ## with a control (namely, a textbox). The Replace method only allows the string to be replaced with another string or character (understandably). But what would be t...

JQuery to add item to Asp.Net PlaceHolder control

It looks to me that the ASP.Net PlaceHolder control doesn't emit any HTML, and therefore can't be used by clientside javascript or JQuery to add items to the PlaceHolder. Does anyone know of a way around this limitation, or of an ASP.Net control that can be used to dynamically add items by client side code? ...

ASP.NET controls generated from XSLT do not show up in panel added as a literal control

I have the following code: XElement Categories = new XElement("Promotions", from b in db.GetPromotions() select new XElement("Promotion", new XElement ("Category",b.CategoryName), new XElement("Client",...

Assigning values to variables from controls where 'empty', there must be a better way!

I have a winform app for in house use where the below is very common. Int32? afhAgreement = null; if (!lkuReveiewAFHAgreement.Text.Equals(string.Empty)) { afhAgreement = (Int32)lkuReveiewAFHAgreement.EditValue; } DateTime? afhAgreementDate = null; if...

Adding a popup context menu to words in a Flex TextArea

I'm trying to figure out how to add a popup context menu to words/groups of words in a flex. Basically I'm trying to achieve something similar to the red underline MS Word adds underneath misspelled words. I'd also like to be able to add controls other than menu items to this context menu (checkboxes, lists, buttons, etc...). Thanks f...

Suggestions for a 3rd party .net datagrid control - ideally free?

I've been looking for a databound control to show some data to the user, who needs to be able to filter and group the output. I've looked at the documentation for the standard DataGridView control, but it doesn't seem to have the drag-and-drop grouping/filtering that I've seen in many apps. For an example, if anyone uses Toad to do SQL ...

Serialize/Save control property(ex:TextBox.Text) to a custom config file

Hello, I'm working on a small program and I would like to save some control states and properties into a configuration file. However I don't want to use the "traditional" settings file due to several reasons, but rather have it serialized or simply saved into a specific file. For example get window1's TextBox1.Text and serialize it, so...

dynamically adding controls in asp.net page

I am adding controls dynamically in my webpage. I add them in onload method. everything is working fine.. But I m a bit confused about how it works.. I have read in so many articles that all controls get their values from viewstate before load event. Then how my dynamically added controls get their values when i am adding them in OnLoad...

How to transform part of an XML schema in to html input form with xslt

I have a xml schema that contains information that I would like to use to dynamically create input forms in asp.net (c#). Is it possible to dynamic create controls in asp.net by transforming the schema with an xslt stylesheet? I would like to read a schema into an XmlDocument object (C#) and transform it with an XSLT stylesheet creating...