asp.net如何实现更换前台模版源码

asp.net如何实现更换前台模版源码,.net程序交流群①94341358大家交流一下啊,我想做个asp.net程序实现能够更换前台模版的那种,不知道怎么做啊一楼的哥哥... asp.net如何实现更换前台模版源码,.net程序交流群①94341358大家交流一下啊,
我想做个asp.net程序实现能够更换前台模版的那种,不知道怎么做啊
一楼的哥哥有没有具体源码供我参考一下啊,你有联系方式没,我有个群.net程序交流群①94341358
展开
 我来答
calender418
2009-12-07 · 超过24用户采纳过TA的回答
知道答主
回答量:80
采纳率:0%
帮助的人:60.1万
展开全部
如果你是想更换模板布局样子的话,你可以采取模板替换法,模板是事先做的好样子,你只替换其中的内容

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jquery</title>
<link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="js/jquery-easing-1.3.pack.js"></script>
<script type="text/javascript" src="js/jquery-easing-compatibility.1.2.pack.js"></script>
<script type="text/javascript" src="js/coda-slider.1.1.1.pack.js"></script>

<script type="text/javascript">

var theInt = null;
var $crosslink, $navthumb;
var curclicked = 0;

theInterval = function(cur){
clearInterval(theInt);

if( typeof cur != 'undefined' )
curclicked = cur;

$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');

theInt = setInterval(function(){
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
curclicked++;
if( 6 == curclicked )
curclicked = 0;

}, 3000);
};

$(function(){

$("#main-photo-slider").codaSlider();

$navthumb = $(".nav-thumb");
$crosslink = $(".cross-link");

$navthumb
.click(function() {
var $this = $(this);
theInterval($this.parent().attr('href').slice(1) - 1);
return false;
});

theInterval();
});
</script>
</head>

<body>

<!--<div id="page-wrap">-->

<div class="slider-wrap">
<div id="main-photo-slider" class="csw">
<div class="panelContainer">

<div class="panel" title="Panel 1">
<div class="wrapper">
<!--<img src="images/tempphoto-1.jpg"/>-->
$PicPath1$
<div class="photo-meta-data">
Photo Credit: <a href="http://www.zcool.com.cn/">ZCOOL</a><br />
<span>The Cool Photos.</span> </div>
</div>
</div>
<div class="panel" title="Panel 2">
<div class="wrapper">
$PicPath2$
<div class="photo-meta-data">
Chicago Bears at Seattle Seahawks<br />
<span>Fifth field goal, overtime win for the Seahawks</span> </div>
</div>
</div>
<div class="panel" title="Panel 3">
<div class="wrapper">

<!-- <img src="images/scotch-egg.jpg" alt="scotch egg" class="floatLeft"/>-->
$PicPath3$
<h1>How to Cook a Scotch Egg</h1>

<ul>
<li>6 hard-boiled eggs, well chilled (i try to cook them to just past soft boiled stage, then stick them in the coldest part of the fridge to firm up)</li>
<li>1 pound good quality sausage meat (i used ground turkey meat, seasoned with sage, white pepper, salt and a tiny bit of maple syrup)</li>
<li>1/2 cup AP flour</li>
<li>1-2 eggs, beaten</li>
<li>3/4 cup panko-style bread crumbs</li>
<li>Vegetable oil for frying</li>
</ul>
</div>
</div>
<div class="panel" title="Panel 4">
<div class="wrapper">
<!--<img src="images/tempphoto-4.jpg" alt="temp" />-->
$PicPath4$
<div class="photo-meta-data">
A Poem by Shel Silverstein<br />
<span>Falling Up</span> </div>
</div>
</div>
<div class="panel" title="Panel 5">
<div class="wrapper">
<!--<img src="images/tempphoto-5.jpg" alt="temp" />-->
$PicPath5$
<div class="photo-meta-data">
New Video on CSS-Tricks<br />
<span>Using Wufoo for Web Forms</span> </div>
</div>
</div>
<div class="panel" title="Panel 6">
<div class="wrapper">
<!--<img src="images/tempphoto-5.jpg" alt="temp" />-->
$PicPath6$
<div class="photo-meta-data">
New Video on CSS-Tricks<br />
<span>Using Wufoo for Web Forms</span> </div>
</div>
</div>
<!--<div class="panel" title="Panel 6">
<div class="wrapper">
<h1>A Tale of Two Cities</h1>
<p><em>Charles Dickins</em></p>
<blockquote>It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to heaven, we were all going direct the other way - in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only.</blockquote>
</div>
</div>-->
</div>
</div>

<a href="#1" class="cross-link active-thumb">$PicPath11$</a>
<div id="movers-row">
<div><a href="#2" class="cross-link">$PicPath22$</a></div>
<div><a href="#3" class="cross-link">$PicPath33$</div>
<div><a href="#4" class="cross-link">$PicPath44$</a></div>
<div><a href="#5" class="cross-link">$PicPath55$</a></div>
<div><a href="#6" class="cross-link">$PicPath66$</a></div>
</div>
</div>
<!--</div>-->

</body>
whyoowhy
2009-12-08 · TA获得超过177个赞
知道答主
回答量:143
采纳率:0%
帮助的人:105万
展开全部
是不是换母版页啊?
protected void Page_PreInit(object sender, EventArgs e)
{
HttpCookie userinfo = Request.Cookies["Info"];
if (userinfo != null)
{
MasterPageFile = "../Site3.Master";
}
}
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
zhangkunzxk
2009-12-15
知道答主
回答量:89
采纳率:0%
帮助的人:19.6万
展开全部
theInt = setInterval(function(){
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
curclicked++;
if( 6 == curclicked )
curclicked = 0;

}, 3000);
};

$(function(){

$("#main-photo-slider").codaSlider();

$navthumb = $(".nav-thumb");
$crosslink = $(".cross-link");
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式