I have this table on my form which gets populated with data from my database
at runtime. I would like to place some controls (linkbutton, textbox etc.)
beneath the table when it is complete - at the moment the controls just stay
where I place them and the table gets built on top of them. I have tried
searching the net for a solution but being on dial up its excruciatingly
slow and I havent yet found the answer. Please could someone point me in the
right direction...
I am using c# and asp.net
Thanks,
Grant 7 2429
placing runat="server" to the table and and something like ,
table.Rows[4].Cells[3].Controls.Add(l nkButton); , will work.
"Grant" <gp*****@hotmai l.com> wrote in message
news:%2******** *******@TK2MSFT NGP15.phx.gbl.. . I have this table on my form which gets populated with data from my database at runtime. I would like to place some controls (linkbutton, textbox etc.) beneath the table when it is complete - at the moment the controls just stay where I place them and the table gets built on top of them. I have tried searching the net for a solution but being on dial up its excruciatingly slow and I havent yet found the answer. Please could someone point me in the right direction...
I am using c# and asp.net
Thanks, Grant
All web controls inherit from System.Web.UI.C ontrol which has a property
called 'Controls' this is container of controls hosted by the current
control so you can do the following if you had a Panel control on your aspx
page:
....
TextBox myTextBox = new TextBox();
myPanel.Control s.Add(myTextBox );
....
Or since you are displaying information from a database I guess you are
using a DataGrid or Repeater control both of which support header and footer
templates that allow you to add controls as you wish
here is an article on adding controls to the footer of a datagrid http://www.extremeexperts.com/Net/Ar...stoFooter.aspx
datagrid girl is always a good resource as well: http://www.datagridgirl.com/default.aspx
HTH
Ollie Riches
"Grant" <gp*****@hotmai l.com> wrote in message
news:%2******** *******@TK2MSFT NGP15.phx.gbl.. . I have this table on my form which gets populated with data from my database at runtime. I would like to place some controls (linkbutton, textbox etc.) beneath the table when it is complete - at the moment the controls just stay where I place them and the table gets built on top of them. I have tried searching the net for a solution but being on dial up its excruciatingly slow and I havent yet found the answer. Please could someone point me in the right direction...
I am using c# and asp.net
Thanks, Grant
Did "chris" actually say nothing, or is it just not visible via the MS
web-based newsreader?
Thanks.
--
J. Merrill / Analytical Software Corp.
"chris" wrote: "Grant" <gp*****@hotmai l.com> wrote in message news:%2******** *******@TK2MSFT NGP15.phx.gbl.. .I have this table on my form which gets populated with data from my database at runtime. I would like to place some controls (linkbutton, textbox etc.) beneath the table when it is complete - at the moment the controls just stay where I place them and the table gets built on top of them. I have tried searching the net for a solution but being on dial up its excruciatingly slow and I havent yet found the answer. Please could someone point me in the right direction...
I am using c# and asp.net
Thanks, Grant
say nothing...
"J. Merrill" <jv************ @spamcop.net.no spam> wrote in message
news:D0******** *************** ***********@mic rosoft.com... Did "chris" actually say nothing, or is it just not visible via the MS web-based newsreader?
Thanks. -- J. Merrill / Analytical Software Corp.
"chris" wrote:
"Grant" <gp*****@hotmai l.com> wrote in message news:%2******** *******@TK2MSFT NGP15.phx.gbl.. . >I have this table on my form which gets populated with data from my >database at runtime. I would like to place some controls (linkbutton, >textbox etc.) beneath the table when it is complete - at the moment the >controls just stay where I place them and the table gets built on top of >them. I have tried searching the net for a solution but being on dial up >its excruciatingly slow and I havent yet found the answer. Please could >someone point me in the right direction... > > I am using c# and asp.net > > Thanks, > Grant >
ehhehegh. sometimes MVP's says also 'nothing'. i cant figure out how it
happens.
Thanks this worked for me :)
"Ollie Riches" <ol**********@p honeanalyser.ne t> wrote in message
news:On******** ******@TK2MSFTN GP12.phx.gbl... All web controls inherit from System.Web.UI.C ontrol which has a property called 'Controls' this is container of controls hosted by the current control so you can do the following if you had a Panel control on your aspx page:
... TextBox myTextBox = new TextBox(); myPanel.Control s.Add(myTextBox ); ...
Or since you are displaying information from a database I guess you are using a DataGrid or Repeater control both of which support header and footer templates that allow you to add controls as you wish
here is an article on adding controls to the footer of a datagrid
http://www.extremeexperts.com/Net/Ar...stoFooter.aspx
datagrid girl is always a good resource as well:
http://www.datagridgirl.com/default.aspx
HTH
Ollie Riches "Grant" <gp*****@hotmai l.com> wrote in message news:%2******** *******@TK2MSFT NGP15.phx.gbl.. .I have this table on my form which gets populated with data from my database at runtime. I would like to place some controls (linkbutton, textbox etc.) beneath the table when it is complete - at the moment the controls just stay where I place them and the table gets built on top of them. I have tried searching the net for a solution but being on dial up its excruciatingly slow and I havent yet found the answer. Please could someone point me in the right direction...
I am using c# and asp.net
Thanks, Grant
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ilPostino |
last post by:
ok, so I have my asp.net application.
I want a single page which can load asp user controls and at runtime. How
can this be done? I don't want to drag the control onto the page because
then I can't change it ... or can I ?
thanks
C
|
by: DotNetJunky |
last post by:
I have built a control that runs an on-line help system. Depending on the
category you selected via dropdownlist, it goes out and gets the child
subcategories, and if there are any, adds a new dropdownlist to the screen
for selection. This continues until there are no children, and then it
checks for a help article list based on that last selection and displays
actual articles for display.
Adding the controls and getting everything...
|
by: Harry |
last post by:
Hello,
I have a page with a RadioButtonList and a PlaceHolder control. The
RadioButtonList's AutoPostBack attribute is set to TRUE and its
SelectedIndexChanged event loads one of three UserControls into the
PlaceHolder's child control collection depending upon which of the three
radio buttons is selected. Each of the three UserControls have postback
events themselves triggered by button clicks. The problem I'm having is
keeping track of...
|
by: Reza Nabi |
last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a
placeholder dynamically based on the ctlName querystring passed in the URL.
Webform (LoadCtl.aspx) also passes a variable (targetId) in to the
usercontrol (IntergySite.aspx) by calling its setter method.
Currently, I am using if-then-else and hardcoded the User Control Object to
do casting and call the setter method.
Question: Is there any way I could load,...
|
by: Jordan |
last post by:
I need to dynamically add an ImageButton control to a user control and and
do some server-side processing when the user clicks it. While I the
ImageButton is added to the user control at runtime, as needed, I'm having
trouble wiring up its click event procedure. The problem is that when I go
to subscribe the ImageButton to the delegate, the ImageButton is <undefined>
(i.e., throws the "object not found" exception).
Note that I'm using...
| |
by: Vivek Sharma |
last post by:
Hi There,
I have a situation where I wish to load the controls dynamically on the
basis of user role. Hence, I am using this code.
if (UserRole == "IS Administrator")
{
Control UC1 = LoadControl("../UserControls/ISJob/uctlJobGeneral.ascx");
|
by: jesper_lofgren |
last post by:
Hi there,
I have some webcontrols that i want to add dynamically on a page. I
have stored the path / namespace in database (ex
MyNameSpace.WebControls.Control1) to the class/webcontrol.
Lets say i have a column in database that looks like this.
PageID (int) Webcontrol (varchar)
1 MyNameSpace.WebControls.Control1
|
by: sydney.luu |
last post by:
Hello,
I would greatly appreciate if someone can show me how to dynamically
build a Repeater
with unknown number of columns at design time. I have looked various
threads in this
newsgroup, websites, MSDN and was not able to find something that would
help me understand and code. I might not be searching for the right
words or phrases. So if you know how to do this or know of links or
websites that have information about this, please...
|
by: John Smith |
last post by:
I still have not gotten this damn thing figured out and I'm asking for help
one last time before I give up on it. I have a user control that contains a
paged gridview control. The master page contains a menu control What I
want to happen is that, whenever a menu item is selected, the appropriate
user control will load. Simple enough? Well, not for me.
I finally got the gridview paging and postback issue resolved thanks to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |