我有一个本地应用程序有一个路径:
http://localhost:950/m/pages/Searchresults.aspx?search=knife&filter=kitchen
Run Code Online (Sandbox Code Playgroud)
但是当它进入集成环境或生产时,它就会像
http://www.someshopping.com/m/pages/SearchResults.aspx?search=knife&filter=kitchen
Run Code Online (Sandbox Code Playgroud)
在某些情况下,我需要通过:
www.someshopping.com
Run Code Online (Sandbox Code Playgroud)
到我的XSLT文件和我正在使用的函数之一:
string currentURL = HttpContext.Current.Request.Url.Host;
Run Code Online (Sandbox Code Playgroud)
这会在本地环境中返回" localhost ".相同的代码会回复我:
www.someshopping.com在制作中(我不需要http://)
只是不想冒任何机会.所以问这个愚蠢的问题.
我是Sharepoint的新手.我正在尝试使用Visual Studio 2010创建一个简单的Web部件,但是当我尝试验证我的Sharepoint服务器(VS 2010和Sharepoint都存在于同一系统中)时,它说:
无法连接到SharePoint站点:http:// wpnne76648:2010.确保站点URL有效,SharePoint站点在本地计算机上运行,并将当前用户作为访问站点的必要权限.
如果我忽略它并单击完成然后尝试部署应用程序,它说:
部署步骤"回收IIS应用程序池"中出错:本地SharePoint服务器不可用.检查服务器是否正在运行并已连接到SharePoint场.
注意:我可以在浏览器中打开我的Web应用程序.
c# sharepoint visual-studio-2010 visual-studio sharepoint-2010
我不知道我的查询有什么问题,但是我收到了这个错误:
Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'From a
INNER JOIN table2 b
ON a.column1 = b.column1 AND a.column2 = b.column2' at line 4
Run Code Online (Sandbox Code Playgroud)
这是我正在尝试的sql:
UPDATE table1 AS a
Set a.Closed = 2
From a
INNER JOIN table2 b
ON a.column1 = b.column1 AND a.column2 = b.column2
WHERE number in (01809076,02170039);
Run Code Online (Sandbox Code Playgroud)