我正在使用colorbox模态插件(http://colorpowered.com/colorbox/)
我有一个简单的表单坐在母版页中,由于某种原因,我无法将提交按钮发回,它根本不做任何事情.
似乎是一些人有问题,但我找不到解决办法.
这里'我正在玩的一些代码,任何线索?
母版页中的代码
<link href="http://www.communitysectorservices.org.au/css/colorbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="http://www.communitysectorservices.org.au/js/jquery.colorbox.js"></script>
<script type="text/javascript">
$(document).ready(function () {
//Examples of how to assign the ColorBox event to elements
$("a[rel='example1']").colorbox();
$("a[rel='example2']").colorbox({ transition: "fade" });
$("a[rel='example3']").colorbox({ transition: "none", width: "700px", height: "75%" });
$("a[rel='example4']").colorbox({ slideshow: true });
$(".example5").colorbox();
$(".example6").colorbox({ iframe: true, innerWidth: 425, innerHeight: 344 });
$(".example7").colorbox({ width: "80%", height: "80%", iframe: true });
$(".example8").colorbox({ width: "600px", inline: true, href: "#inline_example1" });
$(".example9").colorbox({
onOpen: function () { alert('onOpen: colorbox …Run Code Online (Sandbox Code Playgroud) 我想知道它是否有可能加入IEnumerable.
基本上我有一大堆用户需要从数据库中获取内容,以便我可以搜索和翻阅它.
我正在使用LINQ to SQL,我的代码目前:
public IEnumerable<content> allcontent;
//Get users friends
IEnumerable<relationship> friends = from f in db.relationships
where f.userId == int.Parse(userId)
select f;
IEnumerable<relationship> freindData = friends.ToList();
foreach (relationship r in freindData)
{
IEnumerable<content> content = from c in db.contents
where c.userId == r.userId
orderby c.contentDate descending
select c;
// This is where I need to merge everything together
}
Run Code Online (Sandbox Code Playgroud)
我希望有道理!
马特
我正在为客户开发一个新项目; 他们提供了我需要迁移到我们的内容管理系统的网站设计.
.NET似乎不喜欢分散在整个主题中的id.
有什么理由 - throws ...不是有效的标识符?
欢呼任何回复.
例子
<form id="login-form" runat="server">
<input type="text" name="username" runat="server" id="login-username" placeholder="Username" />
Run Code Online (Sandbox Code Playgroud)
更新
似乎正在改变 - 解决问题.回答下面!
马特