all groups > asp.net building controls > january 2004
Filter by week: 1 2 3 4 5
datagrid inherited control lost design time settings
Posted by david.avery NO[at]SPAM focusede.com at 1/31/2004 2:59:31 PM
Hi All
I created a web user control inherited from a datagrid for sorting and
encapsulation. It rendered perfectly in design mode, and I could use
the property builder. I applied visual styles, got it all working,
and today, for no apparent reason, The controls are rendering as plain
empty ... more >>
DB connected business objects
Posted by Billy Porter at 1/31/2004 1:26:01 AM
Greetings,
I need some help on writing business objects in C#. These objects are
suppose to communicate with a SQL server DB through a DAL.
So let's say I want to create a new Customer (simply adding a new record in
my Customers table). How would you suggest I go about it? Should I use
static... more >>
Dynamically loading ascx page and having events fire
Posted by Shawn Meyer at 1/30/2004 7:55:35 PM
Im sure this has been discussed here before but I have had no luck finding
an answer.
I am trying to create a simple web app, with a navigation on one side that
will load up pages on the other. The nav side is a custom control, that has
an event that fires upon click, and then sets a selected... more >>
changing the default caption/id for an item in a collection editor?
Posted by Jiho Han at 1/30/2004 6:24:02 PM
I have a custom control - deriving from WebControl - that contains a custom
collection property as the default property.
The collection implements IList and each item is also a custom control
deriving from Panel control.
I don't have a custom collection editor.
Whenever I add my item through ... more >>
how do child controls obtain their IDs?
Posted by Jiho Han at 1/30/2004 10:06:00 AM
I have a composite control which dynamically adds child controls to the
Controls collection in CreateChildControls method, based on various
properties that are set by the page developer.
In any case, my question is at what point do child controls obtain their
IDs? Or do they at all or do I ha... more >>
drag and drop control
Posted by srin at 1/30/2004 3:01:06 AM
Hi All
I am developing a web application where the users should be able to upload files to the server by just dragging a file from the windows explorer or the desktop onto an area on the web browser. Now when i drag a file on to the browser IE tries to open it. i have tried to use the onDragDrop ev... more >>
newbie problem
Posted by Rainer Hahnekamp at 1/30/2004 12:27:30 AM
Hi,
i tried to create my own custom controls and met following problems:
-according to the book "Programming ASP.NET" i created two projects
within my solution. one is the main and the other holds the custom
controls. as output path i set the binary directory of the inetpub path.
all work... more >>
Changing UserControls Dynamically
Posted by William at 1/29/2004 11:30:03 PM
I have 2 user controls and I would like to display 1 of them depending on a
session variable. I have trie a place holder, but it doesnt seem to work.
ie..
Select Case Session("Variable")
Case "1"
PlaceHolder1.Controls.Add(New MyControl1)
Case "2"
PlaceHolder1.Controls.Add(New MyCont... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can you add <col> control to Table webcontrol or HTMLTable control?
Posted by Jiho Han at 1/29/2004 6:11:59 PM
I would like to add <col> tags right after <table> tags but it seems Table
can't have a literal control as a child.
<Table>
<Col width="50">
<Col>
<Col width="50">
<tr><td>1</td><td>2</td><td>3</td></tr>
</Table>
that's kind of what I am looking to do. Do I need to derive the Table
con... more >>
No events are fired in child control
Posted by Casper Hornstrup at 1/29/2004 1:51:15 PM
I have developed a custom web control that may contain any child controls.
Now I have a problem that even though I register an event handler on a child
control,
the event handler does not fire when it should. Do I need to handle event
registrations
of child controls specially?
Casper
... more >>
How to add postback function in Custom Server Controls
Posted by ton at 1/29/2004 1:38:49 PM
In the procedure CreateChildControls I add several controls like check and
textboxes, button link and so on. How can I get the postback respons on the
button link:
The functions:
lblButtonLink_Command and lblButtonLink_Click will not be executed
Please help
Ton
... more >>
Web Server controls not showing up on web page
Posted by Mark C at 1/29/2004 12:41:09 PM
I have been playing with Visual Studio and trying to learn it. I am creating a simple web application with a web form named WebForm1.aspx (using defaults). I placed Label and Button from the Web Forms section of the toolbox. I double clicked the button to get the code behind event for the button ... more >>
web custom controls
Posted by josema at 1/29/2004 2:06:13 AM
Hi to all...
I have a webform and inside 2 webcontrols like this...
Webform.asp
|---------------------------------------------------
| Webcontrol1
| ____
| | | ... more >>
How can I use events within the server control
Posted by ton at 1/28/2004 7:10:29 PM
Hi,
I wrote a customserver control with 2 columns showing the data from 1
record.
i use label & hyperlink as for the field name and text and checkboxes for
the other data.
I want to use the hyperlink. How can I get a postback on that hyperlink.
Ton
... more >>
ParseChildren(false) not adding sub objects in the designer
Posted by Sam Fields at 1/28/2004 12:25:34 PM
I have been wrestling with this code for about 2 weeks now. My goal is to
create a table for formatting purposes. I want to standardize it as a
webcontrol. I want all of the content to persist as top-level controls so
that they are visible to the asp.net designer -- PersistChildren(true). The... more >>
How to detect a modified textbox in webservercontrols
Posted by ton at 1/28/2004 12:02:11 PM
Hi,
I've developed a server control which shows a database record. The fields
are showen in 2 columns and the added controls depends on the datatype.
I use textboxes, chekcboxes and dropdownlists
Now I'm adding a server procedure, but how can I detect that one of the
fields has been modified.... more >>
Windows form control on Web page
Posted by rob thomson at 1/28/2004 11:00:16 AM
VB.NET ASP.NET
Does anyone know how to embed a windows forms control on a web page in =
the same way that you could do active x objects in asp
Thanks... more >>
Init method firing early
Posted by gozza at 1/28/2004 10:41:22 AM
Hi,
Looks like I've misunderstood something about controls lifecycles. I have
an OnInit method override in my control:
protected override void OnInit(EventArgs e)
{
base.OnInit (e);
//some stuff
}
The control is then added to an ASPX page and an event handler is assigned
in the... more >>
Rendering design-time content on a web UserControl
Posted by malibio at 1/28/2004 12:36:06 AM
I created a web user control and would like to add the ability for it to contain design-time rendering capabilities. So that, during development, when the control is dragged to an aspx web form, it'll show html content that contains what it would look like when ran. Is this possible? I created a ... more >>
GetDesignTimeHTML doesn't fire for PanelDesigner.
Posted by swesorick NO[at]SPAM t60t.com at 1/27/2004 12:26:02 PM
I have a custom web control that inherits from
System.Web.UI.WebControls.Panel
What I want is for developers to be able to drag controls from the
toolbox, into my control, and have them appear as they would on the
finished page. My control renders a table around the outside of its
child cont... more >>
Datagrid in Custom Server control Does not show
Posted by ton at 1/27/2004 12:21:33 PM
Hi,
I've created a custom server control dbList which contains a datagrid
In my CreateChildControls sub I add the control
Controls.Add(Grid)
In my Fill sub I have this code (Fill can be executed from a button on the
page like dbList.Fill)
sqlConn.ConnectionString = "workstation id=VRS7;p... more >>
Parsing Children and embeded custom controls
Posted by gozza at 1/27/2004 11:58:02 AM
Hi,
I am developing couple of custom controls and I can't really figure out what
I need to do for one of them to be parsed appropriately.
This is what I want to achieve: in the aspx file, I would have the code:
<cc:ControlA attr1="val1">
<cc:ControlB attiba="valx" />
... more >>
Programmatically detecting property changes and method calls to an given object
Posted by Yasutaka Ito at 1/27/2004 8:57:42 AM
Hi,
Given an object, I want to programmatically monitor it for any property
changes and method calls. The object can be anything (component, control,
etc.), and there is no guarantee that each property has <property
name>Changed event corresponding to it.
What are the best way for this?
I'... more >>
ection Editor not holding collection
Posted by Stanley at 1/26/2004 10:15:03 AM
I am working on a control and trying to use my custom collection with a
CollectionEditor. However, the collectio is never being held after I click
the OK button. The last set of properties is there but the member list is
blank. Below are some snippets from my control. Please help I am going crazy... more >>
concept problem webcustomcontrols
Posted by josemari at 1/26/2004 5:36:07 AM
Hi to the forum..
i have a project with this webcontrol
Webcontrol
_______________________
|
|initialize component
| button +=new event.....
| controls.add(button) |
|
|event onclick ... more >>
System.Drawing and GDI+ Question - Please help
Posted by padawan at 1/26/2004 12:24:15 AM
I have a winforms control that draws a rectangle for a boarder and positions
some graphical elements around the control to create the boarder effect I
desired. In the control I have overriden the onpaint event and added the
code to draw my rectangle and position my graphic items:
Protected Ove... more >>
Collection Editor Issue
Posted by Stanley at 1/25/2004 11:19:03 AM
I have a control that has a collection in it. In the designer the collection
editor comes up fine and I can add items to the collection. But once I click
on OK and then go back into the collection editor the Member side is blank
and the Properties side shows the last item entered. For some reason... more >>
Reg SESSION..
Posted by Jagadeesh at 1/23/2004 3:10:16 PM
hi
i have a login page. as soon as the user logs in, am moving the User_id and
Session Id to a log table.
The problem is that if i use the back button of the browser and login again.
am getting the same session ID. but i want it to be an unique one.....
any help... wud be useful...
Rea... more >>
WebControl, CssStyleCollection and ViewState
Posted by Marri Suliez at 1/23/2004 12:44:31 PM
Does anyone know how the Style property of the WebControl class persists
between calls as if it's added to the ViewState? CssStyleCollection is
not serializable.
The following scenario leads me to believe it is being stored in
ViewState somehow:
1. Add a TextBox and a Button to a form
2.... more >>
Accessing Web User Control from code behind
Posted by Michael Morse at 1/23/2004 10:56:06 AM
How come I am unable to access the properties and methods of my Web User Control from the codebehind of an aspx page
Any ideas how how to do this
-mike... more >>
Custom controls
Posted by josema at 1/23/2004 4:01:09 AM
Hi to all,
this is my question....
Webcontrol1
________________________
| |
|initialize component |
| button +=new event..... |
| controls.add(button) |
| |
|event onclick ... more >>
no scroll events in ScrollableControl?
Posted by Jens Weiermann at 1/22/2004 4:27:22 PM
Hi!
I'm creating a custom control derived from ScrollableControl (a picture
viewer similar to what ACDSee does). My problem is that I couldn't find any
scroll events (what i would expect from a ScrollableControl)...
Any hints?
TIA!
Jens... more >>
Large memory control questions
Posted by Justin Weinberg at 1/22/2004 1:29:03 PM
I have an ASP.NET control that can generate up to 200K in memory on a per
request basis. It reads a series of files, manipulates them in memory and
then writes them out together as a single response stream. This is
unavoidable given what I'm doing with them.
I have a couple questions about t... more >>
How do we build a custom control using datagrid from scratch?
Posted by sumana36 NO[at]SPAM hotmail.com at 1/22/2004 11:50:25 AM
How do we build a custom control using datagrid from scratch? ANy
sites, ideas will be appreciated.
Sumana... more >>
DataList Problem
Posted by Gerald Klein at 1/22/2004 10:08:13 AM
I have a datalist that I subclassed and it has a usercontrol in the header
template, in the usercontrol is a databound dropdown. It loads fine and
posts fine unless I rebind the datalist, then the dropdown loses it's
viewstate. Someone please help their has to be a way around this.
Gerald Klei... more >>
HELP Generating ConnectionString Property from the Designer
Posted by Christopher Calhoun at 1/22/2004 9:21:20 AM
This functionality is implemented in the SQLConnection control in the
connectionstring property. I am Building a custom control from an inherited
base class. (datagrid)
I have exposed a property for a connectionstring which I want the user of
this control to be able to use the way the connecti... more >>
Datagrid in Designer
Posted by Stanley at 1/22/2004 8:16:46 AM
I have a control that I have built a custom designer that shows the content
from an ItemTemplate. However the Datagrid never shows up in the designer.
It seems at this point that the Datagrid is the only thing that will not
show up in the designer for me and this is an issue for me because it wil... more >>
Does anyone know...Please
Posted by Gerald Klein at 1/21/2004 4:57:34 PM
I have a datalist that I subclassed and it has a usercontrol in the header
template, in the usercontrol is a databound dropdown. It loads fine and
posts fine unless I rebind the datalist, then the dropdown loses it's
viewstate. Someone please help their has to be a way around this.
Gerald Klei... more >>
Error ORA-00923
Posted by Amal T. at 1/21/2004 1:02:46 PM
Hello,
I can not make the databound Navigator (Superexpert Data Form) work on
Oracle using
the OLEDB part of it I get the following error
One or more errors occurred during processing of command. ORA-00923: FROM
keyword not found where expected
Can anyone please tell me how to make it work... more >>
Avoid including @ Register tag on every page
Posted by swesorick NO[at]SPAM t60t.com at 1/21/2004 12:06:42 PM
I have written several custom web controls for my aspx pages. In
order to use any of them, I need to include the following line of code
at the top of every aspx page:
<%@ Register TagPrefix="MyPrefix" Namespace="MyNamespace"
Assembly="MyAssembly" %>
Is there any way to declare this at th... more >>
Why is the PropertyDescriptor's GetValue method called multiple times when selecting the descriptor into the PropertyGrid?
Posted by mark belles at 1/21/2004 12:06:07 PM
i have a scenario in which i am using a ICustomTypeDescriptor in combination with an inherited PropertyDescriptor class to display information about an object using the PropertyGrid provided with .NET. I'm am using C#, and have noticed that the GetValue method which is overridden in my PropertyDescr... more >>
ControlDesigner Question
Posted by JimM at 1/21/2004 12:05:46 PM
I'm deriving a Designer from ControlDesigner. The control is working pretty
nicely now.
What I'd like to add is a verb response that will put the control into an
interactive design mode (where some of the properties can be modified a bit
more elegantly than with the Properties window.
I'm ... more >>
Template Controls (HowTo)
Posted by Stanley Glass at 1/21/2004 11:55:04 AM
I am looking for some help or a tutorial on Template controls. Basically the
idea is to be able to build a small table with two rows and in the first row
will be some text and an image. Then in the second will be anything the
developer wants to put in there. Now all I can ever seem to find is an
... more >>
Composite Controls (Maybe I just don't get it)
Posted by Shane NO[at]SPAM agro-metal.com at 1/21/2004 8:04:19 AM
I've been searching for a while and have found jack on composite
controls... Most source say it is as easy as this .. what is wrong
with the following code...
I'm trying to change a property of the label, works in design... but
as soon as I build all is lost...
I've tried everything ... what ... more >>
.js file for custom controls
Posted by Erik Cruz at 1/20/2004 8:36:20 PM
I have some javascript functions shared among several controls I wrote. I
want to encapsulate all these functions inside a .js file, creating a
library like the one used by the asp.net intrinsic validator controls. My
doubt is how to add a reference to this .js file when one of my controls is
pl... more >>
selectedindex after dropdownlist is added to placeholder
Posted by Michael Tanner at 1/20/2004 1:25:15 PM
I have created a custom control that derives from the PlaceHolder control.
Based on a property setting, I load a DropDownList or a TextBox into the
PlaceHolder control. I load the DropDownList or TextBox control in
protected override void OnPreRender(EventArgs e).
The issue that I have is get... more >>
Autotab control
Posted by rbscheer NO[at]SPAM my-deja.com at 1/20/2004 1:23:05 PM
Hi.
I wrote a component derived from the textbox control that has an
Autotab feature the component works well on both Netscape and IE. My
only problem is that sometimes, on IE, I receive the error:
"Can't move focus to the control because it is invisible, not enabled,
or of a type that does n... more >>
Dynamically Created RadioButtonList Items & ViewState
Posted by jdn at 1/20/2004 12:36:08 PM
I'm having a variation on the typical problem with saving ViewState of dynamically created web controls.
I have two radiobuttonlist controls (call them rbl1 and rbl2). Both are created at design time. Each has three items in their Items collection.
When the selected item in rbl1 changes, the... more >>
Server.Transfer in ASP.NET - weired problem
Posted by Nedu N at 1/20/2004 11:43:59 AM
Hi All,
I am facing a typical problem in my .NET application with the pop-up script
messages. The thing is that its working fine when i run on my development
machine but not running in expected manner when i move it to Prod
environment. Please have a look at the following code snippet...
//... more >>
to load user control runtime
Posted by Mahesh at 1/20/2004 10:56:08 AM
I've created a library of page templates and some user controls. These files reside on d: drive instead of c:\inetpub\wwwroot\webapp directory.
When I use LoadControl("webUC1.ascx"), it looks for this file in c:\inetpub\wwwroot\webapp. How do I force it to look for the user control in any director... more >>
|