我在用SQL Server 2008 R2
.它工作正常.但最近,我更改了我的托管服务器,我发现他们已经安装SQL Server 2012
在服务器上.
现在,问题是在连接Server Database之后SQL Server 2008 R2
,当我点击任何表名或存储过程时,我收到错误:Index was outside the bounds of the array. (Microsoft.SqlServer.smo)
那么,我的方面是否有任何问题或者来自服务器端??? 以及如何防止此问题?
我router.navigate
在同一页面上调用一些查询字符串参数.在这种情况下,ngOnInit()
不会打电话.它是默认还是我需要添加其他内容?
我想允许用户登录使用Gmail
.所以,我用谷歌搜索并获得了许多样本,但都使用了OpenID,并且我检查了Google文档,他们已经停止了对OpenID的新域名注册,从现在开始,开发人员将需要使用OAuth API.
我已经注册了我的项目并获得了Secrey KEY和客户ID.现在我想将它集成到我的项目中,但我无法找到任何样本工作项目.
请帮我解决这个问题.我没有使用MVC.
我用angular-cli
在我们的一个项目中.现在,我们开始了解webpack
.根据我的研究,webpack
它比angular-cli
它更快,它也删除了未使用的代码.我不知道有什么缺点.
我只是想知道哪一个更好地用于各种方式,如网站速度,更少的代码等.
我正在尝试Array
仅使用一个基于多个列过滤数据Pipe
.现在,它过滤第一列值.请检查我的下面的代码,并帮助我解决这个问题.
我的代码:
@Pipe({ name: "dataFilter", pure: false })
export class DataFilterPipe implements PipeTransform {
transform(value: Array<any>, filter: any[]) {
if (!filter) {
return value;
} else if (value) {
return value.filter(item => {
for (var i = 0; i < filter.length; i++) {
if (filter[i][1] == undefined) {
return true;
} else if ((typeof item[filter[i][0]] === 'string' || item[filter[i][0]] instanceof String) &&
(item[filter[i][0]].toLowerCase().indexOf(filter[i][1]) !== -1)) {
return true;
}
return false;
}
});
}
}
} …
Run Code Online (Sandbox Code Playgroud) 我正在使用PHP Mailer和Outlook SMTP获得SMTP错误.我在这里很困惑,因为它在端口号为25的localhost上工作正常,但它不能在Hosting Server上工作,我已尝试使用SSL和TLS的所有端口.
错误: SMTP错误:无法连接到服务器:连接超时(110)
我的代码:
<?php
include("PHPMailer.php");
error_reporting(E_ALL);
ini_set('display_errors', '1');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "smtp.live.com";
$mail->SMTPDebug = 2;
$mail->Port = 587;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Username = "info@neelcomputech.com";
$mail->Password = "password";
$mail->Priority = 1;
$mail->CharSet = 'UTF-8';
$mail->ContentType = 'text/html; charset=utf-8\r\n';
$mail->From = "info@neelcomputech.com";
$mail->FromName = $name;
$mail->AddAddress("info@neelcomputech.com");
$mail->IsHTML(true);
$mail->Subject = "You got Message from Website";
$mail->Body = "testing";
if(!$mail->Send())
{
echo 'Mailer Error: ' . $mail->ErrorInfo;
}
else
{
echo 'success';
} …
Run Code Online (Sandbox Code Playgroud) 我想在一段时间间隔3秒后隐藏TextView.我用Google搜索并找到了一些代码,我尝试了如下所示的代码,但它无法正常工作.
请告诉我这有什么问题?
tvRQPoint.setText("+0");
tvRQPoint.postDelayed(new Runnable() {
public void run() {
tvRQPoint.setText("+0");
}
}, 3000);
Run Code Online (Sandbox Code Playgroud)
还有一件事,如何删除超时?当我在click
事件中使用它时ListView
,如果用户点击一个选项然后点击第二个选项,那么当3秒钟结束时(点击第一个选项后),它不会显示第二个选项3秒.
我使用Ajax AsyncFileUpload
在asp.net
.它在上传图像时运行良好,但不知道为什么它会重定向到具有一些查询字符串的同一页面OnUploadComplete
.我不想重新加载页面.怎么解决这个?
我的代码如下:
function uploadComplete() {
document.getElementById('<%=lblPhotoUpload.ClientID %>').innerHTML = "Quiz Image Uploaded Successfully.";
$("#UploadQuizImageProcess").hide();
}
function uploadError() {
document.getElementById('<%=lblPhotoUpload.ClientID %>').innerHTML = "File Upload Failed.";
$("#UploadQuizImageProcess").hide();
}
function uploadQuizImageStart() {
$("#UploadQuizImageProcess").show();
}
<asp:AsyncFileUpload ID="fuPhoto" runat="server" UploadingBackColor="#779ED3" CompleteBackColor="#179406" ThrobberID="imgLoad" OnUploadedComplete="QuizImageUploadComplete" OnClientUploadStarted="uploadQuizImageStart" OnClientUploadComplete="uploadComplete" OnClientUploadError="uploadError" UploaderStyle="Traditional" />
<span id="UploadQuizImageProcess" style="display: none">
<img src="../images/uploading.gif" alt="Upload" /></span>
<asp:Label ID="lblPhotoUpload" runat="server" CssClass="lbler"></asp:Label>
protected void QuizImageUploadComplete(object sender, AsyncFileUploadEventArgs e)
{
if (fuPhoto.HasFile)
{
string filename = "";
filename = "quiz" + ".jpg"; …
Run Code Online (Sandbox Code Playgroud) 我可以看到,有代理webpack.dev.config
.如何设置代理webpack.prod.config
?我想调用另一个api域名网址而不是自己的域名网址.
我在Asp.net
框架4.0中使用URL重写,我正在使用html扩展替换aspx(即我使用像Login.aspx这样的路由作为Login.html).但它显示错误404 (未找到)错误.简而言之,扩展名为.html的URL重写在IIS 8.0上不起作用.没有.html(如登录时使用Login.aspx),它运行正常.
检查一下:
theprojectjugaad.com/Login.html(404.0误差)
请帮我解决这个问题.
Global.asax中
void Application_Start(object sender, EventArgs e)
{
RegisterRoutes();
}
private static void RegisterRoutes()
{
System.Web.Routing.RouteTable.Routes.Add(
"Login", new System.Web.Routing.Route("Login.html",
new DisplayRouteHandler("~/Login.aspx")));
}
Run Code Online (Sandbox Code Playgroud) angular ×3
asp.net ×2
c# ×2
webpack ×2
android ×1
angular-cli ×1
email ×1
filter ×1
html ×1
iis ×1
javascript ×1
navigateurl ×1
ngoninit ×1
oauth ×1
php ×1
pipe ×1
sql-server ×1
ssl ×1
textview ×1
typescript ×1