Thanks for your reply.
I have changed the code as you kindly provided, but unfortunately the viewModel from the HttpPost still doesn't contain the List of TreeViewItems. Have you got any other suggestion, or do you want me to provide more code?
Thanks.
Sorry, forgot to translate a few things...
Tree Controller
[HttpGet]
public ActionResult Index()
{
var viewModel = new TreeViewModel
{
nodeList = TreeHelper.CreateTree()
};
return View(viewModel);
}...
Hello,
I am trying to create a TreeView with checkbox support within ASP.NET MVC2. I have successfully created the Tree, and as can be seen from below (code simplified for posting here), each item has a checkbox.
TreeController
[HttpGet]
public ActionResult Index()
{...
Sorry, found what I was doing wrong...
Because I was preparing the sql outside the loop, the length of the column was determined by the lenght of the first row. I have now moved the prepare statement just above the line $query->execute($user_login, $user_first_name, $user_last_name); and it...
Hello,
I am having a few problems while inserting into a MS-SQL database through Perl. The script works, and inserts the data into the database, but doesn't insert all the data. Say I have the following information to pass into the database:
user_name name Surname
12345 Max Mad...
Sorry, I have figured it out.
Here is how I prcess the xml file now...
foreach my $user ($open_file->find('//user')->get_nodelist)
{
my $user_login;
my $fragment_login;
my $user_last_name;
my $user_first_name;
my $course_completed;
$user_login = $user->find('@user_login')...
Hello,
I am working on a perl script which will (in the end) take an xml file, get the necessary data and then insert it into an SQL database. I am new to Perl and xml, so am having a bit of trouble :(
Here is an extracte of the xml file - the is auto generated.
<?xml version='1.0'?>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.