CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 6/27/2007 8:42:45 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 14 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
bjtylerx
Asp.Net User
TreeView Adapter SelectedValue problem6/27/2007 8:42:45 PM

0/0

I am having a problem using the SelectedValue proprty outside of the onClick event. I have added the following code to SimpleTreeView.aspx in the walk through example code. When using the adapter, EntertainmentTreeView.SelectedValue is always null. When not using the adapter, EntertainmentTreeView.SelectedValue contains the expected value for the item I clicked.

Why can I not access EntertainmentTreeView.SelectedValue outside of the OnClick method?

Here's the code I added (just putting the onclick guts into Page_Load):
 

protected void Page_Load(object sender, EventArgs e)
{
MessageLabel.Text = "You selected " + EntertainmentTreeView.SelectedValue + ".";
}
 

Russ Helfand
Asp.Net User
Re: TreeView Adapter SelectedValue problem6/28/2007 12:35:52 AM

0/0

Embarassingly, this is a known problem, http://forums.asp.net/t/1049311.aspx. I offered a possible workaround, ableit kludgy, which is to do more of your work in Page_PreRender rather than Page_Load. However, as others on that thread note, this is hardly an elegant or perfect solution. Still, it's the best I could think of now. Remember, the adapters are now maintained by the community at CodePlex. So, if you come up with a great solution (read: fix for my bug) you might want to ask to be added to the CodePlex project as a contributing developer.

Hope this helps at least get you started...


Russ Helfand
Groovybits.com
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007

Web:
TreeView in Web Custom Control created treeview. My problem is that I get an exception when I try to render the control. ... writer, ControlAdapter adapter) at System.Web.UI.Control. ...
Problem for binding radcombox in detailview - telerik Forum TreeView for WPF ... The error is 'RadCboCommune' has a SelectedValue which is .... 17, SqlDataAdapter adapter = new SqlDataAdapter(); ...
TheMSsForum.com >> Asp >> ASP.NET Treeview selectedNodeStyle - The ... dropdownlist in FormView "has a SelectedValue which is invalid" In my Registrant ..... fired for the TreeView which is also a problem. Currently what I have ...
TreeView Properties (System.Web.UI.WebControls) Adapter, Gets the browser-specific adapter for the control. (Inherited from Control.) .... SelectedValue, Gets the value of the selected node. ...
Maintaining treeview state across your site in a master page, and ... SelectedValue.ToString. Response.Redirect(fw.ToString) ..... I have my treeview bound to a sitemap.map. Is that the problem here? ...
Maintaining treeview state across your site in a master page, and ... My TreeView has lots of nodes (about 500). May that be the problem? ... Hope this helps someone although It doesn't work if you use CSS adapters, ...
CodeProject: C# Discussion Boards. Free source code and ... I want to set and focus to a specified node in treeview.it means I want to go to .... ToInt32(cboVehicleMake.SelectedValue); // Create data adapter object ...
GridViewGuy Declarative databinding: ListControl based controls, TreeView, Menu, ... With each such control there will be a label to show the selected value from the ...
Parameter ?_1 has no default value source is an MS Access 2000 table; the data adapter is of the oledb ... SelectedValue The cube works fine. However the cube control won't ...
problem using on demand load - telerik Forum TreeView for WPF ... I now have a new problem retreiving the selected value out of the combo box. ... Dim adapter As New MySqlDataAdapter(sql, conn) ...




Search This Site:










forms authentication.. giving anonymous access to a folder..

portalcfg.cs doubt

formsauthentication fails to read cookie on iis6.0

upgrade from vwd express to vs.net 2005

web service https authenticated site

trackbacks?

why does this default to false????

php md5 and .net md5 functions do not produce the same thing.

new to dnn - how to install it?

new control id separator ($) breaks legacy codes

two menus from one sitemap?

is there a simple way to make a tab a link?

special user rights

editor (or maybe vsts) mixing up my databinding code?

eror message using loginview

security

who put asp.net account on my machine and should i erase?

email validation using validation application block

new skin available

asp.net 2.0 system log warnings using webdav to access files on a separate machine

relative sizes & tabstrip

visual studio .net updates

feee dnn host for demo purposes

save webpartzone width after posting

set control backcolor doesn't work

variable urls - sitemap

how to display watch window

dnn 3.1.0 new skin object?

can anyone help what is wrong and should be my next step?

dnn4 authentication provider missing

 
All Times Are GMT