Saturday, March 31, 2012

Simple "postback" question.

I know how to check IsPostback, but what is the VB code to force a postback?
I have a link I want to do a postback with this URL. I've tried using
Postback and I've tried using doPostback. Am I missing something? I just
want the link to postback to this site.

"~/Misc/Forms.aspx?InsertMode=Yes"Postback is done client side. You can push out JavaScript to fire a postback
event by asking for the event from a control (which can be hidden) and
emitting the Javascript. But, you cannot force postback on the server side
without delivering HTML to the client.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
*************************************************
Think outside of the box!
*************************************************
"Phillip Vong" <phillip_vong*at*yahoo*dot*comwrote in message
news:%23SYsfxq$GHA.4740@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>I know how to check IsPostback, but what is the VB code to force a
>postback? I have a link I want to do a postback with this URL. I've tried
>using Postback and I've tried using doPostback. Am I missing something? I
>just want the link to postback to this site.
>
"~/Misc/Forms.aspx?InsertMode=Yes"
>
>
>
>
>


Gotcha,

Thanks for the info.

Phil

"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@.comcast.netNoSpamMwrote in
message news:%23JUvpRr$GHA.1196@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

Postback is done client side. You can push out JavaScript to fire a
postback event by asking for the event from a control (which can be
hidden) and emitting the Javascript. But, you cannot force postback on the
server side without delivering HTML to the client.
>
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
>
*************************************************
Think outside of the box!
*************************************************
"Phillip Vong" <phillip_vong*at*yahoo*dot*comwrote in message
news:%23SYsfxq$GHA.4740@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>>I know how to check IsPostback, but what is the VB code to force a
>>postback? I have a link I want to do a postback with this URL. I've tried
>>using Postback and I've tried using doPostback. Am I missing something?
>>I just want the link to postback to this site.
>>
>"~/Misc/Forms.aspx?InsertMode=Yes"
>>
>>
>>
>>
>>


>
>

0 comments:

Post a Comment