all groups > asp.net building controls > april 2005 > threads for april 1 - 7, 2005
Filter by week: 1 2 3 4 5
Set the width of a custom control with 2 controls inside
Posted by Fernando Lopes at 4/7/2005 2:18:34 PM
Hi there.
I'm developing a custom controls.
Inside this custom control, I want to put 2 controls: one textbox and one
dropdownlist.
I want to create a Width property for this custom control.
The dropdownlist shoul have 50px.
The textbox must have variable width;
So, how can I set this prope... more >>
SERVER CONTROL DOESN"T RUN
Posted by Lloyd S at 4/7/2005 10:23:09 AM
I wrote a server control. It does not run because it is looking for the
assembly. I get an error messgage in the page saying:
Parser Error Message: File or assembly name CustomCalendar, or one of its
dependencies, was not found.
Here is the Assembly Load Trace:
=== Pre-bind state info... more >>
Urgent User Control
Posted by Prince Mathew at 4/7/2005 12:00:00 AM
Hi All,
I have a requirement. I am throwing an exception from my user control I want
to catch this in my container page. Is this possible?
I don't want any event to be raised.
PLEASE HELP ME.
Thanks
Prince
... more >>
Server control development
Posted by Sundararajan at 4/6/2005 9:39:02 PM
Dear Folks,
I am developing a Header server control. as we know the header control
is always going to be at the top of the web page. is there any means to
achieve something like, when i drag and drop the Header server control into
my Web Page,
i. It gets itself aligned to the t... more >>
Get Value of a control from my Own Control
Posted by David at 4/6/2005 4:32:21 PM
Hello,
i have this code:
public class MyControl :System.Web.UI.Control, INamingContainer
{
protected override void CreateChildControls()
{
TextBox myTextBox = new TextBox();
myTextBox.ID = "txtMyTextBox";
this.Controls.Add(myTextBox);
}
}
When the p... more >>
Strange error from: Dim myState As Object() = CType(savedState, Object())
Posted by lisa NO[at]SPAM starways.net at 4/6/2005 2:09:14 PM
Every book and every website I've seen that talks about how to save
state for child controls in a composite webcontrol says to do something
like the following. But when I do it, I hit the line:
Dim myState As Object() = CType(savedState, Object())
....and I get this error:
Cannot convert... more >>
Open a web from a server control
Posted by Ahmed Hashish at 4/6/2005 2:01:07 PM
How could I open a modal webform from a server control?
I'm using the render sub and writer object to output script that open a
webform, but it gives error object not found, it tries to open the webform
from the client application directory, how could I enforce it to open the
webform from my ... more >>
Output script
Posted by Ahmed Hashish at 4/6/2005 1:12:16 PM
I have created a server control and overridden the sub Render to output
JavaScript functions, the problem that if the client used two instances of
my control the control generates the JavaScript functions twice which cause
a lot of problems, how could I solve this problem?
Ahmed
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ViewState
Posted by Mike at 4/6/2005 10:21:18 AM
Hi,
I'm developing a Composite Control that have a <div>, inside a Table, that
can be moved by the user with the limits of the table. What I want, is that
when postback raised the <div> maintain the position seted by the user.
Somebody know how can i do that?
Thanks
... more >>
What's wrong with this custom control?
Posted by Sameeksha at 4/6/2005 1:39:02 AM
I've created the following control and placed it on a web page. When I click
on 'Add' button, it should add a new item to the dropdown list, but that's
not happening. Can anybody tell what's wrong with this code?
public class TryControl : System.Web.UI.WebControls.WebControl
{
protected ... more >>
UserControl and Javasript
Posted by Jay at 4/5/2005 5:41:20 PM
I have been having trouble with using JavaScript in UserControls.
Specifically, the trouble is in using window.open (url). Sometimes the
system will hang. Sometimes the original page, from which I am opening a
new window, will go blank. I have used javascript with asp.net many many
times with... more >>
How to "track" a (child) control's ViewState / SaveViewState?
Posted by Zarko Gajic at 4/5/2005 5:35:29 PM
Hi, I'm developing a composite control that accepts other controls using
PersistChildren(true).
Now, for some unknown reason the ViewState of a DropDownList child control
is not saved.
For example: a DropDownList is binded with some collection using "if NOT
Postback ...", after a postback t... more >>
1st element not displaying in a List Box
Posted by gurvar at 4/5/2005 1:37:02 PM
Hi,
I'm trying to populate a list box with items from a db based
on selection from a combo id.
If there are 2 elements, the 1st is getting left out
If there are 4 elements, teh 1st is getting left out
Thanks in advance,
Following is the code:
Try
'Response.Write(strSQlQuery)
'Get a ne... more >>
Page button throws exception even when handler is empty
Posted by ~~~ .NET Ed ~~~ at 4/4/2005 3:13:23 PM
I have a web form that displays some information and then at the bottom it
has a Button control. This control has both a Click and Command event
handlers.
I was getting the following exception when the button was pressed:
[NullReferenceException: Object reference not set to an instance o... more >>
Hiding Email address
Posted by me at 4/3/2005 11:05:22 PM
Is there code out there to truly hide email addresses from view source or
spiders(crawlers etc).
TIA
Aaron
... more >>
An ImageButton that retrieves its image from a Resource
Posted by ~~~ .NET Ed ~~~ at 4/2/2005 2:44:16 PM
Well, that sums it up, doesn't it? I would like to have an image button
(more compact than a regular button) in a web custom control. However, to
minimize dependencies and limit installation nuisances I was thinking of
retrieving the image of the image button from an embedded resource, only
... more >>
Composite Control question
Posted by ~~~ .NET Ed ~~~ at 4/1/2005 6:06:51 PM
Background:
My (web) composite control has several drop down lists and buttons..
These drop downs get their data from the database (the drop downs are
DataBind'ed). And these are kind of cascaded (2nd depends on the selection
of the 1st).
Issue:
When I select an item from the dropdo... more >>
Why is this.Page NOT initialized when a composite control's CreateChildControls is being executed
Posted by ~~~ .NET Ed ~~~ at 4/1/2005 6:01:57 PM
That is exactly what I have noticed, my web custom (composite) control gets
instantiated and initialized on the page, so I see that
CreateChildControls() is called as I am debugging it. What I find strange is
that I see that while within CreateChildControls() the "this.Page" property
is unde... more >>
PersistenceMode
Posted by Mike at 4/1/2005 3:39:39 PM
Hi,
I'm building a WebCustomControl, and if i inherit from
System.Web.UI.WebControl and set the attribute
DesignerSerializationVisibility = Content and PersistenceMode =
InnerProperty to a System.Web.WebControls.Style property, in the design html
of the control each style property is nested bet... more >>
control emitting javascript for document.onload
Posted by JV at 4/1/2005 1:02:27 PM
If a control needs to execute some client-side script when the document is
loaded, it's easy enough to register a script. Using
RegisterStartupScript() you could emit a script that starts with "<SCRIPT
FOR=window EVENT=onload ...". Unfortunately, this will work only once.
Thus if there is ... more >>
|