473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

cross page postback problem

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?

--
I have taken a vow of poverty. If you want to really piss me off, send me
money.
Jan 12 '06 #1
4 1387

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...
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
Jan 12 '06 #2
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 ;-)

"Mantorok" <ma******@mantorok.com> wrote in message
news:dq**********@newsfeed.th.ifl.net...

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...
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

Jan 13 '06 #3
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

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uj*************@tk2msftngp13.phx.gbl...
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 ;-)

"Mantorok" <ma******@mantorok.com> wrote in message
news:dq**********@newsfeed.th.ifl.net...

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...
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


Jan 13 '06 #4
Kev,
You've got plenty of good ideas! :-D

Many thanks!

"Mantorok" <ma******@mantorok.com> wrote in message
news:dq**********@newsfeed.th.ifl.net...
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

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uj*************@tk2msftngp13.phx.gbl...
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 ;-)

"Mantorok" <ma******@mantorok.com> wrote in message
news:dq**********@newsfeed.th.ifl.net...

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...
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



Jan 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: webserverpete | last post by:
What code do I need to get the value of my Datalist using Cross Page PostBack? Below is my DataList: <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="4"...
0
by: ibiza | last post by:
Hi all, One of the great new features of ASP.NET 2.0 is cross page postback. I would like to know if it is possible to do a cross page postback from a LinkButton that would launch a new window,...
6
by: bill | last post by:
Is there a way to retrieve values from the viewstate in the previouspage using cross page postback? Thanks! Bill
2
by: Alan Silver | last post by:
Hello, I have just discovered that if you turn off Javascript, then cross-page posting does not work. The postback goes to the originating page, which basically means that nothing happens. I...
1
by: Jason Wilson | last post by:
I have a page that has two seperate buttons that have the same PostbackUrl. How can I tell which button cause the cross-page postback? I posted this before and got the anser sender. ...
0
by: mlg74 | last post by:
I am using cross page postback from default page to default2.aspx. I have set the submit button on default 1 to postback to default2. On default to, on page load, I have typed: PostalCode.Text =...
2
by: jazzart | last post by:
Hi all, I have been trying to implement cross page postback with a Repeater, to no avail.. I have a Repeater on search.aspx which lists items from a database. In each item template is a...
1
by: ArunDhaJ | last post by:
Hi, I'm in need of help for solving the following problem: I've a page with two div tag as follows: <div id="divNormalView" runat="server"> <asp:listbox id="listSelectedMembers"...
2
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm reying to get around the problem of cross page post back. I'm attempting to use an interface to cast the previous page. if (PreviousPage != null) { ICommonPostback frm = PreviousPage as...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.