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 | 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 36
Search took 0.01 seconds.
Search: Posts Made By: Oleg Kolpashchikov
Forum: BOOK: Professional ASP.NET MVC 4 July 25th, 2014, 03:42 AM
Replies: 5
Views: 3,020
Posted By Oleg Kolpashchikov
It's routing

You can use 'Id' without naming it because it's in your default routing:


routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action =...
Forum: BOOK: Professional ASP.NET MVC 4 January 11th, 2014, 12:07 PM
Replies: 5
Views: 3,020
Posted By Oleg Kolpashchikov
"ID" should not be nullable - just by nature;...

"ID" should not be nullable - just by nature; which item you are referring to if its ID is null? And if there are several of them with null IDs?

Do not make ID nullable; look for the error in some...
Forum: BOOK: Professional ASP.NET MVC 4 November 1st, 2013, 03:37 PM
Replies: 14
Views: 3,036
Posted By Oleg Kolpashchikov
The code snippet on page 97 shows only the...

The code snippet on page 97 shows only the "Search"-method of the HomeController. And it's an example for the discussion of whether to use HTTP GET or HTTP POST.

Normally you should create...
Forum: BOOK: Professional ASP.NET MVC 4 November 1st, 2013, 07:17 AM
Replies: 14
Views: 3,036
Posted By Oleg Kolpashchikov
I remember that I did it exactly as the book says...

I remember that I did it exactly as the book says and it worked fine for me.

If EF cannot figure out Primary Keys of your fields, may be you should take a look at your model classes. You can...
Forum: BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C# October 27th, 2013, 08:24 PM
Replies: 0
Views: 916
Posted By Oleg Kolpashchikov
Chapter 3 Page 66 small error

In the "Best practices : Code efficiency", 2nd paragraph:

...wrap-around issues where incrementing an int value that is signed might go from 32,767 to -32,767...

should be:
incrementing a...
Forum: BOOK: Professional ASP.NET MVC 4 October 22nd, 2013, 07:08 AM
Replies: 14
Views: 3,036
Posted By Oleg Kolpashchikov
Whoa, I passed today MSCD 70-486 "Developing...

Whoa, I passed today MSCD 70-486 "Developing ASP.NET MVC 4 Web Application" :)

And the reason I got that far - because I started off at the right place. THIS book :)


PS: THIS book alone is...
Forum: BOOK: Professional ASP.NET MVC 4 October 16th, 2013, 09:58 AM
Replies: 14
Views: 3,036
Posted By Oleg Kolpashchikov
Professional

I hope you will like the book, but do not forget that this is "Professional" book - it expects that you are not a complete novice in programming and web-development.

If something is not clear in...
Forum: ASP.NET 4.5 General Discussion October 14th, 2013, 06:29 PM
Replies: 1
Views: 843
Posted By Oleg Kolpashchikov
MSDN

How to: Reference ASP.NET Master Page Content
http://msdn.microsoft.com/en-us/library/xxwa0ff0(v=vs.100).aspx
Forum: BOOK: Professional ASP.NET MVC 4 September 13th, 2013, 01:37 PM
Replies: 6
Views: 907
Posted By Oleg Kolpashchikov
Of course - there is no reason for the validation...

Of course - there is no reason for the validation messages to appear because you are not validating your model.

You need something like:

