我的应用程序的新版本是1.2.但在iTunes Connect的"销售与趋势"中,我看到了"未知"应用版本.此新评论未在App Store的"当前版本"选项卡中显示(仅在所有版本选项卡中).怎么了?
我想,如果该复选框是从我acion methon检查或不考,我需要的是从视图控制器通过复选框值
这是我的看法
@using (Html.BeginForm("Index", "Graphe"))
{
<table style="width: 100%;" border="1">
<tbody>
<tr>
<td>Responsable:</td>
<td><select id="Responsables" name="responsables" ><option>Selectionnez --</option></select></td>
<td><input id="responsable" name="checkResp" type="checkbox" /> </td>
</tr>
<tr> <td><input type="submit" value="Afficher" id="ButtonSubmit"/></td>
<td><input class="button" id="ButtonReset" type="button" value="Annuler" /></td>
</tr>
</tbody>
Run Code Online (Sandbox Code Playgroud)
我试着这样做:
public ActionResult Index(string responsables, bool checkResp)
{
Highcharts chart = new Highcharts("chart");
if (responsables != null)
{
if (checkResp)
chart = Global();
else
chart = Resp(responsables);
}
else
chart = Global();
return View(chart);
}
Run Code Online (Sandbox Code Playgroud)
,但我有这个错误:
乐德辞典参数应用contient UNE主菜空倒乐paramètre«checkAct»德式非可空«System.Boolean»倒拉METHODE«System.Web.Mvc.ActionResult指数(System.String,System.String,布尔)»丹斯«项目.Controllers.GrapheController».联合国paramètrefacultatif DOIT理由取消类型引用,联合国可空类型鸥理由宣布EN坦阙paramètrefacultatif.Nomduparamètre:参数
你能帮我吗 !
在存储过程MS SQL中我的查询是:
SELECT *
FROM ContentReportRequests a,UserPreferences d
WHERE a.UserID = d.UserID and a.ID =@ID
Run Code Online (Sandbox Code Playgroud)
我想给结果表一些名字.我怎样才能做到这一点 ?
我想把它拉到ADO.Net DataSet.tables ["NAME"]
我有一个未排序的用户列表和一个已排序的用户ID列表。id是一个字符串。我想按第二个排序第一列表。如何在Kotlin中做到这一点?
data class User(val name : String, val id : String)
val unsorted = listOf<User>(
User("Max", "b12s11"),
User("Joe", "dj1232"),
User("Sam", "23d112"),
User("Tom", "k213i1")
)
val sorted = listOf<String>(
"dj1232",
"b12s11",
"k213i1",
"23d112"
)
// what I need
val result = listOf<User>(
User("Joe", "dj1232"),
User("Max", "b12s11"),
User("Tom", "k213i1"),
User("Sam", "23d112")
)
Run Code Online (Sandbox Code Playgroud) 我有一组List<>需要排序的字典值 (a )。基本上每个字典都是一个“行”,集合是一页行。一个简单的例子;
var data = new List<Dictionary<string,string>>();
data.Add(new Dictionary<string,string>() {
{ "Firstname", "Bob"},
{ "Lastname", "Banana"}
});
data.Add(new Dictionary<string, string>() {
{ "Firstname", "Amy"},
{ "Lastname", "Apple"}
});
data.Add(new Dictionary<string, string>() {
{ "Firstname", "Charlie"},
{ "Lastname", "Coconut"}
});
data.Add(new Dictionary<string, string>() {
{ "Firstname", "Andy"},
{ "Lastname", "Apple"}
});
Run Code Online (Sandbox Code Playgroud)
生成的排序字符串是“SQL”之类的,例如
Lastname asc, Firstname desc
Run Code Online (Sandbox Code Playgroud)
我已经尝试.OrderBy()过数据对象,但这似乎不适用于 KeyValuePairs。
知道如何使用动态排序语句按此顺序对数据列表进行排序:
Apple, Andy
Apple, Amy
Banana, Bob
Coconut, Charlie
Run Code Online (Sandbox Code Playgroud)
如果一些花哨的 LINQ 可以工作,则使用 .NET 4.0。感谢您的任何建议。
我使用以下代码来更改列名称,但遗憾的是它不会让我这样做.请帮我解决这个问题.
DateTime dt = DateTime.Now;
string s = dt.DayOfWeek.ToString();
for (int i = 0; i < 10; i++)
{
dataGridView1.Columns.Add(string.Format("col{0}", i), s);
}
for (int i = 0; i < dataGridView1.Columns.Count; i++)
{
int c = dataGridView1.CurrentCell.ColumnIndex;
string str = dataGridView1.Columns[c].HeaderText;
if (str == "Wednesday")
{
str = "fifth day of week";
}
}
Run Code Online (Sandbox Code Playgroud)
也有任何方式,以便我可以在特定日期时间之后一周一天地获得.
任何帮助将不胜感激
当通过 formReset 方法重置表单时,有没有办法收到通知?
我有一个注入表单的指令,当提交表单或通过重置按钮重置表单时,我可以收到通知,但我无法找到在 ngForm 上调用 formRest 时收到通知的方法。
@Directive({
selector: '[appForm]'
})
export class FormDirective implements OnDestroy {
private subscription: Subscription;
constructor(form: NgForm) {
this.subscription = form.ngSubmit.subscribe(() => {
console.log('submitted');
});
form.onReset = () => {
console.log('reset');
};
}
ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}
Run Code Online (Sandbox Code Playgroud)
使用类似指令
<form appForm #form="ngForm">
<button type="submit">Submit</button>
<button type="reset">Reset</button>
<button type="button" (click)="form.resetForm()">Angular reset</button>
</form>
Run Code Online (Sandbox Code Playgroud)
有没有办法通知我的指令resetForm方法已被调用?
StackBlitz 的演示https://stackblitz.com/edit/angular-adymlf?file=src/app/form.directive.ts
我正在尝试使用实体框架工作核心并打开一个新的 asp.net 核心项目。当我尝试通过 nuget 包管理器安装 Microsoft.EntityFrameworkCore.SqlServer 时,出现以下错误。
包 Microsoft.EntityFrameworkCore.SqlServer 3.0.0 与 net461 (.NETFramework,Version=v4.6.1) 不兼容。包 Microsoft.EntityFrameworkCore.SqlServer 3.0.0 支持:netstandard2.1 (.NETStandard,Version=v2.1)
当我点击它时,我被发送到 .csproj 文件。
在该文件中,我将目标框架从
<TargetFramework>net461</TargetFramework>更改
<TargetFramework>netstandard2.1 </TargetFramework>为错误所暗示的。
这样做可以消除错误,但是当我在包管理器控制台中使用命令“add-migration”时,出现此错误。
“术语 'add-migration' 不被识别为 cmdlet 的名称”
我不确定接下来要做什么。请帮忙。我希望我已经清楚地解释了这个问题。
删除 project.assets 文件或更新 nuget 包管理器并使用命令“enable-migrations”也没有奏效。
为了学习如何使用ca65汇编程序,我一直在努力使include guards起作用。谷歌搜索和阅读《ca65用户指南》无济于事。这是产生错误的最小示例。
$ ls -l
total 16
-rw-r--r-- 1 me staff 60 Oct 22 19:40 65.inc
-rw-r--r-- 1 me staff 55 Oct 22 20:01 test.s
$
$ cat 65.inc
.ifndef _65_INC_
.define _65_INC_
.define NUMBER 1
.endif
$
$ cat test.s
.include "65.inc"
.include "65.inc"
lda #NUMBER
rts
$
$ ca65 test.s
65.inc(1): Error: Identifier expected
65.inc(2): Error: Identifier expected
65.inc(4): Error: Identifier expected
65.inc(4): Note: Macro was defined here
$
$ ls -l
total 16 …Run Code Online (Sandbox Code Playgroud) c# ×4
collections ×2
sorting ×2
sql-server ×2
6502 ×1
android ×1
angular ×1
app-store ×1
asp.net ×1
asp.net-core ×1
asp.net-mvc ×1
assembly ×1
c64 ×1
ca65 ×1
checkbox ×1
code-first ×1
datagridview ×1
datetime ×1
kotlin ×1
linq ×1
match ×1
select ×1