all groups > asp.net building controls > january 2005
Filter by week: 1 2 3 4 5
How to Make Calculator in ASP and Cold fusion
Posted by Asim Shahzad at 1/29/2005 9:14:31 PM
Hi
Can any one tell me how to make calculator in asp and cold fusion.
post your option here please
Asim
... more >>
Attaching a validator to a composite control
Posted by Peter Young at 1/28/2005 6:28:12 PM
I would like to have my control provide a Required property, and if this
property is true, attach a RequiredFieldValidator.
This approach works fine for a 'simple' control, but it fails for a
composite control, where the control is implementing INamingContainer.
It appears that the problem i... more >>
CollectionEditor weird behavior
Posted by A.J. van der Burg at 1/28/2005 4:41:05 AM
Hi all,
I'm working on a custom tab control, which has a custom collection type,
which is a collection of Control classes. When editing a property of an item
in the collection, fore example the ID property, everything works fine until
I switch from Design view to Html view. The adjusted ID ... more >>
OnItemDataBound Problem
Posted by mayetski NO[at]SPAM gmail.com at 1/28/2005 1:31:28 AM
Hi,
I created a DataGrid programmatically, my problem is that I dont know
how to associate a function with the OnItemDataBound event of the
Datagrid if it's created programmatically.
Would anyone help me do this?
Any help will be much appreciated.
Thanks!
Mayet
Here is a samp... more >>
Control ID
Posted by Zürcher See at 1/27/2005 12:23:46 PM
Is it possible to reset the counter of the automatic id generator of the
ControlCollection?
When I add a Control to a new ControlCollection it recive the id "ctl1", if
the ControlCollection is cleared, the automatic counter won't be reset and
the next added control recive the id "ctl2".
... more >>
Property Not saved in Composite Control... Help & Pointers required.
Posted by Namshub at 1/25/2005 10:47:29 AM
I have created a coposite control, consisting of text, labels , radiobuttons
and checkboxes the purpose is to create a generic control to manage user
accounts both as an admin and as a user. I have a property that tells me
wether they are adding a new user or modifying a current one.
a sni... more >>
viewstate and the IStateManager interface
Posted by Rowland Shaw at 1/25/2005 8:25:06 AM
All the documentation I've found suggects that all you need to support on
your object to stick it in the ViewState on a control is the IStateManager
interface.
However, with the IStateManager interface implemented (in my example on
ComplexObject), I get the infamous error:
[HttpException (... more >>
Good book on Building Controls
Posted by Ryan Ternier at 1/24/2005 5:02:58 PM
Hey, We're looking to purchase some books for the developers.
I'm wondering if anyone can recomend some good reads for building controls.
Good Reads, and a Good Reference material.
Rtenrier
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Parser Error
Posted by Lubomir at 1/23/2005 2:37:01 PM
Hi,
I have a custom control, defined in the file LinkLabel.cs, compiled into
assembly MyControl.dll
namespace MyControl
{
[DefaultProperty("Text"), ToolboxData("<{0}:LinkLabel
runat=server></{0}:LinkLabel>")]
public class LinkLabel : Label
{
…..
}
.....
}
The controlâ€... more >>
Intellisense bug?
Posted by Ingvar Nilsen at 1/22/2005 8:25:38 PM
can someone confirm this is a bug, or possibly come up with an
explanation and a fix?
It happens in VS.Net 2003
http://www.ingvarius.com/intelli05/
It is all very simple, my DataLabel control inherits
directly from the System.Web.UI.WebControls.Label.
--
Ingvar Nilsen... more >>
Changing properties as an event response.
Posted by perencia NO[at]SPAM gmail.com at 1/21/2005 7:53:26 PM
Hi all...
This is the situation:
A page with a button and a custom control.
The custom control sends an event.
The page is notified and then turns the button.Enabled property to
false.
All of this is done before the Page Render event; but when it's going
to be rendered the Enabled property ha... more >>
Custom Control doesn't appear in Design Mode
Posted by Dave at 1/20/2005 2:07:04 PM
Hi,
I created a custom tabstrip control, referenced in my aspx page, and added
to my source.
How come it doesn't appear as a grey box in design mode like user controls
do? Do I have to set a property for it do this?
It works as expected but you can't see where the control is placed real... more >>
webparts in asp.net 1.1 application?
Posted by Ole Hanson at 1/19/2005 5:32:25 PM
Hi
As the Sharepoint webparts inherit from WebUserControl anyway - can one use
a standard Sharepoint WebPart in a webform (in ASP.NET 1.1)?
Thanks!
... more >>
Recommended rich text editor
Posted by Eirik Eldorsen at 1/18/2005 1:21:11 PM
So far I've tried two rich text editors:
EasyWebEdit: http://www.easywebedit.net
ActivEdit: http://www.cfdev.com/activedit/
I'm not completly satisfied with any of them. Could someone recommend me
another one?
The following features should be available:
- Spellcheck in norwegian
- Upload... more >>
ASP.NET Server Control - File Browse
Posted by Ryan at 1/18/2005 7:45:07 AM
I am trying to create a custom ASP.NET server control which has a field while
requires a file browser (similar to the src property in the Image server
control). I know I need to use the System.ComponentModel.Editor(typeof(..))
syntax, but I don't know what type to use... can someone help me ou... more >>
User controls problem.
Posted by Josema at 1/18/2005 1:19:02 AM
Hi,
Im starting to do the navigation of a portal, and for it, im using
usercontrols....
Actually i have a user control in the top of the page that has some menus
(contact, register, etc...)
Depending of the menu that the user will clik i make a LoadControl to the
specific user contro... more >>
Please Help...Javascript with asp.net
Posted by Irfan Akram at 1/16/2005 5:45:02 AM
Hi People,
I have got a simple question to ask. I am trying to build dynamic controls
in asp.net. I have managed to build them successfully. I have also managed to
add the event handlers to all controls I want to monitor. I have the
following code line: -
((CheckBox)ctl).Attributes["oncl... more >>
Stupid Question??
Posted by Tina at 1/13/2005 9:31:38 AM
I have written a class to be used by asp.net applications that provides a
useful function. Other than the constructor, it has just one method. There
is no need for properties or events.
Prior to .net I would have just created a dll from my class and distributed
it to users with instructio... more >>
Dropdown Property List??
Posted by Tina at 1/12/2005 10:24:41 AM
I'm writing an aspx server control and I need to have a property that
displays a dropdown list of things I have in an arraylist. I'm trying to do
the kind of thing that, for instance, the datagrid component does where it
shows a list of all of the datasets on the page that could be chosen for... more >>
How to do more advanced paging with the DataGrid control
Posted by Daniel Walzenbach at 1/12/2005 1:30:32 AM
Hi,
I have a question regarding the DataGrid control. If paging is enabled the
grid binds the data, sets the paging on the top/bottom (or however it is set
up) and throws away unnecessary data. So far so good for a tiny amount of
data but if some 100000 of rows are the source this appro... more >>
Web Custom Control, design-time property doesn't change attribute
Posted by Mateus Padovani Velloso at 1/11/2005 12:27:03 PM
Hi,
This seems to be a simple problem, but I am unable to figure out what is
wrong:
I have a Web Custom Control, with two properties (both are strings).
When I change these properties in the property editor, everything goes ok,
and the attributes in page reflect the change.
But now I... more >>
<img> tag and resource files for scr-source?
Posted by Ole Hanson at 1/10/2005 9:16:45 PM
I want to compile my images into a resource file and then use this for my
<img> tags in my table (<table><tr><img scr=(my resourcefile)</tr></table>;
instead of having a list of images on my server...
How can this be accomplished??
Thanks you!
/Ole
... more >>
Is Caching disabled by default ???
Posted by Girish at 1/10/2005 7:39:09 AM
I have a usercontrol showing some generic information across multiple
screens. As per MS, caching is disabled by default so i didn't put a
@OutputCache directive in my control. I found the control being cached at
several occassions so was forced to put some code to disable caching
explicitel... more >>
EARN $114,668/- IN JUST 1 TO 2 MONTHS, FREE TO JOIN (MUST READ THIS)
Posted by theeb basheer at 1/9/2005 11:11:32 PM
Hello Friend,
Do you know you can earn $114,668/- in just 1 or 2 months.
Success depends on choice and not chance.
There are millions of opportunities on Internet but only few are genuine rest all are scams and frauds, and genuine opportunities are hard to find.
What if I tell you that y... more >>
TemplatedControlDesigner Events
Posted by Chrone at 1/7/2005 7:42:50 AM
Hi all,
I have a webcontrol that supports template.
Everything works fine except that in Design time (in ide)
when i click on the control inside the template the property window does
not show the events this control have !
How can i do in order it works ?
... more >>
get html result from a control
Posted by Pietro at 1/6/2005 3:56:46 PM
Hello, i'd like to know how to get the html result from a control, the
html that is sent to the client, in a variant?
Thanks
Pietro... more >>
Properties with PersistenceMode.InnerProperty not saved
Posted by jahyen at 1/6/2005 12:09:19 PM
I'm having trouble getting my custom control to save properties that are
decorated with the PersistenceMode.InnerProperty attribute. The properties
that are saved with PersistenceMode.Attribute are saved OK. The class below
is built into it's own assembly, added to the toolbox and then added t... more >>
ViewState, XML and XSLT
Posted by CJ de Vos at 1/6/2005 9:16:08 AM
Hi,
I'm using XML and XSLT to format my HTML. After a postback I recreate all
controls as soon as possible (OnInit and after the LoadViewstate). After the
recreation all events are handled correctly. However, some events make
adjustments to the XML. Because of this changed XML I need to recreate... more >>
EDIT & DELETE grid buttons don't work
Posted by Rudy at 1/6/2005 6:09:03 AM
Hello all,
Going to make this short and sweet for now, need to dig myself out of a foot
of snow this morning. :( I have a data Grid, everything work well, except
for the button. Here is my error: "Index was out of range. Must be
non-negative and less than the size of the collection. Parame... more >>
class is not visible
Posted by Lubomir at 1/5/2005 2:39:41 PM
Hi,
I want to use a user control on my page. I want to reference to the control
class from the page’s code-behind.
I registered the control:
<%@ Register TagPrefix="uc1" TagName="ButtonList" Src="ButtonList.ascx" %>
The control is used in HTML code:
<uc1:ButtonList id="ButtonList" ... more >>
Add controls DESIGN Time.
Posted by Sundance Kid at 1/5/2005 3:37:02 AM
Hi All.
I would like to know, HOW can I add control (textboxes) etc to my web form
in design time? I have tried everything... someone @ MS should be able to
tell me.
Thanks.
(I can post my code...)
... more >>
using javascript in User controls to access server controls of the user control
Posted by Faizan Ahmed at 1/4/2005 4:12:53 PM
Hello all,
I have an asp.net textbox (named txtHidden) and an HtmlButton(named
btnAction). I wanted to write a javascript function which will get called
when the btnAction is clicked. The function is as follows
function HideText()
{
document.all.item("txtHidden").style.visibility = "hidd... more >>
How to access contents of cells within a generated table?
Posted by aualias at 1/4/2005 2:07:07 PM
I am writing a custom control to display the contents of a shopping cart
within a table. The quantity of each item appears in a textbox inside a
cell. It all appears just fine on a web page, but I do not know how to
access the contents of the text boxes. Adding the runat="server" attribute
se... more >>
Back button
Posted by Jim McLeod at 1/4/2005 6:23:03 AM
Hi all,
I have created a control that dynamically changes it's own content after the
user posts back data. However, each time this is done the user's interaction
is added to the history stack even though the user never leaves the control's
parent page. This is resulting in a 'The page canno... more >>
Mysterious Error: Object reference not set to an instance of an object
Posted by Max at 1/3/2005 5:49:46 PM
Hi There!
I'm having a mysterious error right after I login using Forms Authentication
in my ASP.NET app. Below is the error...
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
The exception throws at the code that tries to set a pr... more >>
|