I want to design a custom Control for Line (vertical or horizontal line)
basic usercontrol is rectangle and not suitable for line
what s your idea about line control?
I defined a JavaScript function inside a user control.
If I have multiple instances of the control on my .aspx page, how do I prevent multiple function definitions in the resulting HTML code?
Hey,
I have a list control and i want the user to be able to select many items at a time. Thus I want it to act that if the control key is pressed while he is clicking. Eg if he clicks on a selected row it should become unselected and if he clicks on a unselected row it should become selected.
Do you have any idea how to do this?
Thanks,
Dennis
I'm using a sitemap and a menu control. I have a search and list page that I want to highlight the same same item in the menu control. For example, Search Widgets menu items will be (Search.aspx) and the List Widgets will be (List.aspx). The sitemap will have a single entry for "Widgets", but I need both pages to map. Any idea on how to do this?
Is there any textbox comoponent(control) which is counting back from the maxlength?
I can write it but i would like to find a control which has this function.
Hai
am having a WPF user control, when i use that control in another window it loading twice, so its throwing exception for me, coz am having some function in usercontrol_loaded event, when it loading twice it throwing error, is there any other way to check if the usercontrol is loaded like that, else how to solve this issue.
Hi,
I have an object Trip in my object model containing a list of Nodes (e.g. NodeName, StartDate and EndDate) and I am trying to build a Custom control in WPF that draws list of rectangles: one for each Node contained in the Trip object (based on StartDate en EndDate)
Would you have any hint on how the Custom Control should be structured so that I can bind a Trip object to it and draw the rectangles properly, please?
i hav a calender control, two textboxes... one textbox is for fromdate and other is for todate,
i need to select two dates... how can i get the dates selected from calender control into my textboxes
My question is about how to acces a server control (listbox) that is located in default.aspx.
I wish to acces this control in Functions.cs (this class is located in the App_Code folder).
My page structures:
- 1 masterpage with 1 content holder
- Default.aspx (all the controls are within the content place holder)
- Functions.cs (located in App_Code)
Now when i try to fill up the listbox elements i get the error "object reference not set to an instance of an object."
What i have tried to gain acces to this control: (this code is located in Functions.cs in App_Code).
This is basicly showing some items in the listbox that are located in the xml file
private static string file = HttpContext.Current.Server.MapPath("~/App_Data/Questions.xml");
public static void ListItems()
{
XmlDocument XMLDoc = new XmlDocument();
XMLDoc.Load(file);
XPathNavigator nav = XMLDoc.CreateNavigator();
XPathExpression expr;
expr = nav.Compile("/root/file/naam");
XPathNodeIterator iterator = nav.Select(expr);
//ATTEMPT to get acces to ServerControl(listbox)
Page page = (Page)HttpContext.Current.Handler;
ListBox test = (ListBox)page.FindControl("lbTest"); //control is called lbTest in Default.aspx
test.Items.Clear();
while (iterator.MoveNext())
{
test.Items.Add(iterator.Current.Value);
}
}
Code from the default.apx file
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterFile.master" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="default" Debug="true" %>
<%@ MasterType TypeName="Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" Runat="Server" >
<asp:MultiView ID="mvTest" runat="server" >
<asp:View ID="vCollection" runat="server">
<asp:ListBox ID="lbTest" runat="server" CssClass="listbox" ></asp:ListBox>
</asp:View>
</asp:MultiView>
</asp:Content>
The masterfile itself just has 1 placeholder.
Then i call upon the funcion ListItems in the Default.aspx.cs file
protected void Page_Load(object sender, EventArgs e)
{
Functions.ListItems();
}
Regards.
I want to be able to find the old value of a asp.net control (textbox, checkbox etc) without relying on events (e.g. OnTextChange event). Something like "someTextboxControl.OldText" would be perfect! I imagine that it is stored in the viewstate and need to somehow get at it via a custom control. Any ideas?
I am using jQuery star rating control found at http://www.fyneworks.com/jquery/star-rating/#tab-Overview . I am using 5 stars, each star having a particular value from 1 to 5. The control is getting displayed and behaving properly. However, I have a requirement of getting the value of the star clicked, immediately after a star is clicked. I do not know how to do it.
I appreciate your help.
Is there a way to access the Java Plug-in Control Panel programatically? Or at least find the places in the Windows File System where the information backing that control panel is stored?
I have a set of validation controls on my asp.net page, to validate values in textfields. I also have a calendar control on the same page. When I click on the calendar image, the validation control message box pops up. How can I avoid that from appearing when the calendar icon is clicked?
How to add a control in DataGridView? Using Button event. For example i want to create a new a row and column in DataGridView, this i want to happen through button control. How can i do it?
I am using C#.net and MS-Access.
The user Laurent had an interesting reply to the question [Why hasn’t logic programming caught on?]:
If you look at the influence
logic-programming has had in the field
of -- air traffic control -- I don't think it can be said logic-programming
has not caught on.
A question arises:
Where is prolog used for traffic
control systems on the roads? Why is it used
instead of languages, such as C or
Python, in such environments?
Hi, guys! I have a question about remote control by wi-fi from pc or mobile phone.
I want to control a some robot by wi-fi, but i don't know about any wi-fi DYI modules, anyone have a links to pdf, blogs and others about this question? It's may be such a programming wi-fi protocol and others.
Thanks!
I am using c# with asp.net and SQL Server 2005 as backend. I want to use dropdown list control in a form to populate a textbox. The dropdown control is linked to a column in the database. How can I code this in c#?
Hi all,
I have this Ellipse which I turned into a custom control so i could animate it programatically. However I am having trouble changing it's color.
I know about changing a shapes color like this:
aRectangle.Fill = new SolidColorBrush(Colors.Blue);
However I cannot do this with a custom control.
Anyone know how? Thanks.
I do a lot of work on my home computer, ranging from programming, writing stored procedures and writing documentation and reporting. A lot of this work is university related and constantly swapping files across several computers is annoying at best.
I have a large final-year project coming up and I'm going to be sharing this work amongst home and university and require some kind of online storage that provides version control for my programs, as well as my Word documents, PDF's and saved academic papers.
Are there any good solutions for my problem?
Under XP I could use a Remote Wonder II from ATI to control my music (play, pause, next, previous, etc). This product does not work under Windows 7 64-bit because of driver issues and it seems to be an orphan product.
My question is: Does a similar product exist that works under Windows 7 64-bit???
This question is about the SOS version control system:
I have a file that always updates back to revision 1. For instance, to check out the latest revision I have to specifically ask for that revision. I have checked in several revisions up to revision 5. However, everytime I do an SOS update, it reloads revision 1.
How can I request that the file updates to the latest revision rather than an older one?
I'm looking for a way to pull data from my Rackspace Cloud SITES account. The data I want to pull is bandwidth, diskspace, and compute cycles (all available from control panel). I'd like to set up my own warning system, to be notified if I'm close to my limits on any given month.
Does anyone know of a way/API to do this?
I find myself often visiting the Mail control panel for people I'm helping who use Outlook.
However, it never, ever shows up in the start menu for anyones computer:
Is there some magic string I can type in to get that menu item? I've tried all the obvious ones:
Mail
Mail (32-bit)
Mail 32 Bit
But to no avail. Normally I just go the long way, but with Windows 8 and Metro I'm concerned I'm going to get very frustrated trying to talk users through it over the phone.
I am on a machine that has OpenSUSE 11.1 and KDE 4. Whenever I log in, KDE 4 starts up all the apps I had open during the previous session. I do not see a KDE 4 control panel anywhere. Is there a command for opening one up?
Thanks,
SetJmp
I am attempting to clean out my dad's laptop, which is running Windows Vista. Somehow, he has managed to accrue 1,400 wireless networks in the "Manage Wireless Networks" control panel. Is there any easy way to clear this list short of reinstalling Windows?