all groups > asp.net building controls > march 2005
Filter by week: 1 2 3 4 5
Using table tags with custom controls
Posted by kashif456 NO[at]SPAM gmail.com at 3/31/2005 11:42:42 AM
Hi,
I am adding textbox and label control programatically and need some
assistance in getting these to show up in a table. Here's my code:
For i = 0 To dv.Count - 1
SaleAttributeTextField = "Sale_Attribute_" &
dv.Table.Rows(i)("SalesAttributeID")
SaleAttribute... more >>
Postbacks and CommandEventArgs
Posted by John Bankhead at 3/31/2005 8:03:03 AM
In the situation below I am calling "OnCommand(CommandEventArgs.Empty);" from
IPostBackEventHandler.RaisePostBackEvent. but I get the compile errors:
The best overloaded method match for
'DSTControls.PortfolioDashboard.OnCommand(System.Web.UI.WebControls.CommandEventArgs)' has some invalid ar... more >>
Using Radio button in a Data Repeater
Posted by Samuel Ashley via .NET 247 at 3/31/2005 4:03:48 AM
I want to use a radio button in a data repeater which will allow me to select only one item.
could somebody please help me. Thanks
--------------------------------
From: Samuel Ashley
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>GXU7WXq8rUazIi9... more >>
Query
Posted by NEWBIE at 3/31/2005 3:25:01 AM
hi ,
i am a vb.net developer. i am trying to learn how to create asp.net
controls using the book developing microsoft® asp.net server controls and
components
author nikhil kothari and vandana datye.
can someone please help me as to how to write code for areas like event
prope... more >>
emitting client script
Posted by JV at 3/30/2005 4:49:42 PM
I'm aware of RegisterClientScriptBlock and RegisterStartupScript, but ....
Suppose you need to execute some script code when your page loads....perhaps
you need to call an Init() function and pass it a reference to your control.
Of course you can emit a client script for the OnLoad event of t... more >>
how to resolve delegate error message
Posted by TJS at 3/30/2005 3:39:12 PM
how do I resolve delegate error message ??
====== erorr message ======
Compiler Error Message: BC30408: Method 'Public Sub dothis_click(sender As
Object, E As System.EventArgs)' does not have the same signature as delegate
'Delegate Sub ImageClickEventHandler(sender As Object, e As
... more >>
Web Application folder path
Posted by JV at 3/30/2005 1:03:25 PM
Anyone know how to get a path to your web application's folder at design
time? I've tried using MapPathSecure in the OnInit call, but no luck.
... more >>
inheriting Datagrid
Posted by King Kong at 3/30/2005 12:40:21 PM
Sir,
I am creating an Filterable Grid Custom web control inherited from Datagrid
the problem im getting is im not able to capture events from search button.
It do post back but cant get the event handler to capture this event. the
Search button is not inside the grid its on the top of the grid.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Changes in controls exposed as properties not reflected in design
Posted by mnowosad at 3/30/2005 12:27:02 PM
I created a custom composite control with contains a text box and a label. I
exposed the text box and label as properties of the custom control. As a
result, they are exposed correctly as expandable objects in the Properties
window, in design time.
I also have created the proper custom de... more >>
custom paging in ASP.NET
Posted by asad at 3/30/2005 4:51:02 AM
Hello friends, i am using Datagrid builtin paging and it working well but i
want to use custom paging bcoz data is too heavy so pls tell me how can i use
custom paging.
Thanks... more >>
Custom control common html
Posted by STech at 3/28/2005 9:07:02 PM
I would like multiple instances of a custom webcontrol that I am writing to
be able to share some common inline html. ie. if the first custom control on
the page has rendered this html, the remaining instances of this custom
control should not render it.
This would be similar to the Regi... more >>
Custom control won't drag and drop to page
Posted by Andrea Williams at 3/28/2005 6:01:13 PM
i'm a bit of a noob to custom controls, so please bare with me...
I just downloaded source to a control from thecodeproject.com but I'm unable
to drag and drop the control from my toolbox to the design mode of my ascx
file. According to the docs, I should be able to do just that. Is there
so... more >>
DataGrid control is only half baked, is that going to change in ASP.NET 2.0?
Posted by ~~~ .NET Ed ~~~ at 3/27/2005 12:26:03 PM
Well, maybe not half-baked but 75%. I find very frustrating working with the
DataGrid control. It offers a lot of functionality which really comes in
handy. Unfortunately you can only enjoy a DataGrid to its fullest when you
"drop" it on a web form. There you can modify all sorts of properties... more >>
DHTML Behaviors (HTC) in a custom server control
Posted by JV at 3/25/2005 11:03:33 AM
I've coded a datagrid-derived control that makes use of a DHTML behavior in
a separate script file (.htc). Now that it works, I've realized that I
don't know how to deploy this well. I know how to embed the script in the
project as a resource, read it back and write it to a file, but obviously... more >>
Custom Control with Connection String
Posted by Andrew Robinson at 3/25/2005 7:34:47 AM
I have a custom control that makes connections to a SQL db. The controls
works fine at run time, but it not able to get the connection string in my
web config file at design time. I had something similar working in a
previous project, but can't seem to figure out where or how they are
different.... more >>
Implementing columns collection in Data grid custom control
Posted by Sundararajan at 3/25/2005 12:49:04 AM
Dear all,
I am building a custom control data grid with some necessary
functionalities. let it be <myCustomDataGrid>
in .Net data grid we have the facility to specify the columns template in
the html side of the design view
like
<column>
</column>
and we were using Databinder.Eva... more >>
Why is CreateChildControls called when a dropdownlist (of a composite control) selected index has changed
Posted by ~~~ .NET Ed ~~~ at 3/24/2005 10:02:46 PM
That sums it up. When any of the dependent dropdown lists get their selected
index changed (by user interaction) there is a new invocation of the
composite control's CreateChildControl which then basically resets some
things. Very strange behaviour, really thinking of junking the whole thing. ... more >>
High-level question about ASP.NET web controls..
Posted by RCS at 3/23/2005 4:21:01 PM
I'm a bit of a noob when it comes to web controls... What I want to do, is
create web control that appears in the toolbox, that one could drag onto a
web page - and you'd see the actual control (e.g. what it will look like on
the resultant web page - much like how the datagrid looks).
If I use... more >>
custom WebControl sometimes doesn't render at design time
Posted by redcrystal NO[at]SPAM msn.com at 3/23/2005 2:36:35 PM
I've created quite a few WebControls with pretty good success. I've
made designers, data-bound controls, and so on. (Thank you to Nikhil
Kothari and Vandana Datye for "Developing Microsoft ASP.NET Server
Controls and Components".) I'm pretty comfortable with them now.
However, occasionally, so... more >>
Color property returns Color.Empty to my control
Posted by Brendon at 3/23/2005 11:33:01 AM
I have written a custom composite control. When I try to get the value of a
Color property I always get Color.Empty in the designer, but I do get the
color that is selected when the webpage is run. Does anyone know if I have
to do something specific to get the value of the color back into th... more >>
User Control not rendered in Visual Studio
Posted by Brendon at 3/23/2005 8:25:06 AM
I have created a custom composite server control. When I drag the control
from the toolbox into Visual Studio it does not display in Visual Studio,
instead it shows the littel green arrow and nothing else. When I run the
application it shows the LiteralControl that I have added. Does anyone... more >>
Exporting an ASPX's HTML to PDF
Posted by Valerian John at 3/22/2005 8:57:32 PM
I am looking for a way to sort of redirect the Page.Response content to a
pdf generator component that would create a pdf file on the fly! I wonder
if there is such a thing in the .net world. I see a java based product that
may do this (from CORDA).
This is really my problem: My asp.net pag... more >>
Volatile Design View
Posted by Adam Foster via .NET 247 at 3/22/2005 8:50:24 AM
Sorry if this shows up twice=2E I've created a custom control that=
is basically a preformatted table used throughout the page with=
ParseChildren(false); you add child controls as the content to=
the table and everything works great=2E My only problem is that=
when you go into design view a... more >>
Repeater and ArrayList
Posted by mavrick101 at 3/22/2005 7:51:03 AM
Hi,
I am trying to use arraylist (of strings) as Datasource for a repeater. what
do I write in item template?
DataBinder.Eval....???
The list only contains strings..... more >>
Need help persisting a dynamically loaded userControl...
Posted by Urbal at 3/22/2005 6:30:34 AM
Ok, I've done quite a bit of testing and am stuck. Here's the
situation, I have two userControls and my webForm page.
menu.ascx - menu
contentEditor.ascx - input box + button
desktopDefault.aspx - blank, except menu.ascx userControl loaded
menu.ascx - obviously contains my menu, a selecti... more >>
custom usercontrol inside of datagrid - loses its state/viewstate on re-bind/postback of the datagrid
Posted by DotNetJunky at 3/21/2005 11:28:10 AM
I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it
resides inside a datagrid column and i set the selecteddate property of the
usercontrol from one of the DataBinder.Eval 's ... everythign works fine.
The datepicker also works fine on a regular page, and will normally... more >>
Enable Parent Controls
Posted by Holysmoke at 3/21/2005 4:21:05 AM
Hi all,
I am using a datalist to generate controls based on the values arrive from DB.
------------------------------------------------------------
checkbox
RadioButtonList/CheckBoxList
------------------------------------------------------------
For each row there is checkbox... more >>
Custom Web Control and GridLayout
Posted by jef at 3/20/2005 1:57:34 PM
I'm somewhat new to ASP.NET but have a lot of VB6 experience. I
thought I'd dive into custom web controls as a way to encapsulate some
common functionality. Once I drag the control onto my web form, it's
stuck in the upper-left corner. I also thought I might try to use a
panel control as a co... more >>
building my own web-based music player
Posted by stevehouston at 3/20/2005 10:11:02 AM
I want to build a customized music player using VS.NET. I'm looking for a
way to add some new controls to my Web Forms toolbox for building a
jukebox...ie. Play button, pause, fast forward, display area, equilizer, etc.
Does anyone know a site or a third-party vendor that sells these types o... more >>
Using XSLT in a custom composite control
Posted by ~~~ .NET Ed ~~~ at 3/19/2005 2:50:59 AM
Yes, that says it all. I am trying to use XSLT to render the pre/post parts
of the composite control in order to keep the look apart from the control
itself (the control would only then layout in a table) but that is proving
to be quite a task! I was just experimenting with an XML control insi... more >>
persiting data in asp.net
Posted by Vishal Patel via .NET 247 at 3/18/2005 9:22:34 PM
Hi
I am finding problem with dynamically created controls in asp.net
When I Create a text box at runtime with a cycle when next time the cycle executes again it simply remove the entered data from text box this is not happening if i create a text box dynamically at
runtime.I need to c... more >>
Programmatically resizing a web custom control at design time
Posted by ~~~ .NET Ed ~~~ at 3/18/2005 4:04:03 PM
I have written a simple web custom control. The control however also acts as
some place holder (could be a banner, picture or whatever). The control also
has a set of properties to set the width and height.
Then when either the width or height is set (using the property) the
control's Width... more >>
Control in User Control not instantiating
Posted by John Teague at 3/18/2005 11:59:05 AM
am building a user control that has a repeater in it. I first started with a
regular web page to get the formatting right where everything worked
properly. I then copied it into a new ascx file.
The repeater is created on the page (not dynamic). I have a function that
databinds the repeate... more >>
DoubleClick Event on ListBox
Posted by kgray NO[at]SPAM tecolote.com at 3/18/2005 11:26:28 AM
I have created a user control that has a list box webcontrol.
Unfortunately, The listbox control does not have the doubleclick event
in it, and for the life of me, I can not seem to create one. Does
anyone have any tips on how to do this? The user control is this list
box, that is populated wh... more >>
Custom Control Problem :: Object reference not set to an instance of an object
Posted by David Bowey at 3/16/2005 8:05:05 PM
Hi All!
I have the following Custom Control file...
'########### WebUserControl1.ascx #############
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.vb"
Inherits="nmasoft.vevo.web.controls.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/in... more >>
Inserting columns in datagrid by code
Posted by simon at 3/16/2005 5:07:01 PM
Hi,
I tried to insert a column into datagrid by back-end code, and I have
implemented a event handler for sorting. When I try to sort the column in
browser, it does not fired the sorting event handlers. Do anyone know how to
solve it?? Thx.... more >>
Writing a DIV tag?
Posted by Andrew Backer at 3/16/2005 4:50:43 PM
Starting to mess with writing to the HtmlTextWriter, and have a
question about divs.
Why is it that HtmlTextWriterTag.Div writes a *table*, when I tell it
write a div? The tooltip help says "Specifies an HTML Div Element",
but the documentation on the tag says that it will write out a table?
... more >>
Best Practices: Porting ASCX control to compiled Custom Control?
Posted by David Bowey at 3/16/2005 1:31:24 PM
Hi There!
What is the best way to port the ASCX control to complied Custom Control
(i.e. DLL)? Please share some pointers.
Also, can many ASCX controls be ported into one complied Custom Control?
Thank you all!!
Dave
... more >>
Changing viewstate on client
Posted by Paul K at 3/16/2005 8:45:04 AM
I created a custom datagrid that works similarly to the new GridView control
(using the XML request/response objects to retrieve data in the background
for paging/sorting). Everything is working, but I want to streamline it a
little.
The biggest problem I've had is that the datagrid keeps ... more >>
Dynamically created user controls
Posted by Denise at 3/16/2005 7:29:02 AM
In ASP.Net, I am working with some in-house software that dynamically creates
a form based on rows in a database table. For example, most pages consist of
a header control, center control, and a footer control. By adding rows to
specific tables in the database, the form can be changed to add... more >>
Embedded Windows control
Posted by Sebastian at 3/16/2005 3:49:03 AM
Hi all,
We are trying to create a windows control and use it embedded in an
asp.net page. This control is based on another 3rd party control, and we
don't know how to include the dll of that control in our own dll to
distribute it. We tried to embed the dll in the dll, but we don't k... more >>
Event raising question
Posted by ~~~ .NET Ed ~~~ at 3/15/2005 8:37:02 PM
Hi,
I have a question regarding events in a composite web control. In
windows forms when I programmatically set the SelectedIndex property of a
comboBox (for example) I seem to remember that the SelectedIndexChanged
event is automatically fired (unless my mind is playing tricks on me). We... more >>
Textbox control not posting value ?
Posted by Da Rabit at 3/15/2005 3:21:18 PM
I have a text box control in an ASP.NET user control and it does not post
its value when the base form posts.
The value comes through as a null lenght string.
Any ideas ?
... more >>
Custom web control not responding to change
Posted by ~~~ .NET Ed ~~~ at 3/15/2005 12:16:39 AM
Hi,
Since I ran into a problem with nested user web controls I decided I was
(???) better off implementing this as a custom web control. Well, I have run
into problems again... I created a new project on the solution that contains
the web page. That project is a Web Control Library type o... more >>
Catch Instance Creator
Posted by Mike at 3/14/2005 3:45:56 PM
Hi,
My WebCustomControl has a property of collection type, and when add an objet
to the collection at designtime I want to create the new object with an
overload constructor. Why? Becouse to set a different ViewState key for each
object in collection I need to know which index has the object.
... more >>
Child control renders at desing-time as if it is in run-time...
Posted by Zarko Gajic at 3/14/2005 3:34:38 PM
Hi, I have a problem with design-time. The problem is rather hard to
describe in a few sentences ... so I hope someone will reply asking for more
info. For the start here's the situation (striped down to what I believe is
crucial)
1. I have a custom "ReadWriteControlDesigner" type of control (... more >>
Mantain Property
Posted by Mike at 3/14/2005 12:12:09 PM
Hi,
I don't know how to mantain the value of a Property of my WebCustomControl.
I've my Control and set:
------Code in Page container of contrl ----...
....
if(!IsPostBack)
myControl.DataSource = myDataSource;
myControl.DataTextField = "TextField";
myControl.DataValueField = "ValueField";
... more >>
Distributing images required by custom control?
Posted by Nick Goloborodko at 3/11/2005 10:29:27 PM
Hi,
I am developing a new custom server control, and need to find the best way
to store / retrieve the images which are required by the control. I can see
a few of solution to achieve that:
1) Store the images in the assembly, and then read the from assembly sending
them to the end users br... more >>
Setting Focus in a User Control
Posted by jdp at 3/11/2005 11:02:54 AM
I have an editable datagrid as part of a usercontrol. When I click the
Edit button, I wish for focus to be set on the first control, a
dropdownlist. I have underlying javascript that I found elsewhere here
but it does not appear to work.
<script language="javascript">
<!--
frm.myComponents... more >>
Adding a Dynamic User Control from the Base Page Class (and retaining it on Postback?)
Posted by David Bowey at 3/10/2005 7:27:36 PM
Hi There!
As the subject says, I need to add a user control dynamically (using
LoadControl function) to the derieved page from the base Page class and I
want the added contol to be retained on PostBack as well as retain its'
state (such as properties).
How do I acoomplish this?
Thank ... more >>
|