Can I have a control that controls more than on link?
The question is, i have a page that have 3 sections that are controled by 3 controls.This controls just post to a page and then retrieve the html of the page and then post it back to the Community. This 3 contrlols have the same code except the link. of the page I want to retrieve .
Is there a more simple way to not having 3 controls that due exactly the same?
...How do I control one control from another control?
I have a page page1.aspx which is within a master page.
On page I have a table with two cells. Within each cell I have placed two controls (ascx) that I have developed.
Now I'd like to be able to get these two controls to interact. One needs to update the other. One has some search criteria that the other one needs to update its gridview. One needs to make the other visible/not visible at certain times. Out of the box neither control can see each other at all.
Is there a good article or someplace I can find some information on how to do this?
AllAboutFocus.com. Information Technolo...Custom Control within a Control Control
I am developing a custom controls that will render headers for different web sites. Within these controls, I want to place another custom control that will change the language. I created the language control and had it implement IPostBackDataHandler. This control works fine if I drag it on a new web form, but if I tell a header custom control to render it problems occur. The Language Selector custom control does not have a Page member anymore and the event handlers do not work. Does anyone have any experience with doing something similiar? Anyone have any suggestions?
...Setting Treeview Parent nodes links/Controling node links
Assuming that you have such code, you just put NavigateUrl to do your navigation like this:
<asp:TreeView ID="TreeView2" ExpandDepth="1" runat="...Controlling Size of a TreeView Control
Hi guys,I have placed a Treeview control inside a table cel (into a master page). The toc itself is rather large, so the table cel adapts itself to the size of the Treeview control. But at this point it hides itself about 2 cm underneath my top banner, so the first few items in the toc cannot be entered. Is there a way to give the Treeview control a fixed size, so it starts using scrollbars if the toc becomes larger while expanding?Thx in advance,SubZero...Sitemap control
How do i define which webpages can be rolled up or appear under other pages in the treeview navigation?
My web.sitemap code:
<?xml version="1.0" encoding="utf-8" ?><siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="Default.aspx" title="Home" description="">
<siteMapNode url="tbe_JobManagerHome.aspx" title="Job Manager" description="" /> <siteMapNode url="tbe_Project.aspx" title="Project Page" description=...how to disable a control in user control
I have a page which has a user control (it has navigation controls). So If I am on the page CheckBalance.aspx. I want to disable a HyperLink1 on the user control. so for that I am trying to write a code in pageload event so I can disable the control in usercontrol. learning.. : )
just create a method in side your user control which disables the hyperlink and then call this method in your Page loadDon't forget to click "Mark as Answer" on the post that helped you.
have a page which has a user control (it has navigatio...Is there a existing control or extender that can let radiobuttlist controls panels (or list of controls)?
Quite often, I need display a subset of controls on a form according to what user pick in a radiobuttonlist, for example, a radionbuttonlist with the following options
1, no 2, yes, email to me3, yes, mail to me
when user pick 2, I need show please fill in your email : ....
when user pick 3, I need showname :address :.......
I can do this on server side, but it will cause page reload. Now I want to do it with Ajax, I want to know if someone has done some work on this, or there is something in Toolkit can do this
thanks for help.
These videos will get you going quickly:
http://www.asp...How do you control the placement of controls in a user define control
I have a user define control. I put the control on the (C# Visual Studio 2008) page where I want them. When I run the program, the controls are all over the page. How do I place them where they do not move form where I put them?
You'll need to study the HTML output and see what it's producing, then start to look at how to do an HTML layout.
there are absolute and Relative position in html. I guess you must use relative position. For example, at design-time, you place a TextBox below an Image, at run-time, no matter what size is the image, the TextBox is alway bel...Trying to load a control into a control from another control
Exactly as the subject states, I'm trying to load a control into another control from a control loaded into a page, I keep getting this error from the code I have below. I've also tried the findcontrol but it keeps coming up null.
(67): 'System.Web.UI.UserControl' denotes a 'class' where a 'variable' was expected
UserControl ut = ((webcontrols.BrowseItems)UserControl).LoadControl("BrowseItems");
This is how we Load User controls into a content place holder.
UserCont...Adding User Controls from Sting can the User Control contain a CompileWith Control directive?
I want to store my User Controls in a DB. So I working with ParseControl and passing it a string. However when I pass as string of a control with codebehind I get this error.
Dim strControl1 As String = "<%@ Control Language=""VB"" AutoEventWireup=""false"" CompileWith=""Control1.ascx.vb"" ClassName=""Control1_ascx"" %>" & vbCrLf & "<div>Control 1<br /><asp:PlaceHolder ID=""Control1PlaceHolder"" Runat=""server""...display different controls on same page based on node selection from a treeview control?
My asp.net app has 2 div columns. On the left div column I have a treeview control. When I run the app I populate the treeview from an xml file and by default display a gridview with some data on the right div. When I select a given node on the treeview I need to replace the gridview and display some textboxes and a dropdown box in the same location as the gridview. Is it possible to display the text/drop down boxes on the same page as the gridview - thus replacing/hiding the gridview? I am thinking using a panel control(s) - place the gridview on one...Can a node have two parent nodes in treeview control ?
Can a node have two parent nodes in treeview control ?
No.Steve Wellens My blog...Can a Menu control and Treeview control co-mingle on the same page (!DOCTYPE content)
I have an administrator console for my web application. It uses a treeview to show the hierachy of users within the project. However, the treeview wasn't aligning its nodes properly, so I switched my !DOCTYPE declaration to:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
I then created a user control consisting of a menu control hooked to a sitemap. When I load this user control on my form, its not formatted properly - all nodes are displayed continuously and the page looks horrible. If I use the default !DOCTYPE declaration, the menu control is formatted pr...