Click here to Skip to main content
15,922,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

am developing application in ASP,c#.
there is login ,admin, user

admin entered into his username& password clicks on OK (button),entered into admin panel,admin page consists tab control(having 6 tabs),(add, edit, delete.....)

then the problem is:

first tab (add),consists OK&Cancel buttons it's working.
but in second third.... tabs also consists OK &Cancel buttons they aren't be working.

when i click OK, it's not enter into corresponding functionality of that button in code behind file( i kept breakpoints).


how to solve it.plz anybody help
Posted
Comments
Member 10263519 18-Jan-14 1:19am    
am using ajaxcontroltoolkit
Siva Hyderabad 18-Jan-14 1:23am    
May be u keep tab in updatepanel?
Member 10263519 18-Jan-14 1:32am    
means ,here is my code for admin page design


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="Online_Billing_System.Admin" %>
<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" tagPrefix="ajax" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Admin</title>
<script type="text/javascript">
function DeleteItem() {
if (confirm("Are you sure you want to delete ...?")) {
return true;
}
return false;
}
</script>

<style type="text/css">
.style1
{
width: 151px;
}
</style>

</head>
<body>
<form id="form1" runat="server">
<ajax:ToolkitScriptManager ID="scriptmanager1" runat="server">

<div style=" width:89%">
<ajax:TabContainer ID="adminTabContainer" runat="server" ActiveTabIndex="3">
<ajax:TabPanel ID="tbpnladd" runat="server" ><HeaderTemplate>Add Member</HeaderTemplate><contenttemplate>
<asp:Panel ID="AddMem" runat="server" Width="738px">
<table align="center"
style="width: 651px"><tr><td></td><td align="right" ></td><td align="center">Add Member </td></tr><tr><td></td><td align="right" >Member ID: </td><td><asp:TextBox ID="txtmemid" runat="server"></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage=" Enter Member ID " ControlToValidate="txtmemid"
ForeColor="Red"></td></tr><tr><td></td><td align="right" >Card ID: </td><td><asp:TextBox ID="txtcardid" runat="server" ></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ErrorMessage="Enter Card ID" ControlToValidate="txtcardid" ForeColor="Red"></td></tr><tr><td></td><td align="right">Name: </td><td><asp:TextBox ID="txtname" runat="server"></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Enter Name" ControlToValidate="txtname" ForeColor="Red"></td></tr><tr><td></td><td align="right">Date Of Membership: </td><td>
<asp:TextBox ID="txtdate" runat="server"
> </td><td><ajax:CalendarExtender ID="calendar1"
TargetControlID="txtdate" runat="server" PopupButtonID="calendar"
Format="yyyy-MM-dd" Enabled="True"></td>

<td class="style1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Enter Date Of Membership" ControlToValidate="txtdate" ForeColor="Red"></td></tr><tr><td></td><td align="right">Opening Balance: </td><td><asp:TextBox ID="txtopenbal" runat="server"></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Enter Opening Balance" ControlToValidate="txtopenbal" ForeColor="Red"></td></tr><tr><td></td><td align="right" >Phone No: </td><td><asp:TextBox ID="txtphone" runat="server"></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Enter Phone No" ControlToValidate="txtphone" ForeColor="Red"></td></tr><tr><td></td><td align="right" >Address: </td><td align="left"><asp:TextBox ID="txtaddress" runat="server"></td><td>
<asp:RequiredFiel

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900