Author: ponkarthik | Posted on: 1/30/2009 8:50:20 AM | Views : 307

Hi to all,
I made one user control,but before making an user control i made one page and i wrote all codes which i want to use in user control.

It's running well but i copy the code and put it into user control it shows an error as 'Page Method' is undefined.

I don't know why it has happened?
can any one help me?
My code is:-
 <%@ Control Language="C#" AutoEventWireup="true" CodeFile="DepositIncentive.ascx.cs" Inherits="UserControl_DepositIncentive" %>
    <link href="../UserControl/UserControl.css" rel="stylesheet" type="text/css" />
    <script src="../Check.js" language ="javascript" type="text/javascript" ></script>
    <script type ="text/javascript" language ="javascript">
    & ...

Go to the complete details ...