00.Forums
Web Parts
Started by hugobritobh at 11-25-2006 4:50 AM. Topic has 0 replies.

Atenciosamente,
Hugo de Brito V. R. Alves
Student Partners
  Page 1 of 1 (1 items)

hugobritobh
hugobritobh
Added: 4:50 AM on 11/25/2006

the Web Parts 2,0 uses SQL EXPRESS 2005, I would like to use SQL SERVER 2000, has as to move?

----------------------------

I am with the following problem, necessary to include Control IMAGE with a photo in it in a Web Parts or the Catalog dinamic. Then I made upload of the archive of the image, caught the way of it, I created an Image and I placed the values in it. Later I created one web parts, to include the control in this Web Part (later inside of this Web Parts (I verified if the values of the Image control were correct and were) and including in a zone using the WebManager, everything ok, but when the image is incluido the control does not appear, when I see the way of the image it catches the address of the page, already made of everything and it does not appear the image. Then I distrust that the WebManager this cleaning the value of the Image Control. Some solution? Already I thought about importing the control dinamicamente (but I do not obtain to see where I pass the value or as I pass I walk of the control, because when vc matter pass so the control) and later exporting the same

Code :
                            string nomeArquivo;
                            Image img = new Image();
                            FileUploadWeb.SaveAs(Server.MapPath("../images/") + FileUploadWeb.FileName);
                            img.ImageUrl = "~/images/ + FileUploadWeb.FileName";
                            img.ID = nomeArquivo;

                //  img.ImageUrl = "../images/" + FileUploadWeb.FileName; 
                           
                //  imgTemporaria.ImageUrl = Request.Url.AbsoluteUri.Replace("Institucional/Default.aspx?Personalizar", "images/"+ FileUploadWeb.FileName);              

              
                            WebPart addWebPart = WebPartManagerPrincipal.CreateWebPart( img );
                            addWebPart.ID = nomeArquivo;
                            addWebPart.Title = nomeArquivo;
                          
                            WebPartZoneBase zona = WebPartManagerPrincipal.Zones["wpzTemporario"];
                            WebPartManagerPrincipal.AddWebPart(addWebPart, zona, 0);
                            WebPartManagerPrincipal.SetDirty();  // tip of the Andrey Sanches

 

Report
theSpoke.net » English Topics » Coding » Web Parts
© Copyright 2005 Microsoft Corporation. All Rights Reserved.
Terms of Use | Privacy Statement | Code of Conduct | Hosted by MaximumASP for Microsoft
WHO-BAR