C# .NET - jquery - Asked By sara asa on 06-Jun-11 02:56 AM

master page code

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="jquery.Site1" %>

<!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 runat="server">

<title>Untitled Page</title>

<%--<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>--%>

<script src='<%= Page.ResolveUrl("~/scripts/jquery-1.4.1x.min.js") %>' type="text/javascript"></script>

<asp:ContentPlaceHolder ID="head" runat="server">




<form id="form1" runat="server">


<asp:ScriptManager ID="ScriptManager1" runat="server"



<asp:ScriptReference Path="~/Scripts/jquery-1.4.1.min.js" />



<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">






content page code

<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="panelmastery.aspx.cs" Inherits="jquery.panelmastery" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript">

$(document).ready(function() {


$("#btnShow").click(function() {








<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<input id="btnShow" type="button" value="show" />

<asp:Panel ID="MyPanel" runat="server" Width="300" Height="80"


<asp:Label ID="lblname" runat="server" Text="name"></asp:Label>

&nbsp;<asp:TextBox ID="txtname" runat="server"></asp:TextBox><br />

nice idea to have it.

<br />



Peter Bromberg replied to sara asa on 06-Jun-11 11:39 AM
Do you have a question?  All I see is a bunch of sample code.
sara asa replied to Peter Bromberg on 06-Jun-11 03:08 PM

oh hi peter...
sorry i forgot bind my code and question together ...i would mix all with a new post...this was my first question that forgot code paste
hi guys..
i had a client button that when click on it ...one panel  show and after a while it disapear...in simple page everything work fine..but when i wanna make it in master page...my jquery function dont work...i show u my codes both in master and  content page and plz tell me why it doesnt work  in master page !

thank you. ------------------- this is master settings i add page.resolve and in script manager add reference and path..even i delete path in script manager but still didnt work

-----------------------its my content page...function script and panel with client button... i have np in this page cause it get run in simple page i guess things dont work in master page with my settings  .