ASP.NET MVC Oldskool

You can ask your question. Responses may take a while. Please ...
Aug 22, 2013 08:59
I'm inserting sql with datetime data type as follows
var insertCommand = "INSERT INTO diklat (ID_Admin, Jadwal, deskripsi, nama_diklat) Values(@0, '@1/@2/@3 @4:@5:0', @6, @7)";
db.Execute(insertCommand, idAdmin, bulan, tanggal, tahun, jam, menit, deskripsi, namaDiklat);
bur it gives me errors
anyone knows what the prblem is?
 

C#

General discussions about the c# language, Squirrels | gist.gi...
Aug 22, 2013 08:57
anyone knows what the prblem is?
Aug 22, 2013 08:57
bur it gives me errors
Aug 22, 2013 08:57
var insertCommand = "INSERT INTO diklat (ID_Admin, Jadwal, deskripsi, nama_diklat) Values(@0, '@1/@2/@3 @4:@5:0', @6, @7)";
db.Execute(insertCommand, idAdmin, bulan, tanggal, tahun, jam, menit, deskripsi, namaDiklat);
Aug 22, 2013 08:57
I'm inserting sql with datetime data type as follows
Aug 22, 2013 06:44
@Neha
Aug 22, 2013 06:43
I print it out using the ModelState.AddFormError() method
Aug 22, 2013 06:42
and none of the parameter is null
Aug 22, 2013 06:42
since it's false it go to the else statement which print whether the USER, oldpass, or password
Aug 22, 2013 06:41
if (WebSecurity.ChangePassword(USER, oldpass, password)) {
Response.Redirect("~/SuperAdmin");
return;
}else {
ModelState.AddFormError(USER);
Aug 22, 2013 06:41
well, I kinda sort it out in this following code
Aug 22, 2013 04:38
thanks
Aug 22, 2013 04:38
can anyone tell me what seems to be the problem?
Aug 22, 2013 04:37
0
Q: WebSecurity.ChangePassword returning FALSE value

Aditya AufarI can't figure out why my WebSecurity.ChangePassword is not working. Here's the piece of code I'm working on. if (WebSecurity.ChangePassword(USER, oldpass, password)) { Response.Redirect("~/SuperAdmin"); return; }else { ...

Aug 22, 2013 04:37
mine always returning false
Aug 22, 2013 04:36
I need help about websecurity.change password
 

C# Developers

Programs must be written for people to read, and only incident...
Aug 22, 2013 04:39
0
Q: WebSecurity.ChangePassword returning FALSE value

Aditya AufarI can't figure out why my WebSecurity.ChangePassword is not working. Here's the piece of code I'm working on. if (WebSecurity.ChangePassword(USER, oldpass, password)) { Response.Redirect("~/SuperAdmin"); return; }else { ...

Aug 22, 2013 04:39
I need help about websecurity.change password
mine always returning false
can anyone tell me what seems to be the problem?
thanks