all groups > asp.net building controls > december 2006
Possible: dynamically populated and placed user control in the middle of a string?
Posted by kenfine NO[at]SPAM nospam.nospam at 12/24/2006 9:12:51 PM
I'm wondering if it's possible to do the following in ASP.NET 2.0. I want to
do the following simultaneously. I suspect its possible, but I also suspect
that I may need to do different things at different times in the page
lifecyle, and would appreciate some guidance.
a) call an ASP.NET u... more >>
Validator message disappeared after post back
Posted by HipHop at 12/22/2006 3:25:36 PM
Hi,
I have a compositecontrol contain a textbox (txtPhoneNumber) and a
RegularExpressionValidator.
I tested in a page, the validation seems work fine until post back, the
validation message disappeared after post back while the text in the phone
number still remain the invalid format.
Cou... more >>
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls
Posted by Nathan Sokalski at 12/19/2006 9:02:20 PM
My Web.config file contains the following section to register some of my
UserControls:
<pages>
<controls>
<add tagPrefix="NATE" tagName="Banner" src="~/Banner.ascx"/>
<add tagPrefix="NATE" tagName="Navigation" src="~/Navigation.ascx"/>
</controls>
</pages>
However, I still r... more >>
ITemplate and inbedded controls
Posted by Perecli Manole at 12/18/2006 3:00:47 PM
I created a tabstrip custom control that is declared like this:
<acc:TabStrip ID="Tabs" runat="server" SelectedTabID="aa"
AutoPostBack="true">
<Tab ID="aa" Text="aa">
<Template/>
</Tab>
<Tab ID="bb" Text="bb"/>
<Template>
<asp:Panel ID="test... more >>
LazyHttp, or the HTTP protocol dissected...
Posted by Thomas Hansen at 12/16/2006 4:48:17 AM
Howdy, I've been working on this solution for quite some time where we
basically turn the HTTP protocol upside down and manages to have a
"Message Que" on the server from which we can post "events" back to the
client upon.
Basically it works by having a VERY LONG timeout on an Ajax HTTP
Request... more >>
HELP: (ASP.NET 2.0) - Can't get CSS HtmlLink Element working in VS Designer
Posted by Axel Dahmen at 12/16/2006 12:00:00 AM
Hi,
I've got the following problem: In my client's project I've created an =
ASP.NET Custom Control to add CSS style sheet HtmlLink elements to a =
page dynamically. But I can't get this control to work in VS Designer. =
Thus my co-workers can't create their pages as expected.
!! Please not... more >>
Keeping 2 user controls of the same class synced
Posted by yashgt NO[at]SPAM gmail.com at 12/14/2006 9:42:58 PM
On a page, I need to show one item at a time. The top of the page has a
Previous-Next control, followed by the item being shown, followed by
another Previous-Next control. I have created a P-N user control and
customized it to fire an event, OnChange, when a Previous or Next
button is clicked, w... more >>
custom web control +client-side javascript + postback
Posted by boeledi at 12/14/2006 4:53:19 PM
Hello,
I am trying to create a new Web Control (ASP.NET 1.1) that contains
among other textboxes. The content of these textboxes (runat=server)
might be changed by client-side Javascript code, like:
document.getElementById('txt...').value='...';
Then, at server side, I will need to retrieve ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
<% =expression%> not evaluated in custom control attributes
Posted by James Hawkins at 12/13/2006 3:38:39 PM
Let's say my ASPX page codebehind has a method S() which returns a
string value (of let's say a constant "string").
If I do this (hope all these special chars make it through) on an ASPX
page:
<a href='<%=S()%>'>Link</a>
this renders as one might expect; i.e. S() is evaluated and the html
... more >>
Custom Controls and Absolute Positioning
Posted by Rick Strahl [MVP] at 12/10/2006 10:01:44 PM
Hi all,
I have a couple of custom controls that several users of an application are
using and got a request from one of the guys that they're using Absolute
positioning and well, turns out my controls don't work right in the designer
with Absolute Positioning.
All Controls are based on W... more >>
Creating LinkButtons in a Repeater ... in code.
Posted by Wozza at 12/8/2006 5:45:11 PM
Hi,
I'm trying to create a variable number of LinkButtons using an ItemTemplate
within a Repeater control. This is being done from code ...
I am trying to recreate something similar to the following ... which is in a
user control, only I'm doing it in a web part:
<ul id="middlenavigationMe... more >>
Usercontrol, add styles via Page.Header.Attributes ?
Posted by Edwin Knoppert at 12/6/2006 9:40:33 AM
I want to add styles to the current page from within a usercontrol the
correct(better) way.
So i would like to insert the styles in the page head.
Any good approach?
... more >>
Can't find other Controls from my own Control
Posted by Benton at 12/4/2006 11:15:31 AM
Hi there,
I'm creating a "PopUpDatePicker" control, inheriting from Hyperlink. The
goal is to click on that control, select a value from a Calendar and set
this date value to a target control, usually a TextBox.
Problem is on the OnPreRender event, where I try to find the target control.
... more >>
Inherited Control Does Not Handle All Events
Posted by Jeff at 12/4/2006 10:31:56 AM
Hello everyone,
I'm building a series of custom controls inherited from an ImageButton
and certain events are never getting thrown, or at least their handlers
in the code are never running. Init, Load, DataBinding, PreRender and
Unload are all working fine. Click, Command and Dispose never get... more >>
Custom Datagrid disappearing on Postback
Posted by GJH at 12/4/2006 10:22:19 AM
I have a Web Custom Control datagrid written in VB.NET and when the page
does a postback from a Selected Index or Sort command the datagrid
disappears??? anyone know why?
thanks
here is the control's code:
Imports System.ComponentModel
Imports System.Web.UI
<DefaultProperty("Text"),... more >>
Extra "DataValueFields" in custom DropDownList
Posted by groovyghoul at 12/1/2006 10:10:37 PM
Hi
I am building a custom databound dropdownlist, and I would like to have
more than one "DataValueField". I would name them DataValueField2,
DataValueField3, etc.
I'm having trouble figuring out how I would bind to them.
Any help would be appreciated. Thanks.
- Richard
... more >>
|