Getting binary data in the new webform

Posted on 2007-07-22
Last Modified: 2010-05-18
iam having a dropdownlist ,when i click the item from the dropdownlist the new webform should open i.e not in the same webform i.e dropdownlist webform should not be disturbed .And in the new webform the binary datatype  data  has to display from the database.
Asp.Net with C#,Sqlserver2005
Question by:veeru007
    LVL 9

    Accepted Solution

    Then on dropdownlist_selectedIndexchange event write a javascript to call which will open the new window with the aspx page you want and pass the parameters you need to get that binary data from the database.


    Chirag Patel
    LVL 12

    Assisted Solution


                         (IN_szPageName,                     // Page you want to open
                            IN_iWidth,              // width of the window
                            IN_iHeight)           // Heght of the window
    var                        features;
    var                        iHeight;
    var                        iLeft;      
    var                        iTop;      
    var                        iWidth;      
    var                        szPageName;

    iWidth            = eval(IN_iWidth);

    iHeight       = eval(IN_iHeight);
    szPageName      = IN_szPageName;      

    iLeft            = (screen.availWidth - 500 - iWidth/ 2);
    iTop            = (screen.availHeight - 430 - iHeight / 2);
    features      = "width="      + iWidth      + ",height="      + iHeight      + ",left="
          + iLeft            + ",top="            + iTop;
    features      = features      + ",screenX="                        + iLeft            + ",screenY="
                                        + iTop;

    features      = features      + ",scrollbars=0,resizable=0,location=0";
    features      = features      +",menubar=0,toolbar=0,status=0";,'NewWindow2', features);

    Add a attribute like

    dropdownlist.Attributes.add("onchange","L5000_Openwindow('your page name',122,123)");

    In your page just read binary dat from database and Response.BinaryWrite(dataASBytes);


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Introduction (All good things must come to an end ( The original MySQL API ( has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all curre…
    A Change in PHP Behavior with Session Write Short Circuit ( (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note … provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now