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 25 of 68
Search took 0.01 seconds.
Search: Posts Made By: tedr
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 May 4th, 2010, 11:24 AM
Replies: 0
Views: 1,180
Posted By tedr
Pager

I see you have a Partial pager user control page, and it uses a code behind page.

This code is some that should be in the controller file or a helper class.

I'm having a problem with the...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 19th, 2010, 02:20 PM
Replies: 10
Views: 31,094
Posted By tedr
Html.BeginForm Helper

This what I come up with to actually get the code to get a clean compile

<% Html.BeginForm(this.ViewContext.RouteData.Values["action"] asstring, "Article", FormMethod.Post, new { @class =...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 17th, 2010, 09:38 AM
Replies: 10
Views: 31,094
Posted By tedr
Html.BeginForm()

based off link by Jacques, this is what I came up with, but still not sure if URL part will get put into the action=[:confused:]

string for the action part = <%=...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 16th, 2010, 05:36 PM
Replies: 10
Views: 31,094
Posted By tedr
What if

OK what if I do this

<% Html.BeginForm("<%= Url.Action(this.ViewContext.RouteData.Values["action"] as string, "Article" %>", FormMethod.Post, new { class = "category-create" } )); %>"
...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 16th, 2010, 04:33 PM
Replies: 10
Views: 31,094
Posted By tedr
How

OK is there a way to use the helper method to do this, and what would the syntac be?[:confused:]
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 16th, 2010, 04:06 PM
Replies: 10
Views: 31,094
Posted By tedr
Question syntac

can you explin that comment, is there a better way to do it or am I unable to use this helper method
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 16th, 2010, 03:38 PM
Replies: 10
Views: 31,094
Posted By tedr
Using Html.BeginForm helper method

I like using the Html.BeginForm and Html.EndFrom helper functions,

And was wondering why in the book you don't, is there a reason for this or a matter of preference.
...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 13th, 2010, 12:45 PM
Replies: 11
Views: 2,575
Posted By tedr
Why

OK still why not use UrlEncode(). why did you chose ToUrlFormat() rather than UrlEncode(). [:I]
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 13th, 2010, 11:51 AM
Replies: 11
Views: 2,575
Posted By tedr
Question

I guess my question do you have source code where you have these extension methods that you use in the book?[:I]
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 13th, 2010, 11:32 AM
Replies: 11
Views: 2,575
Posted By tedr
The Link

OK I understand, what the link explains but I feels as if I'm still missing something, or maybe my problem was I was having trouble with the path in another program I was doing and was hoping this...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 13th, 2010, 11:10 AM
Replies: 11
Views: 2,575
Posted By tedr
extension mathods

I found this, is this what you mean by extension methods

public static class StringExtensions
{
private static readonly Regex UrlReplacementExpression = new...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 13th, 2010, 10:37 AM
Replies: 11
Views: 2,575
Posted By tedr
Title.ToUrlFormat()

Still not sure where the code is to that, it looks like it looks for the Url path.

Path = title.ToUrlFormat();

title is a string and there is not a method for string that match...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 13th, 2010, 10:14 AM
Replies: 11
Views: 2,575
Posted By tedr
Title.ToUrlFormat()

What is this code trying to do, Not sure I understand, was the string class overloaded to include a method ToUrlFormat(), if so where is it.

Title.ToUrlFormat().

if title is the Url why not...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 12th, 2010, 05:08 PM
Replies: 0
Views: 3,202
Posted By tedr
HTTP GET and HTTP POST

Thinking of implementing separate methods for Post and Get.

[Authorize(Roles = "Editor")]
[ValidateInput(false)]
publicActionResult EditArticle(int articleId, int? categoryId, string title,...
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 April 12th, 2010, 04:29 PM
Replies: 0
Views: 1,133
Posted By tedr
ToUrlFormat()

After reading up on MVC 2, I came back to this book because of the info provided in it, but now I'm faced with a problem with this call, not sure how to implement or find it.
...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 April 6th, 2010, 10:55 AM
Replies: 2
Map
Views: 1,428
Posted By tedr
Map

OK on the map problem I found a solution to that and it was due to the <fieldset> not being placed

in my details.aspx

<fieldset>
<div id="dinnerDiv">

<h2><%=...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 March 30th, 2010, 10:38 AM
Replies: 0
Views: 1,702
Posted By tedr
Publish Vista IIS7/XP IIS 5.1

I've been trying to publish the nerddinner, I built MVC2, but have some strange things happening first, the scripts don't seem to work unless they are in the aspx files that need them. and the links...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 March 20th, 2010, 11:34 AM
Replies: 2
Map
Views: 1,428
Posted By tedr
Map

When I run in firefox, the map is top left, not where it should be, I have
#theMap {
position: relative;
width: 500px;
height: 450px;
}

in my css[:confused:]
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 March 19th, 2010, 11:12 PM
Replies: 0
Views: 1,287
Posted By tedr
Error after Publish

While trying to go from page to page I received this error,

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.


any help with this error,...
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 March 19th, 2010, 03:16 PM
Replies: 0
Views: 919
Posted By tedr
Deploy

The never includes a deployment section, what is the best way to do it, I tried Publish, but it seems to be missing something, I get an error on SQL. any ideas.[:confused:]
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 February 27th, 2010, 11:31 AM
Replies: 1
Views: 851
Posted By tedr
Problem solved

Property Change was not the problem or was solved by the current MVC 2 RC 2[:o]
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 February 27th, 2010, 06:43 AM
Replies: 1
Views: 1,539
Posted By tedr
Problem solved

The updateModel problem was solved by un-installed MVC 2,
and install MVC 2 RC 2, this updated the Forms Collection get method.[:)]
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 February 26th, 2010, 02:35 AM
Replies: 1
Views: 851
Posted By tedr
updatemodel propertychange

I've noticed that when in a test method the propertychange is not set, could be why the result is not being set.

Is this the problem and is there a work around?[:confused:]
Forum: BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 February 25th, 2010, 12:56 PM
Replies: 0
Views: 752
Posted By tedr
UpdateModel

Why isn't the updatemodel never used in any of the edit methods[:confused:]
Forum: BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 February 24th, 2010, 01:21 PM
Replies: 1
Views: 1,539
Posted By tedr
UpdateModel

when running this test the updateModel didn't return a result result is null[:confused:]

[TestMethod]
public void EditAction_Should_Redirect_When_Update_Successful() {

...
Showing results 1 to 25 of 68

 


All times are GMT -4. The time now is 10:13 AM.


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