Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > BOOK: Beginning ASP.NET 4.5 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 13th, 2013, 10:30 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Multiple Try catch blocks inside other Try catch blocks?

Please un-confuse me just a little bit here. Can you have multiple try catch blocks inside other try catch blocks?
In other words can you do this?:
Code:
Try{

       Catch
         {
            throw an exception if something terrible happens
         }
 Try{
           catch 
            {
               throw and exception if something terrible happens inside this nested          
                try/catch block
             }
      }
  }
Finally
{
   now do something before you finish ending the program's thread of 
   execution

}
Reply With Quote
  #2 (permalink)  
Old July 14th, 2013, 01:42 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

I asked this many times before, but why do you not post generic questions in a more general forum? This would be much better of on the general ASP.NET or even a C# category so other readers, now and in the future, can benefit from it as well.

On Amazon you call me cranky for asking this. However, it seems you fail to see why this is useful. This is not about you, today. It's also not about me, today. It's about building up a useful forum for *other* users in the *future* as well. Someone searching for a question like yours will not search for an answer in a category dedicated to a book on ASP.NET.

So please, do other users a favor and carefully consider where you post. If you refer to a chapter or a page or an exercise, it makes sense to post it here. If it's as general as this question, find the right category and post there. To me, that's simple forum netiquette with the aim of helping others as well. To me, asking for that has nothing to do with being cranky.

And then to answer your question before you think I am cranky:

Yes, but not with this syntax. You can have a complete try/catch/finally blocked inside the curly braces of each of the blocks of the outer try/catch/finally block.

Cheers,

Imar - who really wished you took his advice.
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old July 14th, 2013, 01:53 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Seeing as how....

You have been reading my Amazon.com postings perhaps maybe you could respond to the concerns about why books and other books like your don't have material covering how to develop the same ASP.NET 4.5 applications and apply them to a mobile environment? There seems to be very few books on the market today that talk about developing ASP.NET 4.5 applications to be more flexible for either big screen or mobile smart hand held devices like iPhones and Androids.
PS.
I just amended my Amazon.com review in regards to using the word "cranky".

Last edited by vbboyd; July 14th, 2013 at 01:58 PM..
Reply With Quote
  #4 (permalink)  
Old July 30th, 2013, 02:20 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

>> why books and other books like your don't have material covering how to develop the same ASP.NET 4.5 applications and apply them to a mobile environment?

Most of mobile development doesn't have a lot to do with ASP.NET or server side functionality in general. Most of it comes down to proper responsive HTML (or a separate mobile site) with perhaps a little bit of server side device capabilities checking. That said, I am sure more books will start covering this in the future.

From using the word persnickety in your updated review on Amazon, I get the impression you haven't really understood *why* I keep recommending to post in the proper forums. A pity....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #5 (permalink)  
Old July 30th, 2013, 02:26 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default You don't understand

That's because you're European, you don't understand the full context of how the word, "Persnickety" and how it is used in the American-English language. It just means to be a bit choosey. To have high standards, to be strict on the standards on which you apply certain criteria to certain things. There are no negative connotations attached to that word at all. I hope that helps to clarify things for you a bit.
PS
I got a job interview in Arizona(that is a state that is located in the western part of the United States, right next to California) lined up thanks to my candy store E-Commerce website that I created online using the application that I got from you and your book.
Reply With Quote
  #6 (permalink)  
Old July 30th, 2013, 02:43 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
That's because you're European, you don't understand the full context of how the word, "Persnickety" and how it is used in the American-English language. It just means to be a bit choosey. To have high standards, to be strict on the standards on which you apply certain criteria to certain things. There are no negative connotations attached to that word at all. I hope that helps to clarify things for you a bit.
I understood that perfectly, and that's why I got the impression you haven't understood why I tried to do this.

Anyway, glad to hear you have an interview. Care to share the Candystore site's address?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #7 (permalink)  
Old July 30th, 2013, 02:50 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Not On here

I don't want to post the candy store website on this public forum because there might be malicious people that might try to be mean and do bad things to it. But I will share it with you later on if you email me at my personal email address.
Reply With Quote
  #8 (permalink)  
Old July 30th, 2013, 02:57 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

You can find my e-mail address in the section "About the Author" in the beginning of the book.

>> because there might be malicious people that might try to be mean and do bad things to it

Hmmm, isn't that a great way to find if your security is sufficient enough? ;-)

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #9 (permalink)  
Old July 30th, 2013, 03:00 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by Imar View Post
I understood that perfectly, and that's why I got the impression you haven't understood why I tried to do this.

Anyway, glad to hear you have an interview. Care to share the Candystore site's address?

Imar
I was just told that the job interview that I will have will be for an online E-Commerce website that sales Sporting Goods for a major Sporting Goods brick and mortar store here in the Western part of the United States and that the interview process is big on C# .NET, SQL Server 2008 a little WCF, and a little bit of MVC and they put a lot of weight on security in regards to cross site scripting, (as they should as they are selling all kinds of products online with all kinds of financial transactions occurring). Where in your book does it talk about internet security and in particular to cross site scripting. I would like to brush up on that before I go to my interview.
Reply With Quote
  #10 (permalink)  
Old July 30th, 2013, 03:29 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
Where in your book does it talk about internet security and in particular to cross site scripting.
It doesn't talk about cross site scripting at all.

Security in a broad sense is discussed in the chapters on validating input and the one on Security (that deals with the application services for security).

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Try and catch blocks. vbboyd C# 4.0 aka C# 2010 General Discussion 1 May 21st, 2011 11:42 AM
The 7 application blocks EricJ General .NET 0 June 30th, 2005 06:57 AM
Building Blocks terry s Dreamweaver (all versions) 1 January 12th, 2005 02:03 PM
catch event of dropdownlist inside datagrid alyeng2000 ASP.NET 1.0 and 1.1 Professional 3 August 24th, 2004 10:44 AM



All times are GMT -4. The time now is 02:43 AM.


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