(How) Can i use the form elements of a user control from another user control???
i have a user control with 4 other user controls. Actually i have 4
panels and each user control is inside a panel. Its like a 4 page form
which are all connected to each other.
Is it possible to have access to web controls that i have in my user controls from the main user control.
In my main user control i have a submit button and a tab list. User can
browse through the tabs and each tab is bound to a panel. so clicking
on tab1 makes panel1 visible which holds the first user control, second
tab makes second panel visible and the rest invisible and the second
panel holds the ...How can a user-control know the name of the web form that uses it?
How can a user-control know the name of the web form that uses it?
How can I code in the user-control access to controls of one of the web form that may use it?
You reference the Parent property of the web user control in the user control code.
For example, if you want to get a Button found on the web form that contains the current user control, you would put the following code in the code-behind of the user control (in C#):
Button myButton = (Button)this.Parent.FindControl("myOtherControlButton");
The FindControl() method accepts the ID of the control you're ...I can create new user (auto-logged-in) but I can't log in using login-control???
I am a little at loss here.
I can create new user and I can set in code that I should be logged in after creation - but if I logout, I can never log in again.
I've tried creating new users to be sure I didn't make a mistake with the password, but I simply can't log in!
The user is created in database and the page visit is logged in my log table (so I can update the database)
Dim r As Boolean = FormsAuthentication.Authenticate("ajuaju", "xxxxxxx.")
which returns false even for the correct password.
Is the authentication p...Creating a user to login with using the Login Control and the Ad provider... can't log user in after creation
Hi I'm trying to create a user in AD from a web form, and then have the user be able to login to a web form with the login control and the Ad provider.
I have a user created by someone else in AD that can log in, but when I create the user using the code below they can't login.
Does anyone have any idea what I'm not doing to enable this user correctly, hes in the same ou and the same groups as the user that can login.
the only difference i can see is the display name is not set and the AdminCount has not been set yet...&n...How can reference user controls (.ascx controls) using "Reference" directive in a multiple web project scanario?
Trying to reference .ascx controls from one web project into another web project.
I read the following tutorial from http://webproject.scottgu.com/CSharp/UserControls/UserControls.aspx
Tutorial 6: Creating and Using User Control Libraries In this sample it details how to reference .ascx control from another web project using "Register" directive. I wanted to reference using "Reference" directive which is currently throwing a exception. Here is the sample code that I have.
<%@ Reference Control="/ctl/MessageBox.ascx" %>
&nbs...How can find a control in the Web User Control
<uc1:Ctrl_Makes ID="Ctrl_Makes1" runat="server" />
The Web User Control has the TextBox which is following:<tr><td class="formtxt">
<asp:Label ID="lblAvailabilityOpt" runat="server">Asking Price</asp:Label></td>
<td align="left" height="28" width="74%">
<asp:TextBox ID="txtPrice" runat="server" CssClass="field1"></asp:TextBox>
For example an Default.aspx page contain the following Web Us...Problem in accessing web form data in user controls when create user control dynamically
I have a problem using web user control. I designed a user control
named NewsForm. This user control contains some web form elements like
<asp:textbox>. When I add it in an .ASPX page, all things may be
true. I can know which user filles in textbox (for example and other controls)
<%@ Register TagPrefix="uc1" TagName="NewsForm" Src="NewsForm.ascx" %>
<UC1:NewsForm id="newsForm" runat="server"></UC1:NewsForm>
But when i create it in code behined dynamically, however user control has web form controls but their value are blank
//aspx co...user control data entry form, use same codebehind as web form?
I have a quesiton about the approach I'm taking. I have a series of report forms which I have been in the process of consolidating to a single, generic page and subs/functions in a single code-behind.
All the reports can use the same set of data entry elements (a dropdown, a radio list, and a textbox). I'm trying to convert these elements to a user control. However, this user control seems to need to inherit differently than the rest of the code-behind. I've been using a single class in the code behind.
Is it feasible to separate out the data entry?
the code behind im...I have a web user control being used by another web user control, but the one being used will not display the labels in the resx file.
I am using DotNetNuke version 3.13 (might be 3.013) on a Window's XP machine, SP2. I have what I find to be an extremely odd situation. I have a project called TDS.Controls. This project is a web control library. Each control has its own resx file, which is located in the App_LocalResources directory. Each control inherits from Framework.UserControlBase, just like DotNetNuke's User control in DNN\Controls\User.ascx.vb. As a matter of fact, this control is doing the exact same thing I am trying to do. It is a web user control with its own resx file being used by another web user control (See ...Can I use user control within Tabstrip control
Can I use user control within Tabstrip control?...Can we use Telerik RadWindow control in user control?
I am using a user control in an aspx page. Now in user control i am useing a link and when i click on this link i want a modal rad window to be poped out. But it gives me some Message as "UcControl1_RadWindowManager_RadWindow1(OpenerElementId)-Could not find element on page with id LinkButton1".
Please help me out with this problem.
Hi,According to your error message, it's very likely that a wrong id of an element is passed, though I'm not familiar with this the control yo...Can we use a User Control in Staticitemtemplate of the menu control?
I am trying to use a user control in staticitemtemplate but it gives me
an error "menu control tag not formed properly" message. The control
works fine otehrwise. So I was wondering if i cannot use it in menu
control. Can anyone pelase tell me if it so?
I think it's not using the control but using <%#
Eval("NavigateUrl")%> in the control properties that is giving an
error. What am I doing wrong? I used this control so I could change the
image on mouse over in the static menu items. Please help......
...UpdatePanel within a web user control resets data of controls outside the user control
I have a usercontrol on my page which displays a running marquee text. It makes use of an UpdatePanel (within the user control) to refresh the marquee text (within the updatepanel) at periodic intervals. For this I added a timer control and its tick event as an async postback trigger for the UpdatePanel.
I have a lot of textboxes and dropdown list boxes (all with runat=server) on the page outside the above user control. These are also contained in different UpdatePanels.
Problem is, when the user control does a postback to refresh the marquee text, it causes some of...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""...