hi Troy,
this is my code:

asp control (source page):
                            <td>
                                <asp:LinkButton runat="server" ID="lnk_File"
onclientclick="Open_Photo(*???*); return false" />
                            </td>

java script from source page:
<script type="text/javascript">
    function Open_Photo(File_Name){
        window.open("Upload_Photo.aspx?ID=" + File_Name);
    }
</script>


code behind, destination page:
        if (!Page.IsPostBack) {
            //Img_Upload_File.ImageUrl =
Server.HtmlEncode(Request.QueryString["Name"]);

            Img_Upload_File.ImageUrl = @"E:\Test_CAU\" +
Request.QueryString["ID"];

        }


those are my script, plaese advise to passing parameter from source page to
destination page using window.open () - thax in advance
"???" is text value from link button.


by the way, how about... when user click link button and then the file just
download ? (without open any new window. I think, it's simpler)
any other opinion to make it simpler?


Rgds,
sugi




On Tue, Nov 18, 2008 at 2:09 AM, Cerebrus <[EMAIL PROTECTED]> wrote:

>
> window.open has a parameter in which you can specify the target page.
> You can supply your entire URL(inclusive of any querystring
> parameters) here.
>
> On Nov 17, 1:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > Hi guys,
> >
> > I guys, could anyone share about: how to open new web browser (from link)
> > and then pass some values into new broweser? I user IE7
> > (whether, the new open browser in other Tab or in a new windows browser)
> >
> > I use VS 2008 & C# (I still can read VB), and I use several ways to do
> that:
> > - linkButton control to open new web browser with PostBackURL, It could
> but
> > can not open new web browser.
> > - javascript:window.Open, It could open a new window but I can not
> passing
> > parameter
> > - Redirect.Response, It just pass value but I can not open new browser
> >
> > somebody could help me to solve this problem?
> > I'm very appreciate that & thax's in Advance
> >
> > B'Rgds
> >
> > --
> > 一日不见如隔百秋
> >
> > It's not what you can get but what you can give that makes you a rich
> person
>



-- 
一日不见如隔百秋

It's not what you can get but what you can give that makes you a rich person

Reply via email to