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.
> 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