Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 24 of 24
Search took 0.01 seconds.
Search: Posts Made By: bh81
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 May 2nd, 2012, 07:16 AM
Replies: 1
Views: 287,159
Posted By bh81
How to pass a model in BeginForm() and use FormMethod.post?

I am trying to develop a widzard that takes user from one page to another, "remembering" what the user has input on first page to the next without saving.

First page: Create.aspx (with 5 fields)...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 March 7th, 2012, 05:53 AM
Replies: 8
Views: 10,482
Posted By bh81
This is working now but hope it is the right approach

I have got it working now and I hope this will help someone. But do let me know if there is a better approach.

public static IEnumerable<SelectListItem> GetADUserForList()
{
...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 March 6th, 2012, 05:13 AM
Replies: 8
Views: 10,482
Posted By bh81
1 error on the use of .Select

Thank you irProject for you prompt reply. Much appreciated. Now I'm left with 1 error:

The codes are as below now:

public class RetriveADInfo
{
public static...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 March 5th, 2012, 09:42 AM
Replies: 8
Views: 10,482
Posted By bh81
populate dropdown with AD users

Based on the same principle with getting all the departments, I am trying to connect to LDAP and retrieve all the users and populate the drop down list......but the codes below does not work. I can...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 February 20th, 2012, 07:34 AM
Replies: 8
Views: 10,482
Posted By bh81
Thumbs up You are a star - thank you

Thank you. Exactly what I was looking for.

All are working apart from having to use:

HttpContext.Current.Session["departments"] instead of Session["departments"]

You are a star :)
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 February 17th, 2012, 06:39 AM
Replies: 8
Views: 10,482
Posted By bh81
How to do this in a helper?

Thank you. Nice codes...however, how can I put this in a helper please? (Sorry, I'm still very new to ASP.NET MVC).

I tried putting the codes in but it wouldn't compile with "private",...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 February 9th, 2012, 05:35 PM
Replies: 8
Views: 10,482
Posted By bh81
How to use DropDownListfor to lookup vaules from another table?

Hi,

Based on my very limited ASP.net MVC knowledge developing my new app from Nerd Dinner.....

I am trying to achieve something which should be a very common practice. I have 2 tables:...
Forum: BOOK: Professional ASP.NET MVC 3 February 9th, 2012, 09:58 AM
Replies: 2
Views: 3,141
Posted By bh81
Does @Html.DropDownList("GenreId",...

Does

@Html.DropDownList("GenreId", (IEnumerable<SelectListItem>)ViewBag.Genres)


help?

(A bit blind leading the blind here.....I had something similar and it worked).
Forum: BOOK: Professional ASP.NET MVC 3 February 9th, 2012, 09:42 AM
Replies: 0
Views: 1,577
Posted By bh81
Need to use DropDownListfor to lookup vaules from another table

Hi,

I am trying to achieve something which should be a very common practice. I have 2 tables: Department and Category (1 department to many categories).

When I input a new Category, I want to...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 18th, 2011, 08:55 AM
Replies: 2
Views: 3,213
Posted By bh81
Just have some findings....I looked into...

Just have some findings....I looked into web.config file (of the root) and there were 2 connectionstring (one says "GymAttendanceConnectionString" and the other one says...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 18th, 2011, 08:24 AM
Replies: 2
Views: 3,213
Posted By bh81
Publish successful but not really

I am not sure what is going on here, I used to publish OK no problem but it suddenly failed.

First of all, it complained about me not running as the administrator - even though it used to work...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 13th, 2011, 07:47 AM
Replies: 2
Views: 3,863
Posted By bh81
Thumbs up Thank you Imar again. I was just about to post...

Thank you Imar again. I was just about to post my findings but you beat me to it. Yes, you are absolutely right, the
public float GA_Time_From { get; set; }
public float...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 13th, 2011, 07:16 AM
Replies: 2
Views: 3,863
Posted By bh81
public IQueryable Find method()

I am trying to enhance the Iqueryable Find method, very similar to:
public IQueryable<Dinner> FindUpcomingDinners()
{
return from dinner in db.Dinners
...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 11th, 2011, 04:23 AM
Replies: 18
Views: 5,088
Posted By bh81
Thumbs up Excellent Imar. Thanks a trillion. It's all...

Excellent Imar. Thanks a trillion. It's all working now. You're a saviour![:)] Now I need to try two more search criteria....
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 11th, 2011, 04:16 AM
Replies: 18
Views: 5,088
Posted By bh81
I have had new findings to this, I actually...

I have had new findings to this, I actually changed two "variables" for this experiment, I can conclude that it's the name = "Find" in
that caused the prolem not not the reference.

Sorry for the...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 8th, 2011, 09:01 AM
Replies: 18
Views: 5,088
Posted By bh81
Yes I did check the error list and it says...

Yes I did check the error list and it says 0Errors. I'm not sure why but it seems that after I have included:

using System.ComponentModel;

my "find" is not null anymore?!!!

I've updated my...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 8th, 2011, 08:03 AM
Replies: 18
Views: 5,088
Posted By bh81
Hi Imar, some good news. I was x-ref with the...

Hi Imar, some good news. I was x-ref with the NerdDinner Changepassword module and I think I'm missing:


So now, I'm moving onto the CK.aspx:
<%@ Page Title="" Language="C#"...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 8th, 2011, 06:48 AM
Replies: 18
Views: 5,088
Posted By bh81
OK, I have removed all my jquery stuff, and my...

OK, I have removed all my jquery stuff, and my find.aspx now looks like this:

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 8th, 2011, 05:42 AM
Replies: 18
Views: 5,088
Posted By bh81
Thank you Imar again. I think I'm getting a bit...

Thank you Imar again. I think I'm getting a bit closer to the solution but still not quite there yet.

Following through your 3 bullet points:
1. There's a Get ActionMethod called Find. It...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 7th, 2011, 05:43 AM
Replies: 18
Views: 5,088
Posted By bh81
Once again thank you for being so patient, Imar. ...

Once again thank you for being so patient, Imar.

I have implemented what you have suggested (to my best knowledge):

In AttendanceController.cs, I have:
public class FindViewModel
{
...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 6th, 2011, 07:41 AM
Replies: 18
Views: 5,088
Posted By bh81
Thanks Imar for your comprehensive explanation. ...

Thanks Imar for your comprehensive explanation. My debug is working now, not sure how it was fixed, my server admin put out some weekly updates and restarted the server and now we're back to where...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 4th, 2011, 07:51 AM
Replies: 18
Views: 5,088
Posted By bh81
Thansk Imar. I have tried debugging but the...

Thansk Imar.

I have tried debugging but the application just wouldn't load. The debug (in VS2010) used to work but now when I do F5, the output of the mssage is:

The thread 'Agent: state...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 1st, 2011, 08:38 AM
Replies: 18
Views: 5,088
Posted By bh81
Thanks Imar for your prompt response. It...

Thanks Imar for your prompt response.

It just goes straight to "sorry, an error occurred while processing your request." which is the standard error.aspx page in the Shared folder.

If I...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 July 1st, 2011, 07:15 AM
Replies: 18
Views: 5,088
Posted By bh81
NerdDinner Search function (not AJAX pls)

I'm a classic ASP programmer (VB) and trying to learn ASP.NET MVC c# from this book and I'm really struggling...I know I am trying to run before walking but no one else could recommend a better book...
Showing results 1 to 24 of 24

 


All times are GMT -4. The time now is 01:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.