I have a UserControl that is on a masterpage... I have created the following property for the userControl in the codebehind:
Now I need to access this control and change that property from an aspx page that uses the masterpage with the control. I'm stuck I cannot seem to find the controls property. I can find the control and make it visible or not but I cannot find the property to modify control...
i have 2 ascx user controls (both with VB code behind) placed in a contentplaceholder inside an updatepanel within a aspx page based on a masterpage... in the first user control i have a gridview and in the second i want to loop through the rows and get values from the first user control's gridview I would like to know how I can access the gridview of the first usercontrol from the second usercontrol please.
I have a button control called "btnAdd" located at a cuser control. I am using the usercontrol in an aspx page. I need to create a new button control in the aspx page that reference to the button control (btnAdd) located in the user control , so I can use its code in the aspx page.
But instead of hardcoding I want to access as a control in the page or form. How can I do that I want to do as looping through the controls in the page but Page.Controls.Count gives 1 and that is MasterPage. How can I get the entire controls in the page and loop through and find the hidden textbox. I also tried as string TxtValue = this.Page.Request.Form["<%=txtType.ClientID%>"] in CreateChildControls() of the webp[art. But could not access hidden textbox like this.
I'm developing a web site, and i'm using infragistics for web, but I want to use in some pages silverlight controls (Infragistics too). Is there a way to access a silverlight control's properties and methods from an aspx page?
i have user controls inherits from base user control like this:
How do i insert CustomerSendMail & UserSendMail into aspx page?
Note: The derived user controls having the same control layout as the base user control. Making copies of ascx page for CustomerSendMail & UserSendMail is not good idea, because if i modify the base's ascx page, the old CustomerSendMail & UserSendMail 's ascx page should be replace with the new one.
I have got 3 aspx page and a usercontrol on each page have an email placeholder in it. What I want to acheive is when the customer click on the usercontrol email placeholder, certain method on a particular page should trigger. See below for the code:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Text; using Tangent.Breakingfree;
Also I have got another method on a different aspx page, I want to trigger that method when the client is on that page. The user control should trigger the right method depending on the page user is currently on.
I have a ShoppingCart UserControl on MasterPage. I have a following functionality: User adds item to the cart. after clicking the button "Complete Sale" in UserControl the page is redirected to "CustomerInfo.aspx" and after filling the Customer information and clicking on submit which is on CustomerInfo.aspx page i want to call the "Complete Sale" click event of UserControl from "Customerinfo.aspx" page.