Open PDF File in new WIndow itemCommand

5 posts, 0 answers
  1. Cristian
    Cristian  avatar
    46 posts
    Member since:
    May 2011

    Posted 15 Aug 2011 Link to this post

    Hi I'm stuck in the next situation, I need to open a pdf file which I upload to sever with a radupload, when I ItemCommandEvent fires, I've tried the following code in itemcommand event:

    if (e.CommandName == "Ver")
                {
      
                    e.Item.Selected = true;
                     
                    foreach (GridDataItem selectedItem in RGDOCS.SelectedItems)
                    {
                      
                        Session["strUrl"] = selectedItem["ColumnaUrl"].Text;
                    
    string Servidor = Request.Url.GetLeftPart(UriPartial.Authority);           var fullUrl  = Servidor + Session["strUrl"];              var NewProcess = new System.Diagnostics.Process();             NewProcess.StartInfo.FileName = fullUrl;             NewProcess.Start();

    This code works fine when I'm in localhost, but when I deploy my webapplication doesn't work. Is there any other solution to accomplish this?

    Hope you could help me.

  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 18 Aug 2011 Link to this post

    Hi Cristian José,

    I suggest that you take a look at the following online example and see if it helps:
    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

    Also, can you please specify if your grid is ajaxified?
    Pavlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 26 Sep 2012 Link to this post

    Hi

    Did you find a solutions to this?

    Andy
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 01 Oct 2012 Link to this post

    Hello Andy,

    May I asked you to open a formal support ticket and send us a sample runnable project which replicates the described problem. We will examine it locally and will advice you further.

    Thank you.

    All the best,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 01 Oct 2012 Link to this post

    Hello Andy,

    May I asked you to open a formal support ticket and send us a sample runnable project which replicates the described problem. We will examine it locally and will advice you further.

    Thank you.

    All the best,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017