CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 12/4/2003 3:45:37 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
Mauricio Atanac
Asp.Net User
Load_Page in control is not running12/4/2003 3:45:37 AM

0/0

The Load_Page of this control is not running, can any one help me ?

PortalMenu.ASMX Control...
*****************************************************
<%@ Import Namespace="ASPNetPortal" %>
<%@ Control language="c#" Inherits="ASPNetPortal.PortalMenu" AutoEventWireup="false" CodeBehind="PortalMenu.ascx.cs" %>
<table>
<tr>
<td>
<asp:datalist id="menutabs" cssclass="OtraOpcionBg" repeatdirection="vertical" ItemStyle-Height="25" SelectedItemStyle-CssClass="OpcionBg" ItemStyle-BorderWidth="1" EnableViewState="false" runat="server">
<ItemTemplate>
&nbsp;<a href='<%= Request.ApplicationPath %>/DesktopDefault.aspx?tabindex=<%# Container.ItemIndex %>&tabid=<%# ((TabStripDetails) Container.DataItem).TabId %>' class="OpcionMenu">
<%# ((TabStripDetails) Container.DataItem).TabName %>
</a>&nbsp;
</ItemTemplate>
<SelectedItemTemplate>
&nbsp;<span class="OpcionSeleccionada"><%# ((TabStripDetails) Container.DataItem).TabName %></span>&nbsp;
</SelectedItemTemplate>
</asp:datalist>
</td>
</tr>
</table>

Code Behind PortalMenu.ASMX.CS
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace ASPNetPortal
{
public abstract class PortalMenu : ASPNetPortal.PortalModuleControl
{
protected System.Web.UI.WebControls.DataList menutabs;

private void Page_Load(object sender, System.EventArgs e)
{
PortalSettings portalSettings = (PortalSettings) HttpContext.Current.Items["PortalSettings"];
int tabIndex = portalSettings.ActiveTab.TabIndex;
ArrayList authorizedTabs = new ArrayList();
int addedTabs = 0;

HttpContext.Current.Response.Write("Prueba");

for (int i=0; i < portalSettings.DesktopTabs.Count; i++)
{
TabStripDetails tab = (TabStripDetails)portalSettings.DesktopTabs[i];
if (PortalSecurity.IsInRoles(tab.AuthorizedRoles))
{
authorizedTabs.Add(tab);
}
if (addedTabs == tabIndex)
{
menutabs.SelectedIndex = addedTabs;
}
addedTabs++;
}
menutabs.DataSource = authorizedTabs;
menutabs.DataBind();
}

private void Page_Init(object sender, EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
}

#region Web Form Designer generated code
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
Mauricio Atanac
Asp.Net User
Re: Load_Page in control is not running12/4/2003 5:18:58 AM

0/0

Solved with this :

public PortalMenu()
{
this.Init += new System.EventHandler(Page_Init);
}

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
resolved: Converting code to use DATA filehandle instead of ... my $template = load_page([]); sub load_page { my $stuff = shift; ... First of all, the DATA filehandle begins after the __DATA__ token, not __END__ ...
LilyPond Music Notation inside Max/MSP | compusition Feb 2, 2009 ... I'm starting to give up full control over the composition process and ... I'm not going to give a tutorial on LilyPond, so check out the documentation ... write_to_file(INPUT, source) load_page(THIS_DIR + 'loading.html') ... Running lilypond is a long-running command (5-10 seconds on my computer). ...
window.confirm problem... - ASP.NET Forums Then ViewState sets each control to it's last state. I've always added the attributes whether a PostBack or not. It's not going to hurt ...
Dynamic controls problem May 11, 2005 ... I add the control on a Panel control during the 1st load_page event. ..... I think the problem is as simple as not specifying the CurrentQuestion on postback . ... Custom server control running code before page_load? ...
EditWrx :: Wysiwyg Editor - Content Management System - Community ... EditWrx6 will not install on Apache servers that are not running the ... or other multi-user site, the Admin Control Panel makes management an easy chore. ..... The LOAD_PAGE cookie is optional, if it does not exist EditWrx will load ...
Net Force Web Design - Online Content Editor, WYSIWYG Editor, Web ... OCM Editor6 will not install on Apache servers that are not running the SuExec utility. ... The Admin Control Panel makes management an easy chore. ..... The LOAD_PAGE cookie is optional, if it does not exist OCM Editor will load with ...
VISITview Update History Make the page label on the students' control auto-resize when tearoff=always. ... 8/1/2001 VISITview client ---------------- * Fix problem of not running correctly ..... but client is not finished OK - client has finished last load_page ...
Adding Web User Control Dynamically..... - ASP.NET Forums "Parser Error: Could not load type 'ASPNetportal.featured'" I appreciate any suggestions. The code is below. Public Sub Load_Page() ...
NationStates Upgrade: Comments & Bug Reports - Page 5 - Jolt Forums Does it work when "www.nationstates.net" is in your address bar, but not if it's the IP .... I was cleaning up some of my offsite forum code and tried running some XML Feed ... line 347 Dynamic::load_page('Nation=HASH(0x164a690)', ' nationdata', ..... User Control Panel, Private Messages, Subscriptions, Who's Online ...
Delphi 8 ASP.NET Delphi Scripting in ASPX Files Not Supported, Must use CodeBehind ... NET that allow you to change the appearance of a control. Suppose we drop down a list box , text control and button on a form. Now write this code in the Load_Page method : var MyStyle: Style; ... As you now, running in the background is .NET. ...




Search This Site:










clientside node toggling using a sitemapdatasource

treeview bind with xmldatasource

multiple user controls with the same template - master page?

gridview overflowing block

how to update masterpage control properties from content pages

master page style not apply to the files in the sub directory

directory structure and use of non-asp tags in master pages

display sitemap.currentnode.title in a sub folder

problem displaying popup calendar in contentpage

treeview expand question

how to set texbox focus on a site with master pages

dynamically adding a querystring parameter (sessionid) to a site map

head section and the master page

having all "child" pages to have the same title

need menu item to change dropdownlist selected index on click

binding gridview on change of treview node

site navigation with minimum time limit

onmouseover/onmouseout issues with masterpage

contentplaceholder cuts off image

treeview - customize appearance to have a separator line between top nodes

trying to activate selectednodestyle after clicking on menu node

contentplaceholder and asp:table

master pages + web custom control + c# + flash + noob = not working

why are my treeview nodes not visible?

template in aspx

theme's while designing

treeview + style

adding nodes to a sitemappath programatically

staticselectedstyle in menu control not having any effect

load xml based on page name ? maybe/

  Privacy | Contact Us
All Times Are GMT