if (Model.IsValid)
{ // Save your data }
else
{...
Forum: BOOK: Professional ASP.NET MVC 4 September 12th, 2013, 04:01 PM
Replies: 6
Views: 907
Posted By Oleg Kolpashchikov
1. When the user submits the form (i.e. does a...

1. When the user submits the form (i.e. does a POST request), your [HttpPost] Login action will be called.
2. Before that ModelBinder creates an instance of "Surveyor"-class and tries to extract...
Forum: BOOK: Professional ASP.NET MVC 4 September 11th, 2013, 02:30 PM
Replies: 6
Views: 907
Posted By Oleg Kolpashchikov
What's in the controller? Did you check if...

What's in the controller?
Did you check if Model.IsValid?
Forum: BOOK: Beginning ASP.NET 4.5 : in C# and VB September 2nd, 2013, 04:22 PM
Replies: 38
Views: 5,758
Posted By Oleg Kolpashchikov
This says that...

This says that localhost/ProductsService/Service.svc does not answer.
IMHO: Make sure that the service reference is correct.
Forum: BOOK: Beginning ASP.NET 4.5 : in C# and VB September 2nd, 2013, 01:29 PM
Replies: 38
Views: 5,758
Posted By Oleg Kolpashchikov
If your app works properly within Visual Studio...

If your app works properly within Visual Studio (on "development web server") and you have problems only with or after deployment to IIS, then the process of deployment is what you have to pay...
Forum: BOOK: Professional ASP.NET 4.5 : in C# and VB September 1st, 2013, 05:06 PM
Replies: 1
Views: 998
Posted By Oleg Kolpashchikov
May be I did not get your question completely,...

May be I did not get your question completely, but it looks like it is in web.config:


<buildProviders>
<add extension=".car" type="CarBuildProvider.Car"/>
</buildProviders>
...
Forum: BOOK: Professional ASP.NET MVC 4 August 31st, 2013, 04:00 PM
Replies: 7
Views: 4,497
Posted By Oleg Kolpashchikov
1. MvcMusicStore.MusicStoreDB You are just...

1.

MvcMusicStore.MusicStoreDB
You are just adding namespace;

// page 77
public class MusicStoreDB : DbContext

What is wrong with that? Obviously, you could have added "using...
Forum: ASP.NET 4.5 General Discussion August 31st, 2013, 03:42 PM
Replies: 3
Views: 1,254
Posted By Oleg Kolpashchikov
I am sorry, but I do not understand the question....

I am sorry, but I do not understand the question. Please clarify what you are trying to do.
Forum: BOOK: Beginning ASP.NET 4.5 : in C# and VB August 28th, 2013, 01:46 PM
Replies: 1
Views: 665
Posted By Oleg Kolpashchikov
Do you mean you want to upload the images from...

Do you mean you want to upload the images from the page up to your server?

You can use <asp:FileUpload> control + <asp:Button>
There are plenty of examples how to do it:


if...
Forum: BOOK: Professional ASP.NET 4.5 : in C# and VB August 24th, 2013, 12:52 PM
Replies: 0
Views: 612
Posted By Oleg Kolpashchikov
SesstionStateModule != Handler

Chapter 14, page 546

"The SessionStateModule class is a handler provided to load one of the available session state modes"

It seems to be a strange and unfortunate choice of words: to call "a...
Forum: BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C# August 22nd, 2013, 04:07 PM
Replies: 19
Views: 2,836
Posted By Oleg Kolpashchikov
We can use named parameters, but if we are not...

We can use named parameters, but if we are not using them - and in this case we are not - we have to supply all preceding optional parameters and the phrase is absolutely correct.
Forum: BOOK: Professional ASP.NET MVC 4 August 21st, 2013, 07:37 PM
Replies: 14
Views: 3,036
Posted By Oleg Kolpashchikov
It's a fine book

I have read the MVC2, MVC3 and now reading this MVC4 - and I think it's a very good book. But may be because I am not struggling against "MVC4 only" version, I do not notice that something is...
Forum: ASP.NET 4.5 General Discussion August 14th, 2013, 02:36 PM
Replies: 2
Views: 4,515
Posted By Oleg Kolpashchikov
Lambdas

You need the lambda-expression here.
Lamba is a shorthand form for calling anonymous methods.

It comes from assigning anonymous methods as handlers for events:
SubmitButton.Click += delegate...
Forum: BOOK: Professional ASP.NET 4.5 : in C# and VB August 13th, 2013, 07:12 PM
Replies: 0
Views: 913
Posted By Oleg Kolpashchikov
When is it time to check Page.IsValid property?

I thought that I knew the answer to this question: after Page.Validate() method has run, which normally would be after controls' postback event handlers (MSDN...
Forum: BOOK: Beginning ASP.NET 4.5 : in C# and VB July 25th, 2013, 06:45 PM
Replies: 2
Views: 528
Posted By Oleg Kolpashchikov
<mailSettings>

What's in your web.config in <system.net><mailSettings>?

You may want to make sure that the following settings are correct:

<smtp deliveryMethod="network" from="...">
<network...
Forum: BOOK: Beginning ASP.NET 4.5 : in C# and VB July 25th, 2013, 06:38 PM
Replies: 3
Views: 559
Posted By Oleg Kolpashchikov
Page_Load event handler

This must be a mistake in the book - Page_Load event has nothing to do with the browser, it is a server side event and the word "load" refers to ASP.NET server controls:
<asp:Label ID="Label1"...
Forum: BOOK: Professional ASP.NET 4.5 : in C# and VB July 17th, 2013, 04:28 PM
Replies: 3
Views: 1,069
Posted By Oleg Kolpashchikov
Solution from 2004 still works

Found a solution on forum.asp.net (http://forums.asp.net/p/609559/620839.aspx)

ContentPage needs <%@ Reference VirtualPath="~/OuterMaster.master" %> and now properties of the OuterMaster are...
Showing results 1 to 25 of 36

 


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


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