all groups > asp.net building controls > may 2005
Filter by week: 1 2 3 4 5
Custom Server Control with DataList and ItemCommand not firing
Posted by Ryan Shaw at 5/31/2005 7:20:03 PM
I’m creating a custom server control which contains a DataList.
The ItemDataBound event fires fine but the ItemCommand event does not fire.
I am calling DataBind only on non post backs but still can’t figure this out.
Bellow is the control I’m working with. I know it’s a lot but its just... more >>
Datagrid events disappear
Posted by olcay_sahin at 5/31/2005 1:27:14 AM
Datagrid events disappear when i edit web form (aspx) from visual studio.
How can i solve this problem. ( in InitializeComponent )
Thanks ...
... more >>
Controls Postback --- Please help urgent
Posted by Vishwanathan Raman at 5/30/2005 10:40:02 PM
I have two controls
Control A has a text box and button
Control B has a text box
Both these controls are pasted on custompage.aspx. When I click on button on
Control A I do some processing and then input this information to Control B.
I am able to achieve this but there is some issue. c... more >>
HTMLInputFile Control Question
Posted by Corey Erkes at 5/27/2005 3:13:11 PM
I am using ASP.Net with C# as the code behind and am trying to upload
multiple files with the HTMLInputFile Control. I am able to browse, select
a file, and finally upload, but only one file at a time. Is there a way to
select multiple files to upload at one time using this control, or possibly... more >>
SelectedIndexChanged NOT Firing
Posted by Paul Matthews at 5/26/2005 8:14:01 PM
Hi,
SelectedIndexChanged NOT Firing in my DropDown ListBox
AutoPostBack = true
EnableViewState = True
Autpostback works, but the SelectedIndexChanged Event does not fire !!!
regards
Paul
... more >>
Problem of User Control
Posted by Wilton Yuan at 5/26/2005 5:25:42 PM
Hello,
I am newbie of ASP.NET. I tried to develop a simple user control and add it
to a web page for testing. However, when I start debug, the web page doesn't
show the user control at all, and a file download popup window open to ask
me downloan the web form. I even used the code that download ... more >>
acces controls on aspx page from user control
Posted by fabrice at 5/25/2005 12:00:00 AM
Hello,
I'm trying to access a Label Control on my .aspx page from a User Control.
But I don't manage it.
Do somebody help me to do that ?
My aspx is mypage.aspx
a control label in it :
<asp:Label id="myLabel" runat="server"></asp:Label>
In ascx :
How to fix the Text property of... more >>
User Controls Postback
Posted by Vishwanathan Raman at 5/24/2005 1:51:03 AM
I have two user controls Control1 and Control2 (.ascx).
When the Web Page containing this control gets posted back I have some logic
to determine a value in Control1 that is an input to Control2.I find that I
am unable to achieve this because the Control1 postback is only done after
the Web... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
using CSS style and class in server control
Posted by Steve Richter at 5/23/2005 7:00:47 AM
Looking for some basic guidance on how or whether I should use class=
and <style> and whatever you call CSS to control the appearance of my
menu server control.
It is great that I can render a sequence of <a> elements to the page,
using the class= attribute to control the appearance, with the ... more >>
using user controls in class file
Posted by at 5/23/2005 12:00:00 AM
Hi
I would like to define an instance of a user control, which is in a separate
assembly, in a class file I am trying to build, how can I do this, please?
I am getting compilation error, saying "missing using directive or an
assembly reference", but I have already included the "using ..." dire... more >>
Control Deployment
Posted by kishor at 5/22/2005 11:17:02 PM
Hi,
I have developed a custom control, which is in the form of a DLL. Now I have
to deploy it .. My control uses some javascripts and images and few CSS.
These are now Out of projects and included in the client project. Is there
any way to include these files in control it self. So that I ca... more >>
Problem w Font property in Custom Control
Posted by sadhu at 5/22/2005 3:08:35 PM
Hi,
I'm developing a simple composite control with 2 child controls, a
Label and a TextBox. I expose easily many properties of the inner
controls, in the form i.e.:
BoxToolTip & LabelToolTip,
BoxForeColor & LabelForeColor,
BoxCssClass & labelCssClass...
but when I try to insert the BoxFon... more >>
The nowrap Property of TD Tags
Posted by Nathan Sokalski at 5/20/2005 11:49:11 PM
I want to create TD tags with the nowrap property. I have a user control
which sets the Wrap property of a TableCell to False when dynamically
creating a table as follows:
cellCurrButton.Wrap = False
When the code is run, this creates a TD tag that looks like the following:
<td nowrap="... more >>
Problem Facing in Server Side Validation.
Posted by msnews.microsoft.com at 5/20/2005 12:00:00 AM
Hi All,
I m facing problem in Server Side Validation.
For Example The Scenario is=20
I have two fields on the page
1 Country Dropdown List
2 Province Textbox
3 State Dropdown List
I put two validation controls on the page
1 one is RequiredFieldValidator fo... more >>
ListControl: SelectedIndexChanged event raised without implementing IPostBackDataHandler?
Posted by Henri at 5/19/2005 12:00:00 AM
Hi,
I'm designing a control that inherits ListControl
I was surprised to see that SelectedIndexChanged is part of ListControl. So
why doesn't it implement IPostBackDataHandler?
I added this to my control:
Function LoadPostData(postDataKey As String, postCollection As
NameValueCollection) A... more >>
Framework 2.0 Beta 2 serializing a server control at run time
Posted by JPHILIP at 5/18/2005 1:56:50 PM
How can I persist a server control to aspx code at run time in Framework 2.0
Beta 2.
This can be done at design time with the ControlPersister.PersistControl
method.
The DesignSurface class provides a way to load components into a self
contained design time environement that should provide acce... more >>
how to display windows control in IE browser
Posted by Sheila at 5/18/2005 9:27:56 AM
Hi,
I created a windows control and put it inside a html code, when the page
load in IE brower, the weindows control can not be displayed properly. I also
tried putting the control assembly into GAC, but it still doesn't work. Is
there any special configuration i need to do? Following is th... more >>
Building a custom table control
Posted by I am Sam at 5/18/2005 3:33:14 AM
Hi Everyone,
I am new to Server control development and I need some serious help with
something. I want to build a control that will allow the developer using the
control to define columns so I am building a composit control and inheriting
from the Table web control. My problem is how do ... more >>
unable to Maintaining ViewState Across postbacks in a Usercontrol
Posted by Udit at 5/17/2005 6:04:47 AM
I am writing a usercontrol that works as a years scheduler.This
usercontrol has some elements created at design time like 2 link
buttons to navigate years.
The calander is created dynamicaly by adding days at runtime using
HtmlControls.HtmlAnchor and i add its Server.Click event also at
runtime... more >>
IPostBackDataHandler and validating a control -- the best place to do this.
Posted by Martin at 5/17/2005 12:00:00 AM
Hi,
I have an asp.net page with two composite controls on it as well as a single
button in the asp.net page AND a single dropdown box on the page that has
its autopostback property set to true so that it posts back when ever the
selection is changed.
what i would like to do is when the butt... more >>
General Question about custom controls
Posted by I am Sam at 5/16/2005 4:26:01 PM
In a windows application you use the Method() as an entry point for an
application. In a web application using ASP.NET you use Page_Load() as an
entry point. My question is: In a Custom server control what method do you
use as an entry point?... more >>
Book search
Posted by VV at 5/16/2005 12:00:00 AM
Hi,
I'm looking for a book that explains creating custom web controls for
asp.net from scratch (Inheritance from webcontrol or control namespace).
I've tried so far with different books but they all start and finish pretty
much the same. Bla bla what is asp.net, bla bla hallo world, bla bla inhe... more >>
Dynamically Adding Controls
Posted by Nathan Sokalski at 5/13/2005 5:48:25 PM
I am trying to dynamically add controls to my page, but am having trouble
with controls such as buttons. I have been able to add simple controls such
as Label controls, because they can be placed anywhere. I have managed to
add Labels using the following code:
Dim extralabel As Label = New ... more >>
'Out of memory at line XX' error in Internet Explorer
Posted by Matt at 5/13/2005 9:04:46 AM
Problem description:
I have a TextBox on Web User Control that is loaded into a PlaceHolder
on my ASPX page. There are other Web User Controls on that page as
well.
When the page loads I can input text into the TextBox without any
problem. However, after postback if I try to input text in... more >>
How do I have a UITypeEditor tell the Designer that the component has changed?
Posted by Ken Dopierala Jr. at 5/13/2005 1:25:26 AM
Hi,
When I change properties through the property window on my custom control
and then move focus from that property cell VS.Net runs the
GetDesignTimeHtml() method on my designer. When I implement a UITypeEditor,
change the values, then close the editor nothing happens until I switch the
HT... more >>
help with postback-less calendar control.
Posted by Ramakant at 5/12/2005 9:46:02 PM
hi,
I need to create a Calendar control that does not do postback when a date is
selected...any ideas on how to do this
thanks in advance
Ramakant... more >>
custom control works, but wont display in design time
Posted by B. Rubble at 5/12/2005 8:53:35 AM
Hello all,
I recently created a custom control in c#. The control inherits from
the datagrid. I included a reference to the dll in a web project, and
put a copy of the dll in the bin folder of the web directory. I then
added it to the toolbox by browsing to the dll on the add/remove items
... more >>
Uable to access dynamically generated controls using findcontrol method
Posted by codeneels at 5/12/2005 5:12:07 AM
Hi,
I am unable to access dynamically generated controls using findconrol
method. I tried saving and passing the controls via session object, but
I am trying to retrieve the user-input values which I cant do without
using findcontrol method. Can anyone please suggest an alternative to
usi... more >>
Problem inheriting from the list control
Posted by Swati at 5/12/2005 2:51:02 AM
Hello,
I am trying to develop and ASP.NET custom control. I want to change the
rendering of the list control. So I inherited from the list and I want to
show the UI of my own. The porblem is that the items in the list are getting
lost in postbacks and I am not able to retrieve them in any e... more >>
Losing user control
Posted by David Colliver at 5/12/2005 2:44:52 AM
Hi all,
I am setting up a tab strip in an aspx page. I am using
link buttons to switch between the tabs (at the moment,
it is just link buttons, no tabs...)
Under each link button, I intend to add a usercontrol. I
have written one so far. I am adding the UC dynamically
in the button cl... more >>
need advice with custom control and designer please
Posted by andyjgw NO[at]SPAM gmail.com at 5/11/2005 4:02:40 AM
Hi
I'm a bit new to the designing of custom web page controls and using
them in the properties designer window - need a little advice on a
concept here.
I have two properties in my control - one that is a server name, which
when entered will populate a drop-down list for the second property... more >>
Load an embbed resource image
Posted by Fernando Lopes at 5/11/2005 12:00:00 AM
Hey there!
Someone knows how can I get and show an embbed resource image?
I'm developing a web custom control and this control have some images and I
want to put all these images like a embbed resource.
Tks.
Fernando Lopes
... more >>
Control not maintaing viewState and PostBack not firing event.
Posted by Don at 5/10/2005 1:21:42 PM
I created a nWeb Custom Control that inherits from WebControls.Panel
and add a CheckBoxList to this control. I can't seem to get this
control to maintain it's viewState. I don't think I need any additonal
code since I'm using existing controls. Is this correct?
In the past I've had to overr... more >>
Why don't child control events trigger OnBubbleEvent?
Posted by lisa NO[at]SPAM starways.net at 5/10/2005 6:56:17 AM
I have a control which contains a collection of another control. The
members of the collection can contain child controls themselves, but
these aren't coded. They are merely added between the start and end
tags of the child controls in the HTML view.
If I put a button (for instance) inside o... more >>
How can I set ID of nested custom control myself?
Posted by Ken Dopierala Jr. at 5/9/2005 11:03:51 PM
Hi,
In VS.Net in Design Mode when I add a bunch of the same custom control to my
page VS.Net assigns unique IDs for the parent control (i.e. MyCalendar) but
seems to lose track and assign the same IDs to child controls causing it to
say that more than one control on the page is named the same.... more >>
Failed to load viewstate. The control tree into which viewstate...
Posted by Josema at 5/9/2005 3:58:05 AM
Hi to all,
I have a webform.aspx and inside i have a dropdown list with autopostback
and a place holder...
Depending of the selected index that the user selects in the dropdownlist i
load a usercontrol into the place holder...
i dont know why im getting this error:
Failed to load v... more >>
Object reference not set to an instance of an object
Posted by at 5/9/2005 12:00:00 AM
Hi
Any idea what's happening, please?! TIA, details.....
I have a formA.aspx page and a corresponding class file formA.cs compiled
into a library. User is to fill out some information and click a submit
button to trigger a click event. Here is what I have in formA.cs
public Button btnSubm... more >>
Custom Paging in DataGrid
Posted by Daniel Walzenbach at 5/7/2005 9:41:01 AM
Hi,
I want to create my own custom pager for a DataGrid. Does anybody know how
this can be done?
Thanks for your help!
Regards,
Daniel... more >>
Creating Custom Datagrid that auto adds attributes at <TD> leve
Posted by TimG at 5/6/2005 1:48:19 PM
I am creating a custom data grid in which I want to modify Table, Row and
Cell level attributes. I have discovered how to update the row level
attributes, by Overriding the createitem function. I am trying to figure
out how to do the same at the cell level.... more >>
how to add new ascx control from different project ?
Posted by Krzysiek at 5/5/2005 12:00:00 AM
Hello,
I'm traying add a user control which is written in C# to my project wich is
in VB.NET. How to add this control to my project in VS.NET 2003 ?
Thank you in advance
Christof
... more >>
Help: Getting two controls to talk etc.
Posted by Scamps at 5/4/2005 4:18:05 PM
I'm struggling real bad.
I have created a WUC with a calandar object in it (Cal.ascx).
I have a second WUC with a DataGrid in it (Events.ascx).
I want to select a date in the Calendar WUC, and use the selection event to
pass the date as a parameter to the WUC containing the datagrid and bind th... more >>
Nested Controls not visible to Page?
Posted by lisa NO[at]SPAM starways.net at 5/4/2005 8:17:16 AM
I'm still banging away at my tabstrip problem, which I've mentioned in
other threads here.
One of the things I've noticed is that in design view, none of the
controls inside of a tab page show up in the property grid.
This makes sense, I suppose, because once they're added, even if
they're ... more >>
DataGrid Question
Posted by Josema at 5/4/2005 8:08:14 AM
Hi,
I have a DataGrid that its filled from a DataTable.
this datagrid has autogeneratecolumns=true cause this datatable could have
different number of columns.
My problem its that:
I need that the first column be a link button column.
What its the best way to implement it?, i only ... more >>
Building a Template
Posted by jijis at 5/4/2005 12:00:00 AM
I want to ask how can I make a template like using the one in dreamweaver?
I want to update the design consistently, so I want to use a template
... more >>
value get form web page to user control
Posted by bhavik at 5/3/2005 2:48:50 AM
hi
I have one webpage and In that web page I have one user control
I have one dropdown control in webfrom. I want selected value of that
droupdown control value in usercontrol. I dont want to use session.
plz give me a proper solution.
I have... more >>
Target a different .NET Framework version
Posted by Mircea Pleteriu at 5/3/2005 12:00:00 AM
Hi,
I have developed for my customer a .NET Windows Forms control using the .NET
Framework 1.1.
Now, my customer wants to have the control running on Windows 2003 Server OS
which has a newer version (1.1.4322.2032) of the mscoree.dll assembly. The
development platform's assembly version is 1.... more >>
Raising an event for a parent form to handle
Posted by Arlyn at 5/2/2005 2:29:18 PM
I am trying to make a web user control that raises an event for a parent
form to handle. Can someone help me with this? I am doing the code with
vb.net.
... more >>
ViewState of Contained Controls?
Posted by lisa NO[at]SPAM starways.net at 5/2/2005 10:10:21 AM
I've built my tab control, and it works great. Except for one problem.
Any controls which are contained in any of the tabs lose state. The
tab control itself retains state. Any content added does not.
I tried putting a checkbox control inside of one of the tabs and
outside of the tab contr... more >>
view state In user control
Posted by bhavik at 5/1/2005 12:18:02 AM
I just want to know that can I sotred object In view state.
If yes then can I sotred that object In user cntrol (means can user control
support view state Like......)
Viewstate["Obj"]= Obj;
plz reply me as early as possible.... more >>
|