all groups > asp.net building controls > march 2004 > threads for march 8 - 14, 2004
Filter by week: 1 2 3 4 5
How to find out in Page_Load which linkbutton event is fired?
Posted by Andreas Klemt at 3/14/2004 3:03:01 PM
Hello,
how can I find out in Page_Load which linkbutton event is fired?
Thanks for any help in advance!!
Andreas
... more >>
Pending Events?
Posted by Mark Olbert at 3/14/2004 1:54:19 PM
I've noticed something in a calendar control I'm writing relating to event processing.
My control has some links built into it to allow you to move forward and backward one or more months
at a time. When one of those links is clicked, an event is generated that the control library
processes. Th... more >>
Problem with ParseChildren = false and ITemplate
Posted by Sam Mithani at 3/14/2004 9:48:54 AM
I wrote a templated control for generating queries. initially, I had set
ParseChildren=true. This worked really well, but I though I could improve
upon it to allow users to use declarative syntax for some of the collections
in the control , such as SearchFields. Thus, I set ParseChildren=false a... more >>
Design time problem
Posted by Stefano Mostarda at 3/13/2004 1:16:55 PM
Hi there,
I'm developing a custom control which hosts several class properties.
for instance:
The control hosts a composite BarStyle property which has thre
properties and a simple Count property (integer)
I can view and set these propertes in the property editor. when I switch
to th... more >>
Dynamically added checkboxes disappear after postback
Posted by Henke at 3/13/2004 12:07:31 PM
Hi,
I need some help to sort things with a server control.
Two linkbuttons, one will read a directory and create a checkbox for each
file in the directory.
After choosing files by clicking the checkboxes the other linkbutton is
clicked and the checked files
will be added to an arraylist
I... more >>
User Control Does Not Display
Posted by jjy at 3/12/2004 5:58:35 PM
Hi.
I have a user control as header.ascx, and it's in
inetpub\wwwroot\admin\control directory. admin is the application root
directory. I include it in a file called home.aspx with the following line.
home.aspx is in the application root directory. However, it does not
display.
<%@ Regi... more >>
Books on Creating Data Aware Webcontrols?
Posted by Mark Olbert at 3/12/2004 8:36:04 AM
Can anyone suggest a book or two on how to build webcontrols that work with various data sources?
The Microsoft documentation absolutely sucks the big one (IMHO, whoever released the framework
documentation as it currently stands ought to be summarily fired for gross incompetence).
- Mark... more >>
Bug with a DataGrid bound on every request
Posted by Dave Reed at 3/11/2004 11:11:08 PM
Most of the time you bind a datagrid when it's not a PostBack. The DataGrid then uses ViewState to remember all the data to rebuild it on subsequent postbacks. Thats great when it is expensive to grab the data, like running a sql query might be
If you've ever done a View Source on a page with a bi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
System.ComponentModel.Design.CollectionEditor is missing
Posted by Jeff Gochin at 3/11/2004 6:36:09 PM
I can't seem to find this System.ComponentModel.Design.CollectionEditor in the .NET Framework 1.1. There is documentation on it but the class doesn't actually exist... as far as I can tell
Does anyone know anything about this class?... more >>
Changing visibility onmouseover
Posted by Frances Valdes at 3/11/2004 5:27:19 PM
Newbie question - I'm sorry if this is basic but I've been struggling with
it for 1 1/2 days now and was dreaming about it last night. Please save me
from further dreams about my programming!
I had a webform on which I had a table with 3 DIV's (2-5) set to
"style.visibility: hidden;". I had an... more >>
ControlBuilder Saga -- and plea for help!
Posted by Mark Olbert at 3/11/2004 5:18:41 PM
I'm continuing to wrestle with getting my custom control to recognize inner property tags that look
like this:
<DaysSelected DataSource="a" DataMember="b" DataField="c" />
This tag is intended to initialize a property in my control that is of type DataInterface. The
DataInterface class expos... more >>
Creating Object from Inner Property
Posted by Mark Olbert at 3/11/2004 10:27:10 AM
I have a custom web control that exposes a couple of inner properties related to data. The layout of
the those properties is:
<cc1:Calendar id="Calendar1" runat="server">
<DaysSelected DataSource="a-data-source" DataMember="a-data-member" DataField="a-data-field" />
</cc1:Calendar>
The ... more >>
Show/Hide Div in a user control
Posted by Mark at 3/11/2004 1:18:33 AM
Hi - I'm getting there with the controls (well making progress I'm happy
with) - I've taken some samples, and amended it to give me a colour
chooser (just experimenting) - but what I'd like to know is, is there a
way I can amend what I have to add another button to the control, which
when fired ... more >>
passing variables from webform to usercontrol code
Posted by DC Gringo at 3/10/2004 3:13:12 PM
I have a two panel controls, one that shows if PageID = 10000 and the other
when PageID = 10001. Problem is that these variables are set in the
usercontrol.ascx.vb rather than the calling webform index.aspx.vb. How can
I declare and set this variable from the webform and have the user control
... more >>
Persisting Events in WebControls
Posted by Mark Olbert at 3/9/2004 9:17:29 PM
How do I persist an event in a WebControl? Right now I've tagged the public event... declaration
with [PersistenceMode(PersistenceMode.Attribute)], but that doesn't seem to result in any text being
output to the XML for the custom control on my test page.
Oddly enough, though, the event is pers... more >>
ViewState Question
Posted by Mark Olbert at 3/9/2004 2:50:09 PM
Okay, I give up... how do you get a customized descendant of Style to persist through ViewState??? I
tried following the online docs, but I'm obviously doing something wrong. Here're the overrides I
created in my WebControl class:
protected override object SaveViewState()
{
object baseState ... more >>
Urgent Question in Custom Paging User Control
Posted by Andy Eshtry at 3/9/2004 11:37:30 AM
Dear Friends
I try to use the following user control from Mr. Olovyannikov
http://www.freevbcode.com/ShowCode.asp?ID=5574 but I think there is a bug.
When I put DG.PageSize = 2 and dgPager.PagesToDisplay = 5, it shows the
first 5 buttons correctly but when I click on "Next 5" link, it shows 7... more >>
add server control to stringbuilder
Posted by george_Martinho NO[at]SPAM hotmail.com at 3/9/2004 7:17:35 AM
Hi
I'm trying to add a server control to a stringbuilder and I'd like
some suggestions please.
The output of the server control is 3 html combo boxes and I would
like to add the html output to the StringBuilder and then output
everyhting as HtmlTextWriter.
Thanks in Advance if you can help ... more >>
dynamicaly created custom control not visible
Posted by Michel at 3/9/2004 2:51:05 AM
Hi all
I have created a custom control which contains dropdownlist.
allready use this custom control on several places without a problem
But when I try to dynamically create it in my code behind, it is no
displayed on my page
What I do: I have a datagrid on my page, which contains a list o
... more >>
Updating Design Time Based on Style Changes
Posted by Mark Olbert at 3/8/2004 5:46:27 PM
At designtime, how do I detect when a Style subproperty (e.g., Font.Bold) has changed so that I can
redraw the display?
... more >>
Page_Load execute twice
Posted by Samuel Lee at 3/8/2004 10:34:28 AM
Dear all,
I have made an user control that contain DataGrid object and allow user edit
data by clicking DataGrid buttons.
This user control will put into another user control.
Now, when I click edit button (EditCommand), the Page_Load is execute twice,
and the EditItemIndex is lost.
Ho... more >>
Pagination
Posted by Patrice Scribe at 3/8/2004 10:17:30 AM
I would like to implement pagination for my own templated control. How do I
approach this ?
TIA
Patrice
--
... more >>
Fundamental asp.net server control question
Posted by Jiho Han at 3/8/2004 10:14:56 AM
I am trying to create a custom control. However, I came across a question
about how a control persists its state. Before you say ViewState(perhaps it
is), let me explain the scenario.
Most controls are contained inside an HTML form tag wether it be a client
side or server side form. And pos... more >>
Workaround for GetSavedLicenseKey in ASP.NET
Posted by Gabriel Fogante at 3/8/2004 4:27:09 AM
Hi
I have written a workaround for GetSavedLicenseKey in
ASP.NET applications. You can see it at
http://gfogante.blogspot.com
Regards,
... more >>
|