Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2011, 05:25 PM
Registered User
 
Join Date: Jun 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default InsertParameters Question

I'm 100% new to ASP.net - I've only ever used ASP Classic and haven't really worked with websites in a long time - but a higher up in my company has decided that he wants a website built exclusively using ASP.net - so I was told that I have 3 months to learn it. I'm going CRAZY!

I can get everything to work that is simple drag and drop but when I try to do anything outside of the templates or wizards to customize the site to what I need it to do exceptions are thrown up.

The site will be a sort of file archive for our company where anyone with basic admin rights can upload documents and files for other users to download when needed across the whole company.

The listView insert option auto generates a form to insert a new record -UserName, FileName, UploadDate, Description, etc... But I only want the user to input the Description and the file upload option - I want the other information such as UserName to be inserted automatically.

How is this accomplished? I know this is kind of vague at this point but I don't even know if I'm asking the question right honestly.
 
Old June 3rd, 2011, 05:38 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at the exercise on page 464; it shows you how to do this with a DetailsView, but the same concepts apply to a ListView.

Page 516 then shows you how to store uploaded files on disk.

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!
 
Old June 3rd, 2011, 07:51 AM
Registered User
 
Join Date: Jun 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default Thanks, going to take a crack at it right now.

I'm gonna work through this real quick - if you don't mind I'll probably have a few more questions before it's all said and done. Thank you very much.
 
Old June 3rd, 2011, 08:02 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Sure, no problem.

You may also find these articles useful:

http://imar.spaanjaars.com/414/stori...with-aspnet-20
http://imar.spaanjaars.com/556/build...stem-using-net

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
FindControl question and a MasterPage question about controls Rushino ASP.NET 4 General Discussion 3 September 11th, 2010 03:17 PM
Disappearing UserName & Question within Customized PasswordRecovery Question Template eddiemcham ASP.NET 3.5 Basics 13 June 13th, 2009 04:23 AM
AccessDatasource.InsertParameters teddyk ASP.NET 2.0 Basics 3 October 9th, 2008 09:45 PM
actually it's a C question buzzfever C++ Programming 2 October 13th, 2003 09:24 AM





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