code for saving user's email addresses - newbie

S

slinky

Thanks in advance.. I'm using VB.net/ASP.net - Does anyone know how on
my .aspx page to have a field accept a user's email ( to receive my
newsletter) with of course a submit button. I would prefer to have it
save specifically to an XML file already set up on the server just for
this. So my code needs to allow for XML. I would also later like a
secure .aspx just for myself to read the XML file and send that
newsletter to all the recipients listed. So if anyone has any way of
doing this I would greatly appreciate... THANKS! Brian
 
S

slinky

I'm not tied to XML, but would like to know how to use that file
structure also in this application. I can easily create a SQLserver
table and write to that also. I need to know where to put my code for
my button to added the typed in address in the textbox - put it in
the .aspx or the aspx.vb? I have my textbox's datasource as "Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|
\Recipients.mdf;Integrated Security=True;User Instance=True" and a
"Recipients.mdf" file in the App_data folder for my website. This is
the table that will receive the email addresses.
I just need some samplle code to get me over the first hump of how to
update from my aspx to my table with my "Submit" button. Thanks for
any help! Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top