UPDATE [silverdb01].[dbo].[info]
SET [FM] = SUM(a.[MONDAY] - b.[QUOTA])
FROM [silverdb01].[dbo].[info] a, [silverdb01].[dbo].[quota] b
WHERE a.[WORK_TYPE]='IN' AND a.[NAME]='KUTHAY'
Run Code Online (Sandbox Code Playgroud)
当我运行这个时,我收到以下错误:
聚合可能不会出现在UPDATE语句的集合列表中.
有任何想法吗?
我正在使用Jquery Mobile在dreamviewer中制作基本的"新闻"应用程序.
我做了所有的设计,但现在是时候把我的api服务器上的Json数据放到我的应用程序中了.
这是我的api服务器链接; fe"http:/ mywebapiurl"
我想我需要编写关于getJson的Jquery函数,但我不知道如何制作它?
我将如何通过小文章图片,发表文章和文章头条将其放入我的列表视图中?
这是我的列表视图的示例,我将展示来自Json的新闻.
<body>
<div data-role="page" id="home">
<div data-role="header">
<h1>Post Mobile</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li><a href="#headline">
<img src=ArticlePicture" class="ui-li-has-thumb"/>
<h3>ArticleTitle</h3>
<p>ArticleHeadline</p>
</a></li>
</ul>
</div>
<div data-role="footer" data-position="fixed">
<h4>© funky app </h4>
</div>
Run Code Online (Sandbox Code Playgroud)
这是我试过的代码示例;
<script>
$(document).ready(function() {
$.getJSON("http://mywebapiurl", function(data) {
var result= "";
$.each(data.LatestNews, function(index, value) {
result+= "<ul><li><a href='#'><h3>"+value.TITLE+"</h3><p>"+value.SPOT+"</p></a></li></ul>";
});
$("#articleContainer").html(result);
})
});
</script>
Run Code Online (Sandbox Code Playgroud)
等你的回答.
非常感谢你.
在android中,我们右键单击我们的项目,单击导出并获取apk.
对于Windows Phone 8,在visual studio 2012中,如何将我的应用程序导出到我的桌面或某个地方?
有人可以帮忙吗?
谢谢 !
windows-phone-7 windows-phone windows-phone-7.1 visual-studio-2012 windows-phone-8
我是Windows手机平台上的新手.我正在尝试制作新闻申请.在此应用程序中,用户点击并阅读新闻文章,之后,用户想要回到主页再次查看所有新闻标题,并再次点击其他新闻.
但是当用户在阅读第一篇文章后返回主页时,用户点击第二个新闻标题.但是当用户导航到新页面时,第一篇新闻文章仍然存在.
我想问一下,当用户按下主页时,是否有用户(阅读第一篇新闻文章后)用于清除文章页面缓存的后退按钮?
我用过这个,但它没有;
private void ApplicationBarIconButton_Click_1(object sender, EventArgs e)
{
NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
}
Run Code Online (Sandbox Code Playgroud)
我在我的httprequest下写了一些东西,但它对我也没有用;
private void LiveLongListSelector_Loaded(object sender, RoutedEventArgs e)
{
string url = "MYWEBAPIURL&rnd=" + new Random().Next(1,1000);
HttpWebRequest hWebRequest = (HttpWebRequest)HttpWebRequest.Create(url);
hWebRequest.Method = "GET";
hWebRequest.BeginGetResponse(ResponseLive_Completed, hWebRequest);
hWebRequest.Headers[HttpRequestHeader.CacheControl] = "no-cache";
hWebRequest.Headers[HttpRequestHeader.CacheControl] = "no-cache";
hWebRequest.Headers["Cache-Control"] = "no-cache";
hWebRequest.Headers["Pragma"] = "no-cache";
}
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我找到完美的后退按钮或其他东西吗?
非常感谢你
我正在努力开发像facebook这样的时间轴.

你看,我有一个ViewPager来导航用户之间的"片段",如feed,profile,about等.
我有"main.xml",就像这样只有viewpager;
<android.support.v4.view.ViewPager
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v4.view.ViewPager>
Run Code Online (Sandbox Code Playgroud)
我还有fragmenta.xml,fragmentb.xml,fragmentc.xml.让我们检查一下fragmenta.xml,在里面,我把;
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFCC00"
tools:context=".FragmentA" >
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true">
</ListView>
</FrameLayout>
Run Code Online (Sandbox Code Playgroud)
并使singlerow.xml将这些框创建为这样的时间轴;
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="#e67e22"
android:layout_margin=" 5dp">
<ImageView
android:layout_marginTop="5dp"
android:layout_marginBottom="0dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/s1" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:layout_gravity="left"
android:textAlignment="gravity"
android:text="16 likes"/>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:layout_gravity="right"
android:textAlignment="gravity"
android:text="43mins ago"/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1">
<Button
android:id="@+id/button1"
android:layout_width="wrap_content" …Run Code Online (Sandbox Code Playgroud) 我正在使用JQM框架进行phonegap项目.
在这个项目中,我正在尝试进行导航菜单,向左滑动(打开)和向右滑动(关闭).
这些代码在Jquery 1.6.4上运行良好.
但是,当我将Jquery 1.9.1导入我的项目时,它不起作用.按钮单击工作,但滑动不.
不要告诉我继续1.6.4那么请,我需要帮助:)
这是我的功能;
$(function(){
var menuStatus;
$("a.showMenu").click(function(){
if(menuStatus != true){
$(".ui-page-active").animate({
marginLeft: "265px",
}, 300, function(){menuStatus = true});
return false;
} else {
$(".ui-page-active").animate({
marginLeft: "0px",
}, 300, function(){menuStatus = false});
return false;
}
});
$('.pages').live("swipeleft", function(){
if (menuStatus){
$(".ui-page-active").animate({
marginLeft: "0px",
}, 300, function(){menuStatus = false});
}
});
$('.pages').live("swiperight", function(){
if (!menuStatus){
$(".ui-page-active").animate({
marginLeft: "265px",
}, 300, function(){menuStatus = true});
}
});
$("#menu li a").click(function(){
var p = $(this).parent();
if($(p).hasClass('active')){
$("#menu li").removeClass('active');
} else …Run Code Online (Sandbox Code Playgroud)