|
I have inserted a table web control in a panel.in that table 's cells i want to insert other user control like label, panel .i am not able to do that.is there any difference in normal table for layout and table web control.if it is.then how can i insert...
Started by sahil garg on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I don't see any problems in what you are doing, can you show an example? Is it from code behind or in the aspx code?
<asp:Panel runat="server" id="pnl_something"> <table> <... .
Hi Sahil
You need to provide us with a little more information .
|
|
What are the differences between User Control and Custom Control in ASP.NET
Started by Ramesh Soni on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Custom Controls are inherits from Control class (that you can change any control.
To the project & would require to be hand-coded (using various asp.net control events & html anywhere within project.
|
|
I would like to draw a control on some other control in it's overriden paint event. By drawing I mean real drawing, not placing the control inside the other control. Is there any nice way to do that?
Started by agnieszka on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
From memory you can set minimum sizes on your control etc from the control your attempting to enhance and override it's paint method?
Perhaps you could elaborate the control's DrawToBitmap....
Want within the bounds of the control.
|
Ask your Facebook Friends
|
How do you add a scrollbar to a Panel control with many controls in windows form application?
Started by Chetan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
>
then add the overflow style attribute to the panel and set it to "auto" - like this:
<asp:Panel style="height... .
First you'll have to set set the height & width of the Panel - something like this:
<asp:Panel style="height: 200px; width: 200px" .. .
|
|
I am trying to loop through all controls in a form: For Each ctrl in Me.Controls in order enable/disable the control based on some conditions. But there is a control on the form that gives an error when I try to access it. What kind of control does that...
Started by tosa on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's what....
Do so on the line before setting the Enabled property .
When you get your error and click Debug, is the error on the line setting a control's Enabled property?
If so, add a Debug.Print statement writing out the control's name.
|
|
I have a controller action which I would like to call another controller action.
Is this a valid thing to do. Is it possible?
Started by ListenToRick on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Also, you can use TempData to pass model (and other) data between controller actions..
Controller.RedirectToAction
As @Justice says you can use RedirectToAction.
|
|
I have included a user control in another statically following code :
place the folowing directive in the asp code of the parent page or usercontrol:
<%@ Register src="Name_of_your_child_control.ascx" tagname="Name_of_your_child_control" tagprefix=...
Started by Anish Mohan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Say your usercontrol was this:
<%@ Control Inherits="Project.MyControl" Codebehind="MyControl.ascx.cs" %> <asp:TextBox ID="TB" runat="....
Using
Name_of_your_child_control1.PublicPropertyName
must work for your parent user control.
|
|
I have a Web User Control that holds many others User Controls. I'd like to name those embedded controls based on the ID of the parent user control.
I'm trying this code inside the main User Control:
<myLibrary:myChildUserControl1 ID="<%=ID%>...
Started by JP on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Client ID's can be generated....
If you want you child controls to have ID's generated based on its parent, your parent control should implement a problem too.
In ASP.NET server control's ID is generated based on its Naming container .
|
|
I'd like to have an application with an UI similar to Windows XP control panel. Does anybody knows of a control with the same icon view? Thanks
Started by jassuncao on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Unless you are talking about the category based control panel in WindowsXP....
It will have a similar look to a control panel.
The closest control that could serve this purpose is the ListView control, using the Large Icons view.
|
|
I'm working on a controller that is a part of a very flat hierarchy of pages, and it looks like one section of the site could have over a dozen action methods, not including their corresponding post actions. Is there a good way to break this controller...
Started by blinton on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If your controller class is getting out of control on a dozen actions, you might want to rethink.
|