예제 #1
0
        //=========================================================
        // Viewer
        // July 2016: deplicated.
        // https://fieldofviewblog.wordpress.com/2015/05/06/google-chrome-drops-npapi-plugin-support/
        // TBD: maybe in future we will extend this portion to use Forge Viewer.
        // If we do, however, it will be an advanced lab and not as intro.
        //=========================================================
        protected void ButtonView_Click(object sender, EventArgs e)
        {
            string authToken  = Session["authToken"] as string;
            string project_id = DropDownListProjects.SelectedValue;
            string model_id   = DropDownListModels.SelectedValue;

            string url = Glue.View(authToken, project_id, model_id);

            // Show the request and response in the form.
            TextBoxRequest.Text  = url;
            TextBoxResponse.Text = "displaying model...";

            // embed a viewer in iframe
            iframeGlue.Src = url;
        }
예제 #2
0
        protected void ButtonView_Click(object sender, EventArgs e)
        {
            string authToken  = HttpContext.Current.Session["authToken"] as string;
            string project_id = HttpContext.Current.Session["projectId"] as string;
            string model_id   = HttpContext.Current.Session["modelId"] as string;

            string url = Glue.View(authToken, project_id, model_id);

            // Show the request and response in the form.
            TextBoxRequest.Text  = url;
            TextBoxResponse.Text = "displaying model...";

            // embed a viewer in iframe
            iframeGlue.Src = url;
        }