PostBackUrl

2 views
Skip to first unread message

xiquinho

unread,
Mar 16, 2006, 7:35:21 AM3/16/06
to UrlRewritingNet
Hi all,

I am trying do pass a value from page1.aspx to page2.aspx using
PostBackUrl.

On page1.aspx=
<asp:Button ID="ButtonSearchPriv" runat="server"
PostBackUrl="page2.aspx" Text="OK" />
On page2.aspx=
Dim pp_TextBoxSearchPriv As TextBox
pp_TextBoxSearchPriv =
CType(PreviousPage.FindControl("TextBoxSearchPriv"), TextBox)

And I get the error:
The file '/Priv/categories/1.aspx' does not exist.

Which is correct because 1.aspx is a virtual page, the real URL is:

<add virtualUrl="~/Priv/categories/(.*).aspx"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/Priv/categories.aspx?TypeID=$1" ignoreCase="true"/>

Does anyone know if this can be solved or am I missing something?
Thanks in advance for your time.

Albert Weinert

unread,
Mar 16, 2006, 7:43:52 AM3/16/06
to UrlRewr...@googlegroups.com
xiquinho schrieb:

> I am trying do pass a value from page1.aspx to page2.aspx using
> PostBackUrl.
>

> [...]


> <asp:Button ID="ButtonSearchPriv" runat="server"
> PostBackUrl="page2.aspx" Text="OK" />

> [...]


>
> Does anyone know if this can be solved or am I missing something?

Can you provide a simple Sampe Web with that Problem, so that we can
reproduce that? You can send it to me.


--
Freundliche Grüße

Albert Weinert

http://der-albert.com

Reply all
Reply to author
Forward
0 new messages