all groups > asp.net webcontrols > june 2004
Filter by week: 1 2 3 4 5
Trace Starting Location
Posted by Thom Little at 6/30/2004 8:52:21 PM
If I enable trace as in:
<%@ Page language="c#"
Codebehind="StepByStep12_1.aspx.cs"
AutoEventWireup="false"
Inherits="_315C12.StepByStep12_1"
Trace="true"%>
The trace overlays the other information displayed on the page. The trace
always starts at 0,0 on the page.
How can I co... more >>
listbox and sql stored procedure
Posted by John at 6/30/2004 4:32:22 PM
Hi,
First of all sorry for my not perfect english.
I've got listbox in my .aspx page where the users can make multiple
selection.
So, Users can select 7 items in listbox, I have to take value from
items and pass it to stored procedure to delete 7 rolls in my table. Th... more >>
help: question about LifeCycle for controls that change the 'shape' of their control tree?
Posted by Sky at 6/30/2004 2:10:47 PM
Hello:
All the books I have looked at about how to design custom composite server
controls talk about the LifeCycle..and although most is quite clear, there
is one nagging type of control creation that I am looking for clarification
about...Can anyone help?
The following example is a trivia... more >>
problem with validation control
Posted by Rafia at 6/30/2004 11:17:32 AM
Hi all
I have put a required validation control on one of my aspx pages. I also
have a server button on the page which the user will click to submit the
data. The problem is when the user do not enter anything on the required
field, it show the error then immediately submits the form and the cod... more >>
Setting the value of a template textbox control in a datagrid
Posted by Tim_k at 6/30/2004 10:08:01 AM
The code below finds the user entered value in a textbox within a grid. Then it updates the value(s) to the bound datatable. But the value does not display after rebinding to the grid. I think it has something to do with the binding of the textbox? I'm not clear on whether I have to use DATABIND... more >>
Create TemplateColumn Dynamically
Posted by Lubos at 6/30/2004 8:51:21 AM
Hi,
I'd like to create TemplateColumn at runtime.
I want to add an Control (like Button,..) to this column.
Is there any example how to this this?
Thanks in advance,
Lubos
PS:
I can do this with the BountColumn:
BoundColumn bc2 = new BoundColumn();
bc2.DataField = "product_nm";
b... more >>
How to do you updating properties on the design-time surface?
Posted by Martin Dobson at 6/30/2004 1:23:01 AM
Hi,
I've just delving into the world of ASP.Net Web Custom Controls I have a firm grounding in Visual Basic and Active Server Pages. I am currently designing a simple Web Custom Control that will act as a Header for a page. So far I have manage to make the control work and render it at design-tim... more >>
MultiPage Expert Please (Dynamic MultiPage controls)
Posted by Russ at 6/29/2004 2:17:08 PM
I'm getting a little frazzled here. I have been trying to figure out
how to extract the data from my dynamically created Multipage controls
for about a week now!
Depending on data from a web service, I am adding one or more Tabs and
PageViews to a design time created TabStrip and MultiPage ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Labels and usercontrols
Posted by Micke Palm at 6/29/2004 12:42:15 PM
Hi!
I want to use a parent page and load webusercontrols to this page =
dynamically. The problem I got is how I can set a label.text in parent =
page from a usercontrol.
A scenenario is if I have a button into the usercontrol and want to set =
a text to a label in the parents page. I've set... more >>
setting Url Format String in datagrid control dynamically
Posted by Troy at 6/29/2004 12:31:01 PM
Hi
Wondering if anyone knows how to set the Url Format String in a datagrid control through c# --
If you place the datagrid control on a form, and go into the property builder tool - you can select a column and specify a value for the URL Format String, however I have not been able to figure how t... more >>
Job Scheduling Third Party Controls
Posted by Mike Schoenfeld at 6/29/2004 12:05:56 PM
All,
I am looking for a third party control(s) to incorporate job scheduling into
our commercial product. The control(s) must have a ASP.NET UI component and
use SQL Server to manage the job schedules.
Any help to point me in the right direction will be appreciated.
Thanks,
Mike Schoenfe... more >>
ASPX , Placeholders and SET FOCUS
Posted by tob NO[at]SPAM sourcecode-inc.com at 6/29/2004 10:52:36 AM
Hi,
How do SET FOCUS on a newly served (aspx) page to something that was
added into a [PLACEHOLDER] ?
I;ve tried typical Javascript and Page.RegisterStartup, but I get an
error saying that the object (say some "newTextBox1") does not exist !
But it will soon, right?
I've tried adding the... more >>
z-index
Posted by Stephen McCrea at 6/29/2004 10:35:40 AM
I have a page of several labels, textboxes, buttons and a dropdown list box.
When I want to display an error, I overlay a panel (make it visible) with a
high z-index so that it covers all the other controls. Except that it never
covers the drop-down list box. Despite the fact that the list box ... more >>
typed DataSet-bound DataGrid sorting
Posted by Whugster at 6/29/2004 9:44:13 AM
Hi. I have a DataGrid bound to a typed DataSet and I just couldn't figure
out how to sort the damn thing. I tried setting the Sort property of the
DataTable.DefaultView and the Attributes["SortExpr"] of the DataGrid but I
think the order of events matter. Here's a breakdown of events:
1. Pa... more >>
adding linebreaks to a control
Posted by chandy NO[at]SPAM totalise.co.uk at 6/29/2004 9:12:44 AM
Hi,
I have a user control which build a list menu from HtmlGenericControl
objects (UL and LI). It works well and produces valid HTML, but all
on one line. Any ideas as to how I can get the syntactically-valid
equivalent of the following?
ul.Controls.Add(CType(VbCrLf,Control))
TIA
Ch... more >>
Custom Validator
Posted by sunilsheffield NO[at]SPAM yahoo.co.uk at 6/29/2004 9:04:20 AM
Dear All,
I want to use a Custom Validator which checks two things.Firstly that
the user should only enter letters.Secondly, The text box should not
be empty when the submit button is clicked. I know that I can do this
by required field validator. But I want to do... more >>
Gantt Chart Control
Posted by Hamid Shahid via .NET 247 at 6/29/2004 8:10:54 AM
Hi,
Does anyone knows a good ASP .Net Web Control to create a Gantt Chart.
Many Thanks
hamid
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>FNFugEJbJU2iontIQME9Jg==</Id>... more >>
custom validation not executing
Posted by ajones NO[at]SPAM kvmhc.org at 6/29/2004 4:54:06 AM
I've tested the logic in the design on other pages and it works fine.
THere is one major difference between where I want it to work and
where it has worked. THe page I'm working on was launched from a page
using Server.Transfer. I'm very new to this stuff so this very well
could be a simple o... more >>
Getting the full URL
Posted by Nathan Sokalski at 6/28/2004 5:13:42 PM
I need to get the full URL of the current page in ASP. When using
Request.ServerVariables("URL") anything after the filename (such as a
#section1 to jump to an area on the page or data submitted from a form using
the GET method) is automatically removed. I do not know of any keys for the
Request... more >>
Dynamic Control Not Participating in PostBack
Posted by localhost at 6/28/2004 4:52:58 PM
A method in my code-behind is called when a certain condition happens.
This method does this:
ImageButton dynButton = new ImageButton();
dynButton.Click += new ImageClickEventHandler(dynButton_Click);
dynButton appears on the page, but it is not participating in the
PostBack proce... more >>
Add Inner HTML to Table?
Posted by localhost at 6/28/2004 1:28:40 PM
I need to add a behavior to a table and its rows. I cannot determine
how to do this. My code looks like this:
HtmlTable testTable = newHtmlTable();
HtmlTableRow testRow = new HtmlTableRow();
testTable.Controls.Add(testRow );
testRow.Controls.Add( new LiteralControl("<be... more >>
Problem with Microsoft TabStrip Control in ASP .NET
Posted by forrscteam NO[at]SPAM yahoo.com at 6/28/2004 10:46:52 AM
Our application is in ASP.NET and C# , we have used tabstrip control
for data input screens. eveything went fine. till the user got
connected to this application through a web VPN (CISCO),all of sudden
tabstrip is not getting displayed at all.
Our application has frames for a menu on the left,... more >>
Calendar Control SelectedDate Property
Posted by Jason Taylor at 6/27/2004 8:12:01 PM
Hello,
I have created a new Web Form, example.aspx, with a Calendar control, Calendar1. In the Page_Load event of example.aspx I have included;
Calendar1.SelectedDate = "28/08/2004"
When I run the page, the month displayed is June 2004. If I then navigate to August, I see that 28/08/2004... more >>
How to access web control from code behind page?
Posted by William Parker at 6/27/2004 2:37:00 PM
I have a web control I made called header.ascx. It has its own properties
and methods I defined. But I cannot figure out how to access this control
from my code behind page.
I can create the web control just fine and script with it as needed from the
webform1.aspx page itself just fine, like ... more >>
Treeview
Posted by Lee Trotter at 6/27/2004 11:08:56 AM
Does any know about or have any resources for the a treeview control? Any
place to start would be great
Thanks
Lee
... more >>
URGENT - RequiredFieldValidator not working after deployment -
Posted by Roni Burd at 6/26/2004 8:01:43 PM
Hi!, I'm having a strange issue while deploying a web site with Validator
controls.
In my development machine the Validators function perfecly and also when I
deploy using XCOPY to a web server.
The problem seems to arrise when I decided to change the root folder of the
web page in IIS to poin... more >>
Can web control events fire FIRST?
Posted by William Parker at 6/26/2004 4:00:07 PM
I have a user web control I wrote which is registered in my webforms. By
default the web form's Page_Load is firing first, and then the web user
control's Page_Load is firing.
I want to set it up so that the web control's event fires first, before the
web form's (or any other controls page_lo... more >>
Applying styles from multiple sources
Posted by DalePres at 6/26/2004 8:32:14 AM
Is there a way to determine the order or priority of applying styles in a
custom web control? For example, I have a control with default style
settings for many features, and exposed public properties to change those
settings as well. It is easy enough to set the value of the public property
t... more >>
Creating a Control in a web form Dynamically
Posted by Haitham at 6/26/2004 12:58:12 AM
Hi all,
May you kindly tell me how to create a label control in the web form
dynamically and change its width and top properties
thanks in advance
... more >>
Best way to render a custom web control
Posted by DalePres at 6/25/2004 8:42:24 PM
I have a custom web control that basically consists of a dynamically created
table and HTML checkboxes. I spent hours typing things like:
writer.AddAttribute(HtmlTextWriterAttribute.SomeAttribute, "SomeValue");
writer.RenderBeginTag(Td);
writer.Write("Some stuff");
writer.RenderEndTag();
... more >>
Composite control problem !!!!
Posted by Mircea Pleteriu at 6/25/2004 10:28:58 AM
Hi all,
I have a composite control which only consists in a datagrid control for
beginning.
I create the datagrid control within the EnsureChildControls method and set
the AutoGeneratedColumns to false
My control exposes a method AddColumn(DataColumn column) which adds the
specified colu... more >>
dynamic events on dynamic controls
Posted by de NO[at]SPAM networld.com at 6/25/2004 9:55:47 AM
I'm creating my first custom control; it has a table with a variable
number of cells (user defined at design time). Each cell has a button.
Is it possible to attach events to these buttons? If so, how?... more >>
DropDownList with Postback on only one item...
Posted by Richard Huff at 6/25/2004 7:47:00 AM
Is it possible to trigger a PostBack event from only one item in a
DropDownList? I would like to have a DropDownList that does not
AutoPostBack with many items, except for one which will take you to a
form to edit the items in the list.
Any ideas would be greatly appreciated.
- Richard Huf... more >>
help with events (i'm new to this)
Posted by Colin Robinson at 6/24/2004 10:25:48 PM
I can see there is an issue with web user control events on postback but
dont fully understand how to implement a solution.
I have a button on my aspx page, when clicked it adds instances of my web
user control to a placeholder, it looks ok visually but events in the
usercontrol dont fire.How ... more >>
ListBox sort
Posted by Colin Basterfield at 6/24/2004 2:51:20 PM
Hi,
Is it possible to sort a web control ListBox?
TIA
Colin
... more >>
xml control
Posted by Arne at 6/24/2004 1:22:10 PM
Hi,
I'm using the xml-control to read a xml/xsl file - and everything works
fine, as long as the file is placed locally.
Isn't possible to reference an external xml-fil as
xml1.documentsource = http://www.........
xml1.transformsource = "myxsl.xsl"
i've tried - without success - with
Di... more >>
asp:label not wrapping
Posted by klj_mcsd NO[at]SPAM hotmail.com at 6/24/2004 1:13:11 PM
I have two ASP:LABELs, One of them the words wrap and the other one
doesn't. The only difference is that one I'm setting the text property
at design time and the other one I'm setting at run-time... more >>
Is it possible to get the values of Datgrid Controls
Posted by dev NO[at]SPAM schleif.org at 6/24/2004 3:19:19 AM
i want to change the text of hyperlink column cell :
Public Sub dgrSuchergebnis_Databound(ByVal sender As System.Object,
ByVal e As DataGridItemEventArgs)
Dim DatumVertragsabschluss As TableCell = e.Item.Cells(3)
If DatumVertragsabschluss.Text = "01.01.1900" Then
... more >>
DataGrid inside WebCustom control
Posted by Mircea Pleteriu at 6/23/2004 6:45:32 PM
Hi,
I am implemention a composite web custom control.
The control only contains to 2 controls: a DataGrid and an ImageButton
control.
I create the child controls within CreateChildControls method of the web
custom control.
Within this method also I register the interest in the Click event ... more >>
SortCommand not handled
Posted by Mircea Pleteriu at 6/23/2004 5:44:38 PM
Hi,
I have a composite web custom control which contains a DataGrid control
Within the control I register the interest in the SelectedIndexChanged event
of the grid.
Even if the page is postbacked when the user selects an item on the grid the
the handler of the event inside the control is not... more >>
stylesheet not working
Posted by Random at 6/23/2004 2:23:05 PM
Under .NET, why doesn't the "class" attribute seem to apply to elements that
refer to a specific stylesheet reference? I've verified that the stylesheet
is being referenced by creating styles that refer specifically to HTML tags.
But if I want to call on a particular style just using the "class"... more >>
DataGrid not rendering
Posted by Mircea Pleteriu at 6/23/2004 2:22:19 PM
Hi all,
I created a composite web custom control which encapsulats a DataGrid
control plus some other controls.
I overriden the Render method of my custom control and try to render the
grid using
myGridControl.RenderControl(output);
But the control is not rendered even if my grid has the... more >>
Disabled Controls
Posted by jeff_carver NO[at]SPAM hotmail.com at 6/23/2004 12:04:28 PM
Okey, here's a puzzler: One of our users reports that when she tries
to complete a data entry form, the dropdownlist and radiobuttonlist
controls work fine but she can't enter anything into the textbox
controls. Nowhere in the codebehind is any textbox's Enabled property
being changed to false... more >>
ClientID seems wrong inside DataGrid
Posted by Jonathan Levine at 6/23/2004 3:31:01 AM
Hi,
I am trying to access the value of a text box in a DataGrid from inside JavaScript. I have tried the following:
void Item_Created(object sender, DataGridItemEventArgs e)
{
Button b = ((Button)e.Item.FindControl("AddUserButton"));
TextBox t = ((TextBox)e.Item.FindControl("Textbox... more >>
FindControl not finding dynamic user control - Repeater, Panel, Usercontrol
Posted by don_najd NO[at]SPAM hardingmarketing.com at 6/22/2004 1:51:24 PM
I cut down the code to make this half way understandable... I have
read Data Grid girls caution about over use of dynamic controls. I
truly believe what I am doing requires dynamically inserted user
controls.
Worse I'm trying to add dynamic user controls from within a repeater
loop (looping t... more >>
Validation Server Controls Not Working
Posted by Brett at 6/22/2004 1:17:50 PM
Deployed the same code containing validation server
controls to two different sites. The controls function on
one site, but not the other. Confirmed the versions are
the same.
Could this be some sort of configuration or IIS version
issue, or whatever?
Thanks... more >>
Property Extender properties not persisting !
Posted by JezB at 6/22/2004 12:15:39 PM
I've written an extender provider for windows forms controls and ASP.NET web
controls. My windows forms solution works fine, but my ASP.NET solution does
not persist any property values I enter via the visual studio property grid.
Upon examination of the code within InitializeComponent I can se... more >>
Replacing a control dymamically (to use a webform as a template)
Posted by jorge at 6/22/2004 12:37:00 AM
Hi all,
I have to replace a bunch of controls dynamically (TextBoxes, DropDowns,
etc).
Any way to do this? The 'template' pages are made on asp.net with tables
(not runat=server) and asp:textboxes, etc.
So I need to do a loop on the controls of the webform, but alas! they are
read only. ... more >>
LinkButton Inherited from WebControl problem?
Posted by Dave at 6/21/2004 7:39:02 PM
Hi,
I'm inheriting a LinkButton from a WebControl....
public class LinkButtonFromWebControl : System.Web.UI.WebControls.WebControl
However, in the aspx, if I add the "CssClass=", "CausesValidation=", etc attributes to this control...
<Custom:LinkButtonFromWebControl id="LinkButton3" run... more >>
Leave button depressed after being pressed
Posted by Novice at 6/21/2004 2:52:01 PM
Hey all, can the asp:button be used like a toggle button?
I don't really need to use the asp:button, I basically just need a toggle button that looks like a regular input button that will stay depressed once a user presses it.
I plan on having two buttons (A and B) on a webpage. When the pag... more >>
|