hello
im a beginner in web programming
and i faced a problem

i defined a button in a certain page say contact.aspx
when i choose button_click event it appears in Default.aspx.cs
which is not correct coz i lost my control to the page contact.aspx

waiting for ur answers .. thanks

Pls. check your HTML Source page in contact.aspx and defaulf.aspx
Codebehind="contact.aspx.vb" ???

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="frmAnnouncmentsAndMemos.aspx.vb" Inherits="HR_Common.frmAnnouncmentsAndMemos"%>

Mark as solved, if it helps you!!!

as i expected .. too simple but i wasn't able to discover this

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

now i know it .. :)
thanks 4 ur help