Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sending the state of a page via email

1 view
Skip to first unread message

m.a

unread,
Apr 28, 2008, 8:47:57 AM4/28/08
to
Hello,

I have a page with several control on it. Each control could have several
states. I want to send an email that has a link in it and when user click on
that link, it redirected to my site and go that specific page and set the
state of all controls in a way that it displayed in the way that I wanted.
How can I do this?

Regards


Microsoft Newsserver

unread,
Apr 28, 2008, 9:07:28 AM4/28/08
to
One way would be to use query strings at the end of the URL you send to your
users in the email.

yourUrl?Control1State=nnnn&Control2State=nnnn

in your controls, you can make use of the request.params["Controle1State"]
to decide how to manipulate the state of your controls.

Hope that helps.

"m.a" <ma.@spamoff.com> wrote in message
news:2IjRj.133989$5o5.1...@newsfe15.ams2...

Mark Rae [MVP]

unread,
Apr 28, 2008, 9:51:12 AM4/28/08
to
"m.a" <ma.@spamoff.com> wrote in message
news:2IjRj.133989$5o5.1...@newsfe15.ams2...

> I have a page with several control on it. Each control could have

A simple way to do this, as has already been suggested, would be to use a
QueryString.

However, bear in mind a couple of things:

1) This would allow the recipient of the email to modify the QueryString,
which may mean that the controls are updated in an invalid way for the
particular recipient. E.g., if a URL looked like this:

http://www.mysite.com/sales.aspx?admin=false

it wouldn't take very much working out that changing admin=false to
admin=true might allow people to see parts of the site which they should not
see... OK, that's a bit of an extreme example, but you get the idea...

2) More and more people are configuring their email client not to display
hyperlinks in emails, or even to filter out any email which contains
hyperlinks...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

m.a

unread,
Apr 28, 2008, 11:22:35 AM4/28/08
to

"Mark Rae [MVP]" <ma...@markNOSPAMrae.net> wrote in message
news:%234awnbT...@TK2MSFTNGP05.phx.gbl...

Thanks for your reply,
So what do you sugest? I want to inform somebody that he should look at a
page. what is the best way?

Regards


Paul Shapiro

unread,
Apr 29, 2008, 10:11:19 AM4/29/08
to
You could save the user's state in a db and restore those settings when the
user logs back onto the site. That way the email just has to include the
standard link to the site.

"m.a" <ma.@spamoff.com> wrote in message

news:3ZlRj.135030$5o5....@newsfe15.ams2...

0 new messages