ICollection not saving to DB with ajax POST
I thought the problem was in displaying but turns out my ICollection is
not being saved. All values post to DB fine but not items which is my
collection
ajax POST
var tess= {
FromUserID: uid,
ToUserID: TUid,
itemTradedForId: TItemId,
items: ids, //not saving
__RequestVerificationToken:
$("[name='__RequestVerificationToken']").val()
}
//jQuery.ajaxSettings.traditional = true
$.ajax({
type: "POST",
url: to URL
data: tess
//dataType:JSON
//contentType: "application/json; charset=utf-8",
//data: JSON.stringify(tess)
});
controller
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Create(Tes tess)
{
if (ModelState.IsValid)
{
db.Trades.Add(tess);
db.SaveChanges();
//
//
Monday, 2 September 2013
logic to select the zip file from source and sending it to another directory
logic to select the zip file from source and sending it to another directory
I am stuck up in an odd situation that ia I have a folder in C: named
sourceconsists of one .dat file and one .zip file now I want to move only
zip file to another diretory in c : named target
1) Now first I have to write the logic to pick up the .zip file from
source folder
what I HAVE TRIED IS ...
private void filemove(String FilePath2, String s2) { filepath2 contains
the location of source c:\\source
String destination ="C:\\target\\"
try {
File f = new File(FilePath2);
if (f.getName().endsWith(".zip")) {
//please advise the logic to copy the file to destination folder
}
} catch (Exception e) {
e.printStackTrace();
}
}
please advise the logic to copy the files to destination folder
I am stuck up in an odd situation that ia I have a folder in C: named
sourceconsists of one .dat file and one .zip file now I want to move only
zip file to another diretory in c : named target
1) Now first I have to write the logic to pick up the .zip file from
source folder
what I HAVE TRIED IS ...
private void filemove(String FilePath2, String s2) { filepath2 contains
the location of source c:\\source
String destination ="C:\\target\\"
try {
File f = new File(FilePath2);
if (f.getName().endsWith(".zip")) {
//please advise the logic to copy the file to destination folder
}
} catch (Exception e) {
e.printStackTrace();
}
}
please advise the logic to copy the files to destination folder
ActiveReport Truncate A Text
ActiveReport Truncate A Text
I make a Report in ActiveReport3.0 which has a Subreport. In my subreport,
in the Detail part actually, I have a textbox , that I bind my value to
the textbox.datafield. my value is a text in persian and it is also
long(about 8000 words).( I read the Value from Sql).I set the alignment of
the textbox to "rtl" because my text is in persian. then when I run my
app, the activereport truncate my text in persian (truncate it from left
and right of the textbox not at the bottom).what is the problem?
I make a Report in ActiveReport3.0 which has a Subreport. In my subreport,
in the Detail part actually, I have a textbox , that I bind my value to
the textbox.datafield. my value is a text in persian and it is also
long(about 8000 words).( I read the Value from Sql).I set the alignment of
the textbox to "rtl" because my text is in persian. then when I run my
app, the activereport truncate my text in persian (truncate it from left
and right of the textbox not at the bottom).what is the problem?
Custom color of part of text in Jtable cell
Custom color of part of text in Jtable cell
What i need is simple. I have a column in a jtable, and i need to insert a
string with different parts colorized. For example:
I need this [string] inserted into a jTable cell.
In the example, only the word "string" should have the red color,
everything else gray.
How do i do that?
What i need is simple. I have a column in a jtable, and i need to insert a
string with different parts colorized. For example:
I need this [string] inserted into a jTable cell.
In the example, only the word "string" should have the red color,
everything else gray.
How do i do that?
Sunday, 1 September 2013
andorid keyboard with different language
andorid keyboard with different language
How to print urdu font in editbox while user press any button of the
softkeyboard?
I want to create urdu keyboard. I have made lots of research on that. I
found the solutions. but I couldn't found the way that how to print urdu
fonts in editbox when user type? I know about keyboard.xml and other
things.
Thanks.
How to print urdu font in editbox while user press any button of the
softkeyboard?
I want to create urdu keyboard. I have made lots of research on that. I
found the solutions. but I couldn't found the way that how to print urdu
fonts in editbox when user type? I know about keyboard.xml and other
things.
Thanks.
A simple file with the askey table for rendering in lwjgl
A simple file with the askey table for rendering in lwjgl
ooloo trying to educate my self in the lwjgl and have been trying to
render text, small problem thou what is the best way because I have used a
used a bitmap concept and am now trying a vectoring concept but they are
both to slowly executed(my code might be a problem)
I would like to know where to find the basic file of the basic fonts.
Thanx
ooloo trying to educate my self in the lwjgl and have been trying to
render text, small problem thou what is the best way because I have used a
used a bitmap concept and am now trying a vectoring concept but they are
both to slowly executed(my code might be a problem)
I would like to know where to find the basic file of the basic fonts.
Thanx
Visual studion 2012 windows forms application (C ) .exe is not a valid Win32 application
Visual studion 2012 windows forms application (C ) .exe is not a valid
Win32 application
i have done a application in Visual studion 2012 Windows forms application
using C++. It runs very well in Windows 7 but it did not work in Windows
XP. it says ".exe is not a valid win32 application". how could i do?
Thanks
Win32 application
i have done a application in Visual studion 2012 Windows forms application
using C++. It runs very well in Windows 7 but it did not work in Windows
XP. it says ".exe is not a valid win32 application". how could i do?
Thanks
Subscribe to:
Posts (Atom)