all groups > asp.net building controls > july 2003
Filter by week: 1 2 3 4 5
webuser control not responding to event?
Posted by Comcast at 7/31/2003 10:25:29 PM
Newbie to VS.NET so hopefully this is a simple problem ....
I'm desiging a multipage site that has a common banner along the top and
navigation controls down the left side so I read that the thing to do is
have a main.aspx file with the common areas "static" and then have a
PlaceHolder control... more >>
System.Web.UI.Design.ControlDesigner never calls GetErrorDesignTimeHtml on Exceptions
Posted by John Saunders at 7/31/2003 7:52:44 PM
I can create a reproducer for this later, if needed, but I'm too aggravated
at the moment.
I have a control whose GetDesignTimeHtml method pretty much just calls
base.GetDesignTimeHtml(). ControlDesigner.GetDesignTimeHtml of course, calls
((Control) component).Render(htmlStringWriter) and then... more >>
Basic Question
Posted by Mark Fox at 7/31/2003 4:09:36 AM
Hello,
I am not sure if this is possible, but it's a simple
enough situation that it seems as though it would be.
I have a page main.aspx with a couple user controls
in it Control1.ascx and Control2.ascx. I am attempting
to figure out how to hook up an event handler of some
... more >>
Page Access
Posted by Shawn B. at 7/30/2003 11:37:18 PM
Greetings,
Is there a way, from inside a custom WebControl, that I can modify the
attributes of the parent page? I ask because if a certain property is set
in my WebControl, I would like it to add an attribute (onResize, for
example) to the page's <Body> tag that calls some JavaScript it regi... more >>
Custom Control
Posted by Darren at 7/29/2003 11:00:58 PM
Can someone please help with how to access a generated
value in a custom control.
I have an aspx page that contains an ascx (ctl1) control
which in turn contains several ascx controls (ctl2, ctl3)
I need to click a button on ascx1 and retrive a value
from ascx2
My project is based on... more >>
Toolbox icon
Posted by Shawn B. at 7/29/2003 8:37:48 PM
Greets,
When inheriting WebControl, how do I omit it from being added to the toolbox
when I add items to the toolbox. Initially, it adds all the controls in the
assembly to the toolbox. What if there is one I don't want added?
Thanks,
Shawn
... more >>
Button Type
Posted by Shawn B. at 7/29/2003 4:55:22 PM
Greets,
The Button control is by default rendered as "Submit" type. I would like to
change it to "Button" or "Cancel" if I choose.
In the render event, I'm saying
Attributes.Item("type") = "button"
and it's rendering two "type" attributes, one for "Submit" and one for
"button"
Ho... more >>
Nested Composite Controls
Posted by adunfield NO[at]SPAM hotmail.com at 7/29/2003 3:03:38 PM
I have built a composite control that takes in XML and creates
controls based on the XML. One of the controls that this composite
control creates is itself a composite control. The problem that I am
running into is that the second composite control is not receiving any
events. If I use this s... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Postback
Posted by Shawn B. at 7/29/2003 2:41:30 PM
Greets,
Is it possible to disable the postback for a button control if I inherit
from it?
Thanks,
Shawn
... more >>
Readonly Checkbox?
Posted by John Kievlan at 7/29/2003 2:23:51 PM
Well, I'm sure you guys know that the ASP.NET Checkbox
control doesn't have a Readonly property. I'm writing an
application where I need it to have, that is, I want to
be able to set the Checked property in code, but if the
user clicks on it, the checkbox won't change.
Now, I'll admit I ... more >>
border around controls
Posted by sramruttun at 7/29/2003 1:35:30 PM
hi there
How can I put a rectangular border around some controls (similar to the
Frame control in VB6) ?
NB: I cannot use the panel control bec some of my code is based on the panel
control...
I tried using a table with border=1 but the border appears around all
controls in the table (si... more >>
Code for building a Control
Posted by Huzaifa Matawala at 7/28/2003 1:55:30 PM
hi everybody
i want to write my first control in asp.net
can anyone send me the code or related links
thanks
huzaifa
... more >>
Drawing.Color Problem
Posted by Shawn B. at 7/26/2003 1:31:38 PM
Greetings,
In creating a server control I added a property of type
System.Drawing.Color.
When the control is rendered, it generates a style that contains a style
called "backgroundColor" that will hold the value of
[Property].ToKnownColor.
It works well, except in some cases (if you set ... more >>
Custom Property doesn't save values
Posted by Evgeni Presmann at 7/25/2003 12:19:18 PM
Hello all,
I've defined a custom control with the property of type string[].
If I assigned values to the property at design time, I can see these values
in the control as expected. However if I compiled the application, all the
values disappear.
Help please
Regards,
Evgeni
public class... more >>
Templated data-bound server control design question
Posted by joe_s at 7/25/2003 12:43:53 AM
Hello,
I am working on an n-tier .NET application. The presentation is through aspx
pages and custom data-bound server controls which use templates to separate
interface from content.
In all the samples I've seen regarding such controls, the templates are
instantiated in a class which inherit... more >>
Nesting server controls with a composite control don't generate postback events
Posted by jsausten NO[at]SPAM hotmail.com at 7/24/2003 6:24:22 PM
Hi,
I am new to web controls so please forgive me if my terminology is not
100%!
I am attempting to develop a composite control, based heavily on the
Chapter 16 sample code in James Henry's "Developing .NET Custom
Controls and Designers using C#" (see
http://www.bluevisionsoftware.com/WebS... more >>
Loading a user controls in Design View
Posted by oneeye at 7/24/2003 2:51:19 PM
Hello All,
I have designed and built a web control that loads a user control at run
time. The question I have is, can I Load the user control in design view?
Any Ideas or code snippets would be really useful.
Thanks a bunch
oneeye
... more >>
ViewState Problem with Composite Control
Posted by Rory at 7/22/2003 11:45:40 PM
I am creating a composite control that contains an iframe.
I am creating this iframe in the 'CreateChildControls()'
method by adding a literal control with its definition. I
also have a hidden field (named using mybase.ID), which i
used to populate with the controls 'Text' property.
The p... more >>
Calling .NET Assembly from JavaScript...
Posted by arc at 7/22/2003 11:44:45 PM
I have a requirement to call .NET assembly (Custom component) from thin
client Page (ASPX).
This Assembly talks only TCP/IP with an external server and hence cannot
interact over HTTP.
That's the reason I am trying to make a call from the Client Script so that
the information could be captured ... more >>
How to get Data from Listbox?
Posted by news.microsoft.com at 7/22/2003 1:02:44 PM
Hi there i've 1 Listbox with some listitem.
can someone tell me how get all value of listitems in this listbox?
thx :)
... more >>
Checking if other controls exist
Posted by Brian Vallelunga at 7/22/2003 1:00:30 PM
I'm creating a small control that just outputs an image or text with some
javascript code. What I want is for the control to check if a certain
javascript function has been written on the page it is hosted on already. If
it has, it just outputs its code, otherwise it writes out the common
functi... more >>
ASP-DotNet Problem
Posted by GN at 7/22/2003 12:44:30 PM
I have to design a web application in ASP DotNet Environment.
A corporate user logins and the privileged-based menu/side bar are created.
While clicking on menu he will be allowed to perform business related
operations on the same single page (for multiple objects).
In my last design... more >>
Creating controls at runtime
Posted by geronimo at 7/22/2003 12:18:20 PM
Hi,
I am trying to create a TextBox at runtime, using the following code with a
CodeBehind-File:
Dim txtBox As New System.Web.UI.WebControls.TextBox()
txtBox.ID ="txtTest"
Page.Controls.Add(txtBox)
I am getting an server-error - 'TextBox' has to be used with the FormTag
runat=server. Wher... more >>
Problem with ToolboxBitmap
Posted by Igor at 7/21/2003 10:53:12 AM
Hallo,
I create a Control inherited from Web.UI.Control. I create a BMP Image and
name it as exactly so as the Control.
Set the "Build Action" property to "Embedded Resource" and add a Atribute to
the Class definition fo my Control.
as so
System.Drawing.ToolboxBitmap(GetType(MyContorl))... more >>
WebControl and height?
Posted by Rocky Moore at 7/21/2003 2:52:24 AM
I have a WebControl that I have built which simply creates a DIV and applies
the Style or Class to it. Simple. In the Designer however, it does not
appear with any height to speek of if it is set to 100%, however in the
browser it looks fine. I thought it might be a problem rendering the DIV i... more >>
Building a custom control that implement table server control
Posted by Thomas Ekegren at 7/19/2003 10:18:20 PM
Hi,
I want to create a custom control that implements the table htmlcontrol. In
my webform page I want to include that custom control and add content to a
cell in my custom table control. I don't want to do this dynamically in the
page_load event but in the HTML design view.
Example:
My ... more >>
Creating a new control collection
Posted by scott NO[at]SPAM sdalexander.com at 7/19/2003 9:09:15 PM
I have an aspx page that has many nested controls. For example I have
Panels that contain text boxes. There is also text boxes on the page
itself. I'd like to loop through every control on the page and build a
collection of those controls that interest me (in this case the text
box controls). I ... more >>
Designer Support for Selecting Web Form control
Posted by Paul Ingles at 7/19/2003 2:00:14 AM
I've got a validator control that has somewhat limited designer support. It
has an additional property that contains a string identifying another
control on the form, e.g. "MyListBox".
The BaseValidator control has a ControlToValidate property that does exactly
what I need it to for this prope... more >>
Collection Editor vs. Item ID
Posted by John Saunders at 7/18/2003 7:31:16 PM
I'm using the standard CollectionEditor to allow design-time editing of a
list of controls, all of the same type. I notice that when you enter a new
item and specify its "ID" property, that row in the list takes on the name
of the ID.
But if you close and re-open the collection editor, you fi... more >>
Web Combo Box
Posted by Sean at 7/18/2003 3:38:45 PM
hi,=20
has anyone come across a web combobox, which manipulates the dataset =
rather than query the database everytime, to shorten the resulting =
resultants.
i did check out a couple of the examples, specially the one from =
dbcombo.net .. but it seems from their code, that they keep query... more >>
Re: Design time "move" and "resize"
Posted by Rob Mayo at 7/18/2003 3:29:45 PM
I saw the following post on dotnet24x7.com. Usually Victor Garcia Aprea =
has been pretty helpful.=20
I have a similar issue. I WANT to derive from control, not webcontrol =
because I don't want all those other properties, only mine. I'm just =
seeking a little clarification and perhaps a code s... more >>
Accessing values of child controls after postback
Posted by Martin Pichler at 7/18/2003 11:07:49 AM
Hi!
I have a placeholder to which i add a Table with 2 columns. In one of the
columns are textboxes with an unique ID (box1, box2, .... boxN). the user is
supposed to enter values into these textboxes and then klick submit (button
is static). on the click event i want ro read out the values of... more >>
Failed to load viewstate
Posted by Dan at 7/18/2003 10:50:13 AM
I'm trying to replace my panels with usercontrols. On
pageload, I pull an array and it's index from the session
and I load a corresponding usercontrol and add it to a
placeholder. This control dynamically gets webcontrols
added to it. When user clicks next, I remove the control,
get the n... more >>
How do i use mshtml
Posted by Mathew George at 7/17/2003 12:33:40 PM
Hello,
How do i use mshtml in asp for parsing an html file.
Can anyone give the code in vb.....
Mathew
... more >>
Providing Browse capabilities for a File in property grid
Posted by Trevor Andrew at 7/17/2003 11:09:13 AM
Hi There,
I am developing a custom control which has a property that represents a file
within the current web application (an XML file as it turns out). I would
like the property grid builder button to invoke the same sort of editor as
used by the standard XML web form control properties Docum... more >>
CreateChildControls Event before Click Event
Posted by mark NO[at]SPAM corporatedigital.com at 7/16/2003 8:19:54 PM
Issue:
I want to create a control that will accept a click event and then in
response completely change it's look and feel. This could potentially
mean a new completely new set of child controls than what the control
had previously.
Problem:
The problem is that the click event holds the key... more >>
RaisePostDataChangedEvent
Posted by oneeye at 7/16/2003 6:17:48 PM
Hello All
I am trying to understand the difference between
RaisePostDataChangedEvent and RaisePostBackEvent what is each method
intended for??
Does anyone have a good explanation or can anyone refer me to a decent
article on the matter.
Cheers
... more >>
Custom Control - inherit child properties?
Posted by Andrew at 7/16/2003 5:20:51 PM
Hey All,
I'm building a custom control that contains a
System.Web.UI.WebControls.Calendar object and am wondering about how to
make the calendar's many properties appear in my control's property
window. I could make a bunch of public properties like
Calendar_TodayBackColor, and map them inter... more >>
DLL cannot be copied to the run directory
Posted by art a at 7/16/2003 4:25:57 PM
Hello folks,
I'm getting the following error when compiling my control library:
The file 'DDSControls.dll' cannot be copied to the run directory. The
process cannot access the file because it is being used by another process.
Could not copy temporary files to the output directory.
My in... more >>
ComboBox Control
Posted by Sean at 7/16/2003 3:57:43 PM
hi,=20
i am trying to implement, the combo control which is available online at =
http://www.codeproject.com/useritems/ComboBox.asp
but i seem to land up having problems, i can't open the source code in =
VS.NET and don't know how to go about implementing it.=20
Does anyone know of a wa... more >>
Event not firing. Adding controls dynamically to UserControl
Posted by nitin at 7/16/2003 8:00:43 AM
I am adding controls to the UserControl dynamically and
then loading the UserControl Dynamically.But I am facing
problem with firing of click event of one of the buttons
within the UserControl.It does not fire.
If I do the same thing in a aspx page instead of a user
control then the event f... more >>
Event not firing.adding dynamic controls to Usercontrol.
Posted by nitin khungar at 7/16/2003 7:59:13 AM
I am adding controls to the UserControl dynamically and then loading the
UserControl Dynamically.But I am facing problem with firing of click
event of one of the buttons within the UserControl.It does not fire.
If I do the same thing in a aspx page instead of a user control then the
event fires ... more >>
Using ParseChildren attribute to load child tags - VS removes tags
Posted by Steve at 7/15/2003 5:05:35 AM
I am building a poll control, nested in the tag I have child tags to setup
the poll options.
Everything works fine, but when I edit a property in VS design mode, VS
removes the child tags.
C# Code:
[ParseChildren(true, "Options")]
public class PollForm : Control, INamingContainer
{
... more >>
Need example: To create Initialize Code für a custom control in CodeBehind File.
Posted by Igor at 7/14/2003 1:19:08 PM
Hallo,
I create a Custom WebControl and need to create a initialize Code for that
Control in the Codebehind file.
my question: how can I crete initialize statments in the Method
"InitializeComponent"?
I searched the web, but don't found enything useful for me.
Thanks
Igor
ps.
sorry ... more >>
Composite Assemblies Not Loading
Posted by gmcgilli NO[at]SPAM hotmail.com at 7/14/2003 11:23:52 AM
Hi,
I have a customWebcontrol that has the following hierarchy
WebPage(aspx)
|
---->CustomWebControl
|
---->Assembly1
|
----->Assembly2
|
---->Assembly3
Adding the customWebControl to the aspx through Visual Studio
aut... more >>
a Calendar control with date range selection
Posted by Cann at 7/14/2003 3:04:09 AM
http://cheapdevtools.com/product/product.asp?ProdID=246... more >>
Multiple controls, Same name
Posted by Michael Tissington at 7/13/2003 9:26:49 PM
I have created multiple controls with the same name but in different
namespaces (each one in a different folder)
I now need to reference these controls on a single web page but when I try
to browse the page I get errors saying the the control is defined more than
once.
How do I make each re... more >>
Dynamic creation of UserControls - Problem with postback
Posted by Roger at 7/12/2003 9:26:31 PM
I have created a UserControl, and I am dynamically adding
it to each row of a datagrid with a sub called by the
datagrid's 'OnItemDataBound'. That part works.
'creates the instance of the control
Dim ctl As MyCtl = CType(LoadControl("MyCtl.ascx"), MyCtl)
'adds it to the datagrid inside a te... more >>
datakeyfield and 3 fields making up the PK
Posted by sramruttun at 7/10/2003 10:49:39 AM
hi
In my database I have a table in which 3 fields make up the primary key. I
use a datagrid to add, edit/update and delete entries of that table. To
facilitate this work we often use the datakeyfield property to allow us to
get the primary key of the row where the edit/delete is being done. Thi... more >>
Image control
Posted by Uli at 7/10/2003 9:59:09 AM
I would like to upload a form which also containing images to a MS SQLServer
database using XML. What I would like to know is:
1. Is there a webcontrol which would allow one to insert an image (cut and
paste or some other entry method)?
2. How would one parse the image data into xml?
Is anyb... more >>
|