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 > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 12/30/2003 2:43:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 13 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
blahdieblah
Asp.Net User
How do I insert a navigateurl in my page?12/30/2003 2:43:28 PM

0/0

Hi there,

I would like to know how to insert a navigateurl in my page.....everything works fine, except I can't seem to insert a navigateurl statement.
I would like to goto a page called *webcategory.aspx?"ATTACH THE ID HERE"* (but first I would like to know how to create a link in the first place.....currently while executing the following code I receive the following error :(

THANKS!

--------------------------
ERROR


Compiler Error Message: CS0117: 'Microsoft.Web.UI.WebControls.TreeNodeCollection' does not contain a definition for 'NavigateUrl'

Source Error:



Line 35: {
Line 36: nodes.Add( Node( dr["webpage_category_name"].ToString(),dr["webpage_category_id"].ToString() ) );
Line 37: nodes.NavigateUrl = dr("webpage_category_name");
Line 38:
Line 39: }


--------------------

<%@ Page Language="C#" debug="true"%>
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ import namespace="System.Data" %>
<%@ import namespace="System.Data.SqlClient" %>
<%@ import namespace="Microsoft.Web.UI.WebControls" %>
<script language="C#" runat="server">

public void Page_Load(Object src,EventArgs e) {

GetCategories("0",TreeCtrl.Nodes);
}

private void GetCategories( string parent, TreeNodeCollection nodes )
{
// add nodes for categories
// Creating the database connection
SqlConnection objConn = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn_main"]);

// Creating the stored procedure
SqlCommand webpage_category = new SqlCommand("stpr_webpage_category_view",objConn);
webpage_category.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter();
DataSet ds = new DataSet();

da.SelectCommand = webpage_category;
da.Fill( ds, "webpage_category_name" );
DataView dv = ds.Tables[0].DefaultView;
dv.RowFilter="webpage_category_parent_id=" + parent;

foreach( DataRowView dr in dv )
{
nodes.Add( Node( dr["webpage_category_name"].ToString(),dr["webpage_category_id"].ToString() ) );
// THIS IS WHERE I GET THE ERROR!
nodes.NavigateUrl = dr("webpage_category_name");

}

for( int i = 0; i < nodes.Count; i++ )
{
GetCategories( dv[i]["webpage_category_id"].ToString(), nodes[i ].Nodes );
}
}

// create a TreeNode from the specified path, text and type
private TreeNode Node(string text, string id)
{
TreeNode n = new TreeNode();
n.Text = text;
n.ID = id;
return n;
}

</script>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<iewc:treeview id="TreeCtrl" runat="server" DefaultStyle="background:white;color:black;font-family:Verdana;font-size:10pt"
HoverStyle="background:white;color:black;font-size:10pt;border:solid 1px;"
SelectedStyle="background:white;color:red;font-weight:bold"></iewc:treeview>
</body>
</html>


Bill2clone
Asp.Net User
Re: How do I insert a navigateurl in my page?1/2/2004 8:41:36 AM

0/0

The easiest solution would be to use the target attribute and set it to the frame you are using, then use navigateurl for the url.

This link may help: aspalliance
DNN skins Forum
Tressleworks modules
DNN & webhosting
IEWCtrls
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET Web Forms Techniques Authors: Alex Homer, Pages: 580, Published: 2003
Sams Teach Yourself Macromedia Flash 5 in 24 Hours Authors: Phillip Kerman, Pages: 587, Published: 2001
.NET Wireless Programming Authors: Mark Ridgeway, Pages: 564, Published: 2002
Programming Microsoft Visual Basic .Net for Microsoft Access Databases Authors: Rick Dobson, Pages: 500, Published: 2003
Visual Basic 2005: Windows-programmierung mit Visual Basic 2005, Visual Studio 2005 und dem.net-framework 2.0 Authors: Peter Monadjemi, Pages: 1120, Published: 2008

Web:
passing a javascript function through GridView column using ... I am trying to insert a value to a column of a GridView control that will be ... Variables in the NavigateURL of DataGrid - ASP.NET Forums I have a NavigateURL in my data grid as the following: ... What would the correct format be to insert this variable into the NavigateURL? ...
MenuTemplates_vb.aspx - Source Viewer - Developer Fusion, the UK ... <%@ Page Language="VB"%> Add Rotating Ads to Your Website Jan 22, 2008 ... New Page Dialog Box - XML Page This XML file will have a few fields in it: ImageUrl, NavigateUrl, and AlternateText. ...
DataGrid中的NavigateUrl传值问题.NET技术/ C# - CSDN社区community ... DataGrid中的NavigateUrl传值问题. 楼主lwjvince(Insert into you(memory)values(my all life)) 2006-09-14 20:08:32 在.NET技术/ C# 提问. 传值问题,语句不正确, ...
alternative to navigate URL - Dynamic Drive Forums Reload this Page alternative to navigate URL ... Have a picture, image, MC [ insert anything here] on the stage in Flash, have the user use ...
Creating DotNetNuke® Module using LINQ to SQL (Part 3) NavigateURL(PortalSettings.ActiveTab.TabID, "EditItem", "mid=" + ModuleId. ... When you view the page in the web browser you will now see a [Add My Listing] ...
Microsoft Expression Expression Web Content placement holder bug... When I try to view my material in explorer, it does fine. When I try to view it in firefox, it adds a space above the jpg I insert. It's driving me crazy. ...
Using listbox value in hyperlink navigateurl : hyperlink ... Insert page code here public sub Page_load(source as object, e as eventargs) If (Me.DropDownList1.Items.Count > 0) Then Me.HyperLink1.NavigateUrl ...
An Xml-Driven, Self-Caching ASCX MenuStrip Control Oct 28, 2006 ... 1) The CSS to match my page layout is inline in the ASCX page portion of the .... You can even programmatically set the Text and NavigateUrl ...




Search This Site:










impersonating system.net.systemnetworkcredential

web site admin tool gives error under security tab

aspx page shows blank screen in ssl

forms authentication

no access to new c# language features with beta 2 (vista home premium)

file upload maximum size?

dnn 2.1.2 error loading module

regular expression bugs caused by sp1?

interesting take on licensing, project forking, and cs

csss and a command button.

does gallery module work on firefox?

authentication ticket seems to stop internal redirects and links

hi new person with sql database linking problems here

core team: dnn 3.2 question...

integrating asp.net forms authentication with java jsp based website

website design issue

skinproblem, make the background black and text white

dnn and helm

filtering membership.getallusers for users in a role.

asp net 1.1 security problem

role expiration

search highlighting + httpmodule deployment

how do links work?

user authorization after authentication

freetextbox control on new_edit.aspx page

avcalendar 2.0

c# properties or not?

dotnetnuke 3.1.1 icons

retrieving username/userid

dotnetnuke 2.1.2 settings

 
All Times Are GMT