使用j查询在gridview中进行排序,而母版页不起作用. [英] Sorting in gridview using j query with master pages not working.

查看:67
本文介绍了使用j查询在gridview中进行排序,而母版页不起作用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我有一个与asp:template字段列绑定的gridview,我想对gridview列进行排序.我的应用程序中也有母版页.

当我在没有母版页的gridview上应用排序时,它工作正常,但是当我套用母版时,排序不起作用.
谁能解释我的原因.

Hello Friends,

i have a gridview bind with asp:template field columns i want to apply sorting on gridview columns.i have master pages also in my application.

when i apply sorting on gridview without master page then it work fine but when i apply master page then sorting doesnt work.
can anyone explain me the reason.

推荐答案

好.尽管您尚未分享排序实现,但我可以猜测出它为什么会发生.

使用母版页时,您没有考虑母子命名约定.执行页面的ViewSource并查看-检查它!
如果您的代码在没有母版页的情况下工作,则可以找到页面控件对象,但是当您使用母版页时,您将找不到它们,因此无法进行排序.

下次,请共享您的代码以获得快速帮助.
Ok. Though you have not shared your sorting-implementation, I can guess out why it would be happening.

You failed to consider the master-child naming convention when master pages are used. Do a ViewSource of page and see - Check it!
If your code is working without master page, then you are able to find page control objects but when you use master page, you fail to find them and thus no sorting.

Next time, do share your code to get quick help.


这篇关于使用j查询在gridview中进行排序,而母版页不起作用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