Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Forcing a page to postback

Reply
Thread Tools

Forcing a page to postback

 
 
John Morgan
Guest
Posts: n/a
 
      01-22-2007
I suppose the answer to this is staring me in the face but....

How do I programmatically get a page to post back?

The actual situation is that I am using an aspx table control and
changing the text within a cell. Though the cell text is updadated
successfully it does not show up on the screen until it the page is
posted back..

At the moment I am using a button which does nothing, processes no
code, but ensure a postback .

I wish to be able to force this postback as soon as the text in the
cell is updated (programmatically) so that it shows up on the screen
immediately.

I would be grateful for any help,

Best wishes, John Morgan
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      01-22-2007
You can setup a client side event that will make a javascript call
myForm.submit(). Alternatively you can use one of the methods exposed by the
Page class: GetPostBackClientEvent, GetPostBackClientHyperlink,
GetPostBackEventReference.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"John Morgan" <> wrote in message
news:...
>I suppose the answer to this is staring me in the face but....
>
> How do I programmatically get a page to post back?
>
> The actual situation is that I am using an aspx table control and
> changing the text within a cell. Though the cell text is updadated
> successfully it does not show up on the screen until it the page is
> posted back..
>
> At the moment I am using a button which does nothing, processes no
> code, but ensure a postback .
>
> I wish to be able to force this postback as soon as the text in the
> cell is updated (programmatically) so that it shows up on the screen
> immediately.
>
> I would be grateful for any help,
>
> Best wishes, John Morgan



 
Reply With Quote
 
 
 
 
Brian Williams
Guest
Posts: n/a
 
      01-22-2007
If you are using a table, my guess is that you have multiple cells that you
will be updating, the postback will probably become really annoying.
You should probably look into hooking up ASP.Net Ajax http://ajax.asp.net
or Anthem http://anthemdotnet.com and refreshing just the table,
instead of forcing a postback on the entire page.

Also, tables are really heavy on the HTML and because of your choice not to
use a data grid, you probably don't care about paging, sorting, or
displaying hierarchal data. You would probably be better off writing you own
custom control to display CSS friendly Spans and Divisions.

Regards,
Brian K. Williams

"John Morgan" <> wrote in message
news:...
>I suppose the answer to this is staring me in the face but....
>
> How do I programmatically get a page to post back?
>
> The actual situation is that I am using an aspx table control and
> changing the text within a cell. Though the cell text is updadated
> successfully it does not show up on the screen until it the page is
> posted back..
>
> At the moment I am using a button which does nothing, processes no
> code, but ensure a postback .
>
> I wish to be able to force this postback as soon as the text in the
> cell is updated (programmatically) so that it shows up on the screen
> immediately.
>
> I would be grateful for any help,
>
> Best wishes, John Morgan



 
Reply With Quote
 
John Morgan
Guest
Posts: n/a
 
      01-22-2007
Thanks both of you for your advice.

I am looking into it at this moment,

Best wishes, John Morgan

On Mon, 22 Jan 2007 13:28:44 GMT, John Morgan <>
wrote:

>I suppose the answer to this is staring me in the face but....
>
>How do I programmatically get a page to post back?
>
>The actual situation is that I am using an aspx table control and
>changing the text within a cell. Though the cell text is updadated
>successfully it does not show up on the screen until it the page is
>posted back..
>
>At the moment I am using a button which does nothing, processes no
>code, but ensure a postback .
>
> I wish to be able to force this postback as soon as the text in the
>cell is updated (programmatically) so that it shows up on the screen
>immediately.
>
>I would be grateful for any help,
>
>Best wishes, John Morgan


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing PostBack programmitically =?Utf-8?B?VGFicmV6?= ASP .Net 2 06-21-2004 08:50 AM
Forcing PostBack programmitically =?Utf-8?B?VGFicmV6?= ASP .Net 0 06-19-2004 09:36 AM
Forcing parent page postback Ashish ASP .Net 3 04-08-2004 08:17 AM
Forcing "Not IsPostBack" code to run on postback if nessessary??? Earl Teigrob ASP .Net 2 12-23-2003 06:40 PM
Forcing Page Postback at END of event (while retaining viewstate) Earl Teigrob ASP .Net 0 08-11-2003 04:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57