cross page postback problem

L

Lloyd Dupont

I would like to write a link which:
- trigger an action & post to an other page

the problem I have, while experimenting with asp Button and cross page
button the method is not called in case of crosse page posting.

Is it possible to do that?

basically on my main page I have a blog entry list, which is a list of link
to another page.
I want to add a 'Add Blog' link at the top which would:
1. add a new blog entry in the db
2. forward me to the blog page

Any tip?
 
M

Mantorok

Lloyd Dupont said:
I would like to write a link which:
- trigger an action & post to an other page

the problem I have, while experimenting with asp Button and cross page
button the method is not called in case of crosse page posting.

Is it possible to do that?

basically on my main page I have a blog entry list, which is a list of
link to another page.
I want to add a 'Add Blog' link at the top which would:
1. add a new blog entry in the db
2. forward me to the blog page

Any tip?

Couldn't you add the entry into the DB once the user has submitted the blog
on the blog page?

Kev
 
L

Lloyd Dupont

mmhh...
that's definitely an interesting idea! I think I will!

Although I'm using Server.Transfer() now, it's a bit annoying as the page
URL doesn't get updated but it's a page seen only by 'site admin'. I think I
will do both ;-)
 
M

Mantorok

It's sometimes a good idea to send stuff to the DB once the users done -
especially for a single transaction like this.

Use Response.Redirect if you want a "standard" redirect - then you'll get
the URL in the address bar.

Kev
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top