目前我在做这个查询:
select a.x, b.x, c.x
from number as a, customer as b, numbergroup as c
where a.b = b.b and a.c = c.c and c.b = b.b
Run Code Online (Sandbox Code Playgroud)
但是,我想从表"a"中检索记录,即使"ac = null",由于"a"和"c"之间的连接而未检索到该记录.
我找到了有关"左连接"的信息(http://www.w3schools.com/sql/sql_join_left.asp),但是当查询涉及两个以上的表时,我不知道该怎么做.
任何帮助或指导将不胜感激.
如果会话已过期且用户单击指向另一个webform的链接,则asp.net身份验证会自动将用户重定向到登录页面.
但是,有些用户没有点击指向其他网络表单的链接.例如:在gridviews中编辑链接,当使用带有文本框的AutoCompleteExtender并且应用程序尝试获取信息时,基本上,在每种情况下,当回发完成并且事件不是由asp.net身份验证自动处理时.
处理这些异常的最佳方法是什么?
更新:我刚刚修改了问题标题:表单身份验证超时,而不是初始会话超时.谢谢你让我意识到这种差异.
更新:我刚刚针对我面临的具体问题创建了一个新问题:如何使用UpdatePanel处理因过期身份验证票据而导致的异常?.令人惊讶的是,我没有找到关于它的更多信息.我将衷心感谢您的帮助.
点击链接时我正在调用thickbox:
<a href="createContact.aspx?placeValuesBeforeTB_=savedValues&TB_iframe=true&height=400&width=550&modal=true"
title="Add a new Contact" class="thickbox">Add a new Contact</a>
Run Code Online (Sandbox Code Playgroud)
并且,当单击服务器按钮时,我调用此javascript函数来显示jGrowl通知:
ScriptManager.RegisterClientScriptBlock(this, typeof(Page), Guid.NewGuid().ToString(), "$(function(){$.jGrowl('No Contact found: " + searchContactText.Text + "');});", true);
Run Code Online (Sandbox Code Playgroud)
两者都按预期工作,除非首先显示jGrowl而不是厚盒.这将导致厚箱无法工作,页面将显示为普通网页(就像厚箱已经消失一样).
有谁知道发生了什么?
更新:这是没有母版页的测试页面:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="RoutingPortal.Presentation.WebForm2" %>
<!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></title>
<script src="../Scripts/jquery-1.6.2.js" type="text/javascript"></script>
<script src="../Scripts/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
<script src="../Scripts/thickbox.js" type="text/javascript"></script>
<script src="../Scripts/jquery.jgrowl.js" type="text/javascript"></script>
<link href="../Scripts/css/jquery.jgrowl.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="~/CSS/thickbox.css" type="text/css" media="screen" />
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel …Run Code Online (Sandbox Code Playgroud) 创建/删除角色时,我不想修改代码.
if (HttpContext.Current.User.IsInRole("Super Admin") ||
HttpContext.Current.User.IsInRole("Admin") ||
HttpContext.Current.User.IsInRole("Support"))
{
if (HttpContext.Current.User.IsInRole("Admin"))
{
ListBox1.DataSource = Roles.GetAllRoles().Except(
new[] { "Super Admin" });
}
if (HttpContext.Current.User.IsInRole("Support"))
{
ListBox1.DataSource = Roles.GetAllRoles().Except(
new[] { "Super Admin", "Admin" });
}
fillDropDownCustomers();
}
Run Code Online (Sandbox Code Playgroud) 以前,我已将login.aspx添加到IIS中的" 默认文档"部分.
但是,当有人访问该应用程序时,需要登录两次.第一个不会说任何错误消息或没有重定向到应用程序中的下一页.第二个实际上会将用户重定向到预期的页面.并且用户两次都使用正确的凭据.
一旦我从IIS中的Default Document部分删除了login.aspx,并且用户提供了应用程序的完整链接(〜/ login.aspx),问题就消失了,因为它只需要登录一次.
有谁知道为什么会这样?
目前,我在RowDataBound中有以下代码:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Label groupID = (Label)e.Row.FindControl("idgroup");
LinkButton myLink = (LinkButton)e.Row.FindControl("groupLink");
myLink.Attributes.Add("rel", groupID.Text);
}
}
Run Code Online (Sandbox Code Playgroud)
但是,当我单击"编辑"链接时,它会尝试运行该代码并引发错误.因此,如何在GridView处于读取模式时运行该代码?但不是在编辑时......
下图显示了查询及其没有变量的结果:

下一个显示带有变量和不同结果的相同查询:

这是如何在查询执行之前设置参数:

我也试过设置参数没有''但它产生相同的结果.
关于发生了什么的任何线索?任何帮助将不胜感激.
注意:DBMS是MySql
我有以下情形:我为开发服务器中的几个实体创建了一些功能区。我现在可以将此功能区定制导出到另一台服务器吗?还是我必须再次创建它们?
我一直在使用CRM 2011和Ribbon Workbench。