Bigbruin.com
Home :: Reviews & Articles ::
Forum :: Info :: :: Facebook :: Youtube :: RSS Feed
Search  :: Register :: Log in
Anybody know ASP pretty well?
Post new topic   Reply to topic    Bigbruin.com Forum Index -> Software
View previous topic :: View next topic  
Author Message
Hellfire
Rated XXX


Joined: 05 Aug 2003
Posts: 3473

PostPosted: Wed, 23 Feb 2005 12:08:28    Post Subject: Anybody know ASP pretty well? Reply with quote View Single Post

Stuck on a problem and can't figure it out. Created a form in ASP that requires the user to enter some information. When they hit submit, it send the information as an email to a generic mailbox.

That all works.

Next issue though, is the user might need to attach a file. I can have the user select the file, but when they hit submit, I can't get the file to be attached to the email.

Thanks!



test.zip
 Description:

Download
 Filename:  test.zip
 Filesize:  4.01 KB
 Downloaded:  516 Time(s)

Back to top
View user's profile Send private message
Little Bruin
Boo Boo

Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket
IceNine
*The Freshest*


Joined: 08 Sep 2003
Posts: 1459
Location: Bel Air

PostPosted: Wed, 23 Feb 2005 12:58:03    Post Subject: Reply with quote View Single Post

I know very little about ASP, but I've done this in PHP. When I looked it up, I saw that you need to do more with the file upload:
Code:
FileInfo fi = new
FileInfo( file1.PostedFile.FileName );
            
Attachment a = new Attachment( file1.PostedFile.InputStream, fi.Name );
a.ContentType = file1.PostedFile.ContentType;

msg.AddAttachment( a );


Hope this helps! Wave

_________________

A letter to a soldier
Back to top
View user's profile Send private message
Hellfire
Rated XXX


Joined: 05 Aug 2003
Posts: 3473

PostPosted: Wed, 23 Feb 2005 13:12:16    Post Subject: Reply with quote View Single Post

Hopefully I can figure that out Grin

Can't wait for them to finally get around to sending me to actually learn ASP/.NET! Expect me to do some coding in it but I am no where near knowledable enough to do it! LOL

Thanks Smile
Back to top
View user's profile Send private message
IceNine
*The Freshest*


Joined: 08 Sep 2003
Posts: 1459
Location: Bel Air

PostPosted: Wed, 23 Feb 2005 13:23:30    Post Subject: Reply with quote View Single Post

If you have to make a choice between VB.Net and C# - You should definitely go with C#! It's a much newer and more extensible language. It's also more widely adopted for other programming (not just web development).

Have fun!

_________________

A letter to a soldier
Back to top
View user's profile Send private message
Hellfire
Rated XXX


Joined: 05 Aug 2003
Posts: 3473

PostPosted: Wed, 23 Feb 2005 13:31:49    Post Subject: Reply with quote View Single Post

Yea, I'd like to go C# but as they only want people to do HTML for the Intranet, I'm already pushing it with my site being based on a ASP.NET portal Grin LOL

Thankfully I knew people in the other branches that was able to go with .NET so I went around the Mortgage system to get to .NET Smile LOL My IT group really hates me...
Back to top
View user's profile Send private message
BeerCheeze
*hick*


Joined: 14 Jun 2003
Posts: 9285
Location: At the Bar

PostPosted: Wed, 23 Feb 2005 13:32:13    Post Subject: Reply with quote View Single Post

I dunno... .NET I'm working on a project with a TON of .NET. That is the heart of the system we are building for the state out here.

OO I and I'm not a developer, I'm a Systems/Network Engineer.
Back to top
View user's profile Send private message
IceNine
*The Freshest*


Joined: 08 Sep 2003
Posts: 1459
Location: Bel Air

PostPosted: Wed, 23 Feb 2005 13:46:21    Post Subject: Reply with quote View Single Post

My main beef with ASP.Net is that most (if not all) code samples have the application code embedded greatly in the display logic. There are ways to do it otherwise, however it's more of a chore than should be necessary.
_________________

A letter to a soldier
Back to top
View user's profile Send private message
Little Bruin
Boo Boo

Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket
Display posts from previous:   
Post new topic   Reply to topic    Bigbruin.com Forum Index -> Software All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Contact Us :: On Facebook :: On Youtube :: Newsletter :: RSS Feed :: FAQ :: Links :: Sponsors :: Privacy Policy
Copyright © 2000 - 2023 Bigbruin.com - All rights reserved