all groups > asp.net building controls > june 2007
GridView Inherting
Posted by Chuck P at 6/25/2007 12:43:01 PM
I am inherting from the GridView and adding a property
ShowEditButton. When this is true a new column is added with an Edit
button. I override the CreateColumns event to do this.
What is the difference between, storing the property value in a private
local variable and ViewState?
In the... more >>
How Capture windows2003 users login and logoff time.
Posted by manu.chaudhari NO[at]SPAM gmail.com at 6/24/2007 4:54:42 AM
I need help about capturing time when user logs on to win2003.
Is there any way for capturing this time using VB 6.0
Please Help.
... more >>
UserControl... where is the clientID on the client side?
Posted by Monty at 6/21/2007 4:01:16 PM
[ASP.Net 2.0, WAP, Atlas]
I have a custom usercontrol that looks something like this:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="ItemPicker.ascx.vb" Inherits="myNS.ItemPicker" %>
<div runat=server id=divMain style="text-align:justify; overflow-x:hidden;">
<div id="divIte... more >>
GridView get ODS DataObjectTypeName
Posted by Chuck P at 6/19/2007 12:21:05 PM
I am creating a control which inherits from the GridView.
I want to have an event that adds a new row to the ODS before the GridView
binds.
I was thinking of doing this:
private void AttachDataSourceEvent()
{
ObjectDataSource ds = GetDataSource() as ObjectDataSource;
if (ds != nul... more >>
C# Web form designer [Open source]
Posted by svenkatesan NO[at]SPAM quadrantsoftware.com at 6/19/2007 3:27:50 AM
Does anybody know of a good open source (C# technology) that can be
used to design HTML pages.
I know we can use Visual Studio or Winword or Frontpage but I am
looking for a tool that can be customized for us and and can be
distributed.
Any good third-party links is appreciated.
Thanks
Sa... more >>
difference Inherits CompositeControl vs Inherits WebControl
Posted by ton at 6/18/2007 2:46:04 PM
Hi
i'm developing web server controls for my project.
When I use Inherits WebControl, the control can use the width of the
control, but when I use Inherits Compositecontrol the width of the control
stays=0 allthough I do see the control drawing with a certain width.
Is their a list of prope... more >>
AJAX event cascading?
Posted by Jakob Lithner at 6/18/2007 5:40:00 AM
I have a web page where I search some information.
I tried to AJAX enable the page to avoid postbacks.
I tried to use 3 UpdatePanels: updateSearch, updateList and updateDetail.
In updateSearch I use several controls to decide what to search.
Some of the DropDownLists will have dynamic content ... more >>
Maintaining the look of dynamically added usercontrols
Posted by Nathan Sokalski at 6/16/2007 12:53:22 AM
I have a page which I dynamically add several usercontrols (*.ascx files) to
using the following code:
Public Sub Refresh()
For Each section As DataRow In Me.GetSections().Rows
CType(Me.FindControl("admin" & CStr(section("buttontext")).Replace(" ",
"")), adminsection2).RefreshSectio... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
CreateChildControl() fires First
Posted by hsnkamal NO[at]SPAM yahoo.com at 6/14/2007 8:14:27 PM
i have develop a sharepoint web part using class library.i add
controls programatically.when i select a item in dropdownlist and save
it to the datase.it sved the first item of the dropdownlist,not the
selected item.as my experience this happen due to the inoder sequence
of CreateChildControl()... more >>
Selected state not maintained on postback
Posted by Santel at 6/11/2007 11:07:33 PM
Hi,
I tried to create a custom server control that displays some radio
buttons and it should postback the page on selecting the items. I
tried like below code, but on postback, the selected radio button
state is not maintained. Anyone could tell me what is missing?
public class WebCustomCo... more >>
View State Null In IPostBackHandler
Posted by Mark at 6/8/2007 8:59:01 AM
Hi,
I had a datetimepicker server control that worked great in 1.x but I am
having trouble with it in ASP.NET 2.x For some reason, the ViewState value
is always null on postback so IPostBackDataHandler.LoadPostData is unable to
access the properties correctly. Is there a change I should m... more >>
Typed Datasets and Delegate signatures
Posted by MattM at 6/8/2007 6:17:01 AM
I am working on a new Windows application with typed datasets and was looking
at creating a generic datagridview user control. I will have several typed
datasets for this application so I thought using one datagridview user
control to handle most of the basics would save time.
I was going t... more >>
access dynamically added controls
Posted by sivagururaja NO[at]SPAM gmail.com at 6/7/2007 10:33:33 PM
Dear All,
Im using ASP.NET 2.0 with C#.
In my aspx page, i have one HTML Table.
Using the javascript i add the rows dynamically.
1.What my problem is how can i access those controls.
When i click the submit button, i lose all those rows that were
added dynamically.
How can i persist... more >>
Problem with order that properties are set from aspx page
Posted by cope.andrew NO[at]SPAM gmail.com at 6/7/2007 6:48:29 AM
Hi
I've developed an ASP.NET server control with 2 properties, PropertyA
and PropertyB. The setter for PropertyB uses the value of PropertyA to
perform some checking when set at designtime.
When the aspx page is opened in the designer, the properties are read
in from the aspx markup but th... more >>
Possible to validate between INamingContainers in 2.0?
Posted by daokfella at 6/6/2007 7:20:28 PM
I have a composite control that contains a texbox and comparevalidator
(and other stuff not applicable to this post). Right now, it does a
simple DataTypeCheck or any comparison to the ValueToCompare property.
I've exposed the ValueToCompare and the CompareOperator properties.
The control is for... more >>
Overriding renderBeginTag is bad?
Posted by TS at 6/6/2007 11:36:20 AM
If i have a control that inherits from a class in Webcontrols (ie textbox)
and then overrides RenderBeginTag, isn't this not recommended since the
UI/Browser specific web attributes won't get set by framework? I always read
that you should override renderContents instead of the combination of
re... more >>
problems with simple custom control
Posted by kal at 6/5/2007 12:59:40 PM
I have registered my custom control in web.config as follows:
<add tagPrefix="PhoenixControls" namespace="PhoenixControls"
assembly="PhoenixControls"/>
I have added a file called phoenixcontrols.cs to App_Code folder and in this
file is this simple code:
namespace PhoenixControls
{
pu... more >>
Custom Composite Web Control and Validator
Posted by Rick at 6/2/2007 12:00:00 AM
Hello,
I built a composite web control that has a textbox and a date
control.
added my custom control on a webform where there are other standard
controls.
Each control on the form has a required validator.
I need to have a validator for my custom control, but don't know how
to do this.
I ... more >>
Capture Login Name at string
Posted by Ann at 6/1/2007 12:08:02 PM
I have a formview control that I want to capture the login name and add it to
the database when the insert template is used. I use the asp:loginview
control and can see the login name, but I want capture that as a string and
add it to a sql database column. How do I do that?
Thank you f... more >>
|