Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
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 500
Search took 0.34 seconds.
Search: Posts Made By: Imar
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB June 12th, 2018, 03:13 PM
Replies: 3
Views: 144
Posted By Imar
See my previous message. Can't help you without...

See my previous message. Can't help you without proper info. Does this relate to a specific exercise or page in my book? If not, you might be better off find a better forum category here (VB,...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB June 12th, 2018, 02:57 PM
Replies: 3
Views: 144
Posted By Imar
Which chapter / page / exercise is this referring...

Which chapter / page / exercise is this referring to? Is this even from an ASPX project? (MsgBox seems like a bad idea for a web app).

Also, which "following error" are you talking about it? When do...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB May 30th, 2018, 08:30 AM
Replies: 5
Views: 252
Posted By Imar
Ah, that's a known issue. See...

Ah, that's a known issue. See http://www.wrox.com/WileyCDA/WroxTitle/Beginning-ASP-NET-4-5-1-in-C-and-VB.productCd-111884677X,descCd-ERRATA.html for page 244-246.

Cheers,

Imar
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB May 28th, 2018, 01:25 PM
Replies: 5
Views: 252
Posted By Imar
Yes, I understand the problem. However, I am not...

Yes, I understand the problem. However, I am not allowed to use my mind reading skills here, so unless you do some digging to see what the differences are, it's hard to help you ;-)

Note that what...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB May 28th, 2018, 11:20 AM
Replies: 5
Views: 252
Posted By Imar
Not sure why that would happen. Did you compare...

Not sure why that would happen. Did you compare the files in your site with the ones from Chapter 7?
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 25th, 2018, 05:33 PM
Replies: 1
Views: 310
Posted By Imar
Can you be more specific? The exact version of...

Can you be more specific? The exact version of VS, the exercise / page in the book, the actual error message, the location of your site on disk etc. would all help a lot....

Cheers,

Imar
Forum: ASP.NET 4 General Discussion April 22nd, 2018, 04:24 PM
Replies: 3
Views: 2,123
Posted By Imar
2017 can be downloaded here:...

2017 can be downloaded here: https://www.visualstudio.com/downloads/

Older versions can be found here: https://www.visualstudio.com/vs/older-downloads/

VS comes with a Community license. If you...
Forum: ASP.NET 4 General Discussion April 22nd, 2018, 03:01 PM
Replies: 3
Views: 2,123
Posted By Imar
Hi there, The core concepts should still work....

Hi there,

The core concepts should still work. However, lots of things have been changed and improved so you'll have a hard time finding things in the newer IDE per the descriptions in the...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 4th, 2018, 03:13 AM
Replies: 18
Views: 453
Posted By Imar
You may find the following link useful. I linked...

You may find the following link useful. I linked to it in my book, but it's easily overlooked:...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 03:31 PM
Replies: 18
Views: 453
Posted By Imar
And you're welcome, BTW. Glad you like it!

And you're welcome, BTW. Glad you like it!
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 03:30 PM
Replies: 18
Views: 453
Posted By Imar
Just inject the Where before the Select: var...

Just inject the Where before the Select:

var lst2 = context.tb_Decode.Where(x => x.Id > 22 && x.Approved).Select(x => new { x.DecodeID, x.DecodeDescription }).ToList();

That would bring back all...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 01:43 PM
Replies: 18
Views: 453
Posted By Imar
Excellent!

Excellent!
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 12:25 PM
Replies: 18
Views: 453
Posted By Imar
As the error message say, you can't bind to a...

As the error message say, you can't bind to a query which is what you're doing. Instead, call ToList on items before you return it to execute the query.

Also, your original example should just work....
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 10:27 AM
Replies: 18
Views: 453
Posted By Imar
Did you try it?

Did you try it?
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 10:26 AM
Replies: 6
Views: 246
Posted By Imar
>> Before I did this, however, joins always...

>> Before I did this, however, joins always worked out (see below example)

You don't need to have a relationship between two tables to create a join. You can create a SQL statement that joins...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 10:23 AM
Replies: 6
Views: 251
Posted By Imar
It depends on how you manage your context. In a...

It depends on how you manage your context. In a long-lived desktop application you might be right. The context is kept around, minimizing the need to go to the database.

For web apps, the DB Context...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 09:16 AM
Replies: 18
Views: 453
Posted By Imar
Have you tried data binding the parent FormView...

Have you tried data binding the parent FormView instead?
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 09:10 AM
Replies: 6
Views: 246
Posted By Imar
>>Are you saying that's okay? Not at all If you...

>>Are you saying that's okay? Not at all

If you have properly setup your relationships between the tables, they should show up in EF as linked tables, regardless of the presence of a diagram....
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 09:08 AM
Replies: 6
Views: 251
Posted By Imar
I am confused about your follow up. I said...

I am confused about your follow up.

I said you're not joining in the database here but using projection in the model. EF understands your model and database and is therefore able to convert your...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 06:42 AM
Replies: 6
Views: 251
Posted By Imar
Because you're not joining in the database here,...

Because you're not joining in the database here, you're project against the model. EF knows that a Review has a Genre which has a Name. So when you use review.Genre.Name, EF will create a SQL...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 06:40 AM
Replies: 6
Views: 246
Posted By Imar
You don't need to actually have a saved diagram;...

You don't need to actually have a saved diagram; you just need properly set up foreign keys. That's easily done with the diagrams, but you can also do it through SQL code. Are you sure your foreign...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 3rd, 2018, 06:34 AM
Replies: 18
Views: 453
Posted By Imar
You're databinding from the method that gets...

You're databinding from the method that gets called when you databind. This means that ArmorCategory_getData is fired which ultimately calls SetProductDropDown which calls DataBind again on the DLL....
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB April 1st, 2018, 07:39 AM
Replies: 3
Views: 326
Posted By Imar
You can use ValidationGroup to separate one set...

You can use ValidationGroup to separate one set of controls from another: https://msdn.microsoft.com/en-us/library/ms227424.aspx
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB March 30th, 2018, 07:46 AM
Replies: 3
Views: 326
Posted By Imar
Hi Daniel, Looks like you missed the...

Hi Daniel,

Looks like you missed the CausesValidation attribute on page 514:

<asp:Button ID="DeleteButton" runat="server" CommandName="Delete"
Text="Delete" CausesValidation="False" />
With that...
Forum: BOOK: Beginning ASP.NET 4.5.1 : in C# and VB March 8th, 2018, 03:52 AM
Replies: 1
Views: 375
Posted By Imar
Hi there, Two things to check: 1. Did you...

Hi there,

Two things to check:

1. Did you install the friendly URL package earlier in the book? If not, try adding the .aspx extension to the file ManagePhotoAlbum in the redirect code.

2. Is the...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 12:05 AM.


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