all groups > asp.net webcontrols > november 2006 > threads for november 15 - 21, 2006
Filter by week: 1 2 3 4 5
TreeNodePopulate - InvalidCastException
Posted by woker NO[at]SPAM gmx.net at 11/21/2006 4:53:15 AM
Hi group,
my problem is the following:
I derive a class from System.Web.UI.WebControls.TreeNode, add a node of
my derived class to TreeView and on the TreeNodePopulate callback (or
any other) try to downcast the received node into my derived class. I
get an Invalid Cast Exception.
The foll... more >>
asp:menu only show children
Posted by chandy NO[at]SPAM totalise.co.uk at 11/21/2006 4:04:24 AM
Hi,
I have created a sitemapprovider for my site. Now I want to add a menu
control but I only want to show the children of the current node. I
have set the provider root to the current node but how do I tell the
menu control not to show the root?
The menu should be static and just show:
... more >>
GridView DDL and Label
Posted by Chuck P at 11/20/2006 12:57:02 PM
In my item template I have a label called ProductName
In my edit template I have a DDL called ProductName.
My object datasource for the gridview contains only the ProductID.
The DDL has an objectDatasource to Products table.
What is the best way that when I am in the normal view the label... more >>
Control Position
Posted by David Bell at 11/20/2006 12:45:24 PM
Hi Group,
I am trying to find the position of a control in a asp:table.
I am trying to add a pop up calendar to an image button that is in an
asp:table.
I need to find the position dynamically because the first 2 columns in my
table have dropdownlists that vary in size.
My table is being bui... more >>
zorder problem with menu and combobox
Posted by Beemer Biker at 11/20/2006 10:45:55 AM
I have a menu (with dropdown) as well as a ddl combobox on a form. There
is also a multiview and panels in the multiview.
I cannot get the dropdown part of the menu to show up over the combobox nor
the panels in the multiviews. I moved the multiview down away from the menu
but I need the ... more >>
hyperlink in a ListItem
Posted by David Thielen at 11/18/2006 12:01:02 PM
Hi;
For the text of a ListItem how do I put a hyperlink in as part of the text?
I tried putting it in the text and putting a asp:HyperLink inside it -
neither worked.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.... more >>
Panel Border Problems
Posted by mianiro NO[at]SPAM gmail.com at 11/18/2006 7:39:07 AM
Anyone ever have issues with the Panel control and its borders? The
Borders do not always paint for me. I will have half a side painted
while the other is not at all. Is this a bug ?
... more >>
Getting the generated name attribute for use in JavaScript
Posted by Nathan Sokalski at 11/17/2006 8:16:29 PM
As most of us probably know, ASP.NET controls do not use an exact copy of a
control's ID for the HTML element's name or id attribute. When generating
JavaScript as part of a control or event, we need to have a way to reference
the HTML elements. The only way I have found to reference the HTML ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Missing cell borders in Table control
Posted by elect_son at 11/17/2006 2:30:01 PM
Hi,
I am using the Table control in ASP.NET to display values from a database.
Although I have specified borders for each cell, cells with no data are
displaying without borders.
At the cell level I have the BorderStyle set to "Solid" and have set a
border color. I also have the same s... more >>
hyperlink on template header
Posted by Lucas Hernandez at 11/17/2006 12:44:15 PM
Hi.. I am trying to put a <a > (anchor) on a <asp:TemplateField
HeaderText="<a onClik='functionname('parameter')>click</a>">
but it doesn't take the parameter... any idea?... more >>
gridView Viewstate
Posted by Chuck P at 11/17/2006 9:06:02 AM
I was trying to understand why the GridView displays some less than
desireable features when ViewState is disabled.
If you disable viewstate, you can delete or update the wrong records.
http://scottonwriting.net/sowblog/posts/10054.aspx
I don't understand why when a postback occurs that ... more >>
Microsoft ASP.NET 2.0 Treeview not being W3C compliant?
Posted by theintrepidfox NO[at]SPAM hotmail.com at 11/16/2006 3:08:34 PM
Dear Group
Just wondered as I came accross the following markup rendered ny the
Microsoft ASP.NET 2.0 Treeview Control, missing the type attrbute in
the script tag.
<script>
<!--
function TreeView_PopulateNodeDoCallBack(context,param) {
WebForm_DoCallback(context.data.treeViewID,p... more >>
Gridview -- changing field content
Posted by Jason Wilson at 11/16/2006 1:35:16 PM
I would like to change an image in the 1st field in each row of a
gridview based on the content of the other other fields in the row.
Can anyone point me in the right direction?
I tried the following code as a test:
Protected Sub gvRadTurnat_RowCreated(ByVal sender As Object,
ByVal ... more >>
difficulty setting time values in Calendar
Posted by Beemer Biker at 11/15/2006 5:31:22 PM
Observation:
I am using the dotnet calendar to set a date and time field. I added
hours and minutes fields to my popup since there is no time picker
available. http://stateson.net/pub/cal1.jpg I see no method to set items
like hours, minutes, seconds. Instead there are functions to add h... more >>
GridView with objectdatasource
Posted by Chuck P at 11/15/2006 3:14:01 PM
I have a gridview with an objectdatasource which has a timestamp data field
byte[]
When I do an update my object gets passed backed to my data access layer but
the timestamp value is null (the other fields all have the edited values).
It should be the original value.
It appears that the... more >>
FormView, with 2 dropdownlists
Posted by Milton Snider at 11/15/2006 2:47:58 PM
I am somewhat new to asp.net. I have a form which is always in insert mode
and I am trying to let one dropdownlist(dropdownlist1) select a state and
then limit the number of cities populating the 2nd
dropdownlist(dropdownlist2) to only those cities within the state selected
in dropdownlist1... more >>
Multiview and Validation
Posted by Chuck P at 11/15/2006 9:57:20 AM
I am using a Multiview control and some validators.
The multiview is being used in a homegrown tab control
Click on a tab it display one of the views.
I have a submit button that I would like to validate all of the
controls in all of the views within the multivew.
I am guessing their is no ... more >>
<asp:Repeater>, checkbox values and ASP.NET 2.0
Posted by deathtospam NO[at]SPAM gmail.com at 11/15/2006 9:56:24 AM
A few weeks ago, I created a Classic ASP page that connects to a
machine with SQL Server installed on it, prompts the user to select a
database on that server, then lists all of user-created stored
procedures in that database. The user can select any of those stored
procedures by clicking on ch... more >>
Retrieving all properties of control how to -asp.net
Posted by mpar16 at 11/15/2006 9:56:21 AM
hi,
could please help me to retrieve properties of a control, i got a
scenario to read all available properties and its current assigned
values for different controls in project. i tried with reflector tool
but it giving properties of classes. I am not sure how to get property
and its value. ... more >>
Object reference not set to an instance of an object.
Posted by Kiran More at 11/15/2006 5:49:12 AM
WebControl button = (WebControl)Page.FindControl("btn_Delete");
button.Attributes.Add("onclick", "return confirmDelete (this.form);");
confirmDelete is the method written in Javascript.
I am getting following error message as,
Object reference not set to an instance of an object.... more >>
|