all groups > asp.net building controls > november 2006
VS.NET 2005 ASP.NET Component
Posted by Michael Lang at 11/27/2006 7:03:03 PM
I have a class deriving from System.ComponentModel.Component.
In VS 2003 I could drag it on to a web form. However I'm finding in VS 2005
whilst it functions perfectly at runtime. At design time in VS.NET 2005 you
can not drag the component on to a web form. When I select customize
toolb... more >>
Calling other functions
Posted by Tony Doyle at 11/27/2006 2:00:29 PM
All,
Using .NET 1.1, I have built a custom control, however I am having trouble
compiling it.
For the on click event of the button, I want it to run a function that is
already on my aspx page.
As the .NET compiler cannot see this page / function at compile time, does
anyone know of a way ... more >>
Dynamicly setting readonly in through a property
Posted by Martin Gregersen at 11/27/2006 9:59:27 AM
Hi
Looking for a way to bind a readonly property on a textbox to a parameter,
not having to cycle through all controls, but rather setting <textbox
id="myTextbox" readonly="<%# SetReadOnly %> where SetReadOnly is a public
property, saved to a Session variable.
Can't get it to work, event... more >>
property of control
Posted by Aleks Kleyn at 11/27/2006 12:55:25 AM
Assume I designed web control which I use on different asp forms. Now I want
to make next step. Some controls (like textbox or drop down) have properties
which I see on the property tab of visual studio. When I change them they
appear as part of web page, so I can change their properties at de... more >>
Problems with Templated Databound control
Posted by paululvinius NO[at]SPAM hotmail.com at 11/24/2006 12:29:02 AM
Hi!
In my templated databound control (inherited from
CompositeDataBoundControl) I have one template and one string get/set
property. When CreateChildControls(IEnumerable dataSource, bool
dataBinding) is being called, the string property is sometimes set and
sometimes not.
I have figured o... more >>
Gallery admin thumbnail control
Posted by mc at 11/22/2006 12:00:00 AM
I'm writing a gallery app with an online update facility, I would like
to be able to create a custom Thumbnail control, which will display the
thumbnail and an expandable panel with the meta data which the user can
subsequently update.
I've created the control and added an Image.
I also ... more >>
Automatically inserting method & function headers from an interface that are being implemented with VB.NET
Posted by Nathan Sokalski at 11/21/2006 1:24:29 AM
When implementing an interface in VB.NET using Visual Studio .NET 2005, it
would be nice if I could have the method/function headers inserted
automatically. Whenever we implement an event (such as Button.Click,
TextBox.TextChanged, etc.), all we have to do is select the control and
event fro... more >>
Error Creating Control - No parameterless constructor defined for this object
Posted by Nathan Sokalski at 11/20/2006 10:10:49 PM
I have created a custom control for ASP.NET using VB.NET. My control =
inherits from the System.Web.UI.WebControls.CompositeControl class, and =
is working fine. However, the Visual Studio .NET designer shows the =
following error on the control in the designer:
Error Creating Control - No par... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Passing multiple arguments to the client-side JavaScript function in AJAX
Posted by Nathan Sokalski at 11/19/2006 10:44:27 PM
I am a beginner with AJAX, and have managed to learn how to use it when
passing single parameters, but I want to return more than one value to the
client-side JavaScript function that displays it. My client-side JavaScript
function takes 4 parameters (which are expected to be integers). The id... more >>
Getting the generated name attribute for use in JavaScript
Posted by Nathan Sokalski at 11/17/2006 8:16:29 PM
As most of us probably know, ASP.NET controls do not use an exact copy of a
control's ID for the HTML element's name or id attribute. When generating
JavaScript as part of a control or event, we need to have a way to reference
the HTML elements. The only way I have found to reference the HTML ... more >>
"Unknown server tag" when deploying website
Posted by paul.hester NO[at]SPAM gmail.com at 11/15/2006 7:22:39 PM
Hi all,
I'm trying to deploy a small website that has a couple of custom
controls. This works fine locally, but falls over with an "Unknown
server tag" error when trying to parse the custom control reference in
the live/deployed site.
All of the binaries are in the "bin" directory. I have t... more >>
Dynamic controls button event in vb.net 2005
Posted by sushil prasad at 11/15/2006 5:46:34 PM
I have created a control with some label, textbox and Button. On the click
of the button the entries in textbox on the control is validated and a
database table is updated. The button click event works when the
control is placed directly on the panel from design window but not when i
use
progr... more >>
IButtonControl.Click
Posted by Abraham Andres Luna at 11/14/2006 10:16:03 AM
hello everyone,
i am trying to set the defaultbutton property and i get the following error:
The DefaultButton of '' must be the ID of a control of type IButtonControl.
so i guess instead of this class declaration:
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
... more >>
IPostBackEventHandler question
Posted by Henk at 11/11/2006 10:17:20 PM
Hey All,
I have a question about the IPostbackEventHandler interface. This
interface's RaisePostBackEvent method has an eventArgument paramter. When my
control has two buttons, I can use eventArgument to see what button was
clicked, since I set their onclick attribute with the
Page.Clie... more >>
Question about a user control derived from DropDownList
Posted by Big Daddy at 11/9/2006 10:37:49 AM
I posted this in a different group yesterday with no responses, so I'll
try here.
I have a simple control that is in a CS file (not ASCX). It is derived
from DropDownList like this
public class FiltersDropDown : DropDownList
{
....
}
It overrides a couple of functions. I want to in... more >>
Dynamically adding Dropdown, Text Box, Add Button and Remove Button
Posted by Rocky at 11/8/2006 3:20:58 PM
Hi Everyone,
I am facing a poblem in creating a row which contains following
scenario in ASP.NET
|DROP_DOWN_LIST | |TEXT_BOX| |ADD_Button| |REMOVE_Button|
------------------------------ -----------------
-------------------- --------------------------
When user will pre... more >>
Dynamically added controls are lost on a Postback
Posted by Dejan at 11/8/2006 2:51:02 PM
Hi,
i created a custom control overriden from HierarchicalDataBoundControl. In
method PerformDataBinding I add some controls (Controls.Add(new TextBox)). It
works fine on a first load, but on a postback there are no controls.
I know I have to create them again, but a method PerformDataBindin... more >>
Creating a custom user control programatically
Posted by Big Daddy at 11/1/2006 11:43:05 AM
I created a composite control derived from UserControl. It has two
textboxes. The ascx file looks like this:
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="RangeCriteriaControl.ascx.cs" Inherits="RangeCriteriaControl"
%>
<asp:TextBox ID="txtLow" runat="server" Columns="5"></... more >>
How do you set up the OnClick with ASP 2.0 ?
Posted by guy at 11/1/2006 5:43:09 AM
In my 1.1 project, I was creating dynamically a LinkButton, and stored
it into a Table.Row.Cell.Controls(). I was adding an MyOnClick handler
to the Click property. I was doing this during the Load phase. It
worked. Porting my code to 2.0, the Click event do not work anymore. It
is not generate... more >>
|