Welcome Guest Search | Active Topics | Sign In | Register

MultiPage and ASP:Linkbutton Options
Stijn Redant
Posted: Monday, August 11, 2008 5:34:07 AM
Rank: Newbie
Groups: Member

Joined: 10/24/2007
Posts: 4
Hello,

I have a MultiPage with 4 PageViews.
When I add a linkbutton on the first Pageview and I define a serverEvent onClick (code behind) for that linkbutton, the Clicking of the linkbutton does not work. Why??

greetz,

Stijn Redant
eo_support
Posted: Monday, August 11, 2008 8:38:40 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

We are not aware of any problem like that. Can you create a test page demonstrating the problem? Please make sure the page runs independently.

Thanks
Stijn Redant
Posted: Tuesday, August 12, 2008 7:36:05 AM
Rank: Newbie
Groups: Member

Joined: 10/24/2007
Posts: 4
Hi,

This example works fine but when i work with masterpages the click on the linkbutton doesn't work.
So I think it has something to do with masterpages in combination with Multipage.


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyTestPage.aspx.cs" Inherits="CLGroup.Intranet.SiteManagement.UserManagement.MyTestPage" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>MyTestPage</title>
</head>
<body topmargin=0>
<form name=actionform runat="server">
<asp:ScriptManager runat="server"></asp:ScriptManager>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<table class="fontName" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<eo:TabStrip ID="TabStrip" SaveStateCrossPages=true runat="server" ControlSkinID="none" MultiPageID="MultiPage" RaisesServerEvent="True" >
<TopGroup>
<Items>
<eo:TabItem Text-Html="_Product" Value="1" >
</eo:TabItem>
<eo:TabItem Text-Html="_Maintenance" Value="2" >
</eo:TabItem>
</Items>
</TopGroup>
<LookItems>
<eo:TabItem Height="21" HoverStyle-CssText="position: relative; top: 2px; background-image: url(00010002); background-repeat: repeat-x"
ItemID="_Default" LeftIcon-HoverUrl="00010006" LeftIcon-SelectedUrl="00010008"
LeftIcon-Url="00010004" NormalStyle-CssText="position: relative; top: 2px; background-image: url(00010001); background-repeat: repeat-x"
RightIcon-HoverUrl="00010007" RightIcon-SelectedUrl="00010009" RightIcon-Url="00010005"
SelectedStyle-CssText="background-image: url(00010003); background-repeat: repeat-x"
Text-Padding-Bottom="2" Text-Padding-Top="1">
<SubGroup ItemSpacing="1" Style-CssText="background-image:url(00010000);background-position-y:bottom;background-repeat:repeat-x;color:black;cursor:hand;font-family:'Microsoft Sans Serif', Verdana;font-size:8.25pt;">
</SubGroup>
</eo:TabItem>
</LookItems>
</eo:TabStrip>
</td>
</tr>
<tr>
<td>
<eo:MultiPage runat="server" ID="MultiPage" BorderWidth="1" Width="90%" BackColor="#e6e6fa">
<eo:PageView runat="server" ID="ProductPageView">
<asp:Table ID="Table1" runat="server">
<asp:TableRow Height="20px"></asp:TableRow>
<asp:TableRow>
<asp:TableCell>&nbsp;</asp:TableCell>
<asp:TableCell Wrap="false"><asp:Label runat="server" ID="lblSerial"></asp:Label></asp:TableCell>
<asp:TableCell>:</asp:TableCell>
<asp:TableCell>&nbsp;</asp:TableCell>
<asp:TableCell ColumnSpan="4"><asp:LinkButton runat="server" ID="lnkAddNewBranch2" OnClick="test">test</asp:LinkButton>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</eo:PageView>
<eo:PageView runat="server" ID="MaintenancePageView">
<asp:Table ID="Table2" runat="server">
<asp:TableRow Height="20px"></asp:TableRow>
<asp:TableRow>
<asp:TableCell>&nbsp;</asp:TableCell>
<asp:TableCell Wrap="false"><asp:Label runat="server" ID="lblMaintenancePeriod"></asp:Label></asp:TableCell>
<asp:TableCell>:</asp:TableCell>
<asp:TableCell>&nbsp;</asp:TableCell>
<asp:TableCell><asp:TextBox runat="server" ID="txtMaintenancePeriod" SkinID="txtMini"></asp:TextBox></asp:TableCell>
</asp:TableRow>
</asp:Table>
</eo:PageView>
</eo:MultiPage>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>

My Code behind is the following:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Threading;
using OM = CLGroup.Intranet.ObjectModel.Security;

namespace CLGroup.Intranet.SiteManagement.UserManagement
{
public partial class MyTestPage : System.Web.UI.Page
{


protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{

}
}

protected void test(object sender, EventArgs e)
{
Response.Redirect("~/SiteManagement/BranchManagement/OVBranch.aspx");
}

}
}
----------------
eo_support
Posted: Tuesday, August 12, 2008 7:43:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

You will have to create a page that demonstrates the problem. :) Without seeing the problem there is little chance that we can find anything. Also make sure the page runs independently. We don't just look at your page, we run and debug it. So we won't be able to work on it if it doesn't run.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.