White Spacing between Web Parts

.       How do we  increase or decrease the vertical and horizontal white spacing between SharePoint web parts.

http://sharepointdeveloperblog.blogspot.in/2013/10/remove-space-between-web-parts.html
<style
type="text/css">
     .ms-webpartPage-root
         border-spacing:
0px
!important;
       .ms-webpartzone-cell
         margin:
0px
!important;
 </style>

Similar Messages

  • Removing Space Between Web Parts causes Horizontal Bar in Modals

    Hello all,
    I used the following to remove space between Web Parts, but am now getting a horizontal bar in my modals. Please assist:
    http://www.ashokraja.me/tips/How-To-Remove-Extra-Space-Around-the-Web-Part-In-SharePoint-2013
    Thanks!
    Kelly
    Personal Blog: http://thebitsthatbyte.com

    I removed it using the following CSS, which aligns our spacing:
    Control spacing between Web Parts*/
    .ms-webpart-cell-vertical
    margin-top:
    0px;
    margin-bottom:
    0px;
    Personal Blog: http://thebitsthatbyte.com

  • Unwanted white spacing between images

    Hi,
    I have loaded up roll over images in a side nav and applied 0 to padding and margins as I do not want any space between the images - but when I preview the page in my browser there is large white space between each image. the design view in dreamweaver does not show white spaces but the live view does.
    Can someone please tell me what I might be doing wrong?
    thanks!

    Thanks Lawrence. I have applied what you recommended below and it hasn't fixed it.
    This is the first site I've created so my skills are pretty amateur. If it helps the code for my side nav below with CSS code for the table below it:
    <div id="sidebar1">
        <table width="252" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="232" height="42" align="left"><p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('lombardvisa','','Images/ih_lombardvisaRO.jpg',1)"><img src="Images/ih_lombardvisa.jpg" name="lombardvisa" width="250" height="45" hspace="0" vspace="0" border="0" align="left" id="lombardvisa" /></a></p></td>
          </tr>
          <tr>
            <td height="41" align="left"><p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Features &amp; Benefits','','Images/ih_features&amp;benefitsRO.jpg',1)"><img src="Images/ih_features&amp;benefits.jpg" name="Features &amp; Benefits" width="250" height="45" hspace="0" vspace="0" border="0" align="left" id="Features &amp; Benefits" /></a></p></td>
          </tr>
          <tr>
            <td height="46" align="left"><p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Apply Now','','Images/ih_applynowRO.jpg',1)"><img src="Images/ih_applynow.jpg" name="Apply Now" width="250" height="45" hspace="0" vspace="0" border="0" align="left" id="Apply Now" /></a></p></td>
          </tr>
          <tr>
            <td height="42" align="left"><p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Activate your card','','Images/ih_activateyourcardRO.jpg',1)"><img src="Images/ih_activateyourcard.jpg" name="Activate your card" width="250" height="45" hspace="0" vspace="0" border="0" align="left" id="Activate your card" /></a></p></td>
          </tr>
          <tr>
            <td height="40" align="left"><p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Internet banking','','Images/ih_internetbankingRO.jpg',1)"><img src="Images/ih_internetbanking.jpg" name="Internet banking" width="250" height="45" hspace="0" vspace="0" border="0" align="left" id="Internet banking" /></a></p></td>
          </tr>
          <tr>
            <td height="43" align="left"><p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Lost or stolen cards','','Images/ih_lostorstolencardsRO.jpg',1)"><img src="Images/ih_lostorstolencards.jpg" name="Lost or stolen cards" width="250" height="45" hspace="0" vspace="0" border="0" align="left" id="Lost or stolen cards" /></a></p></td>
          </tr>
          <tr>
            <td height="56" align="left" valign="middle"><img src="Images/sidenav2.jpg" width="250" height="200" hspace="0" vspace="0" align="left" /></td>
          </tr>
        </table>
        <h3> </h3>
        <!-- end #sidebar1 -->
      </div>
    CSS for table
    #sidebar1 table tr td strong {
        color: #FFF;
        font-size: 14px;
        font-family: Arial, Helvetica, sans-serif, Verdana;
        font-style: normal;
        font-weight: 500;
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 10px;

  • Remove empty space in Picture Library Slideshow web part

    I'm using Picture Library Slideshow web part in one of my pages. The web part itself is working fine, but I'm a bit annoyed by the white space the web part is consuming.
    The web part puts lots of empty space between the web part header and the picture and also to the bottom of the web part.
    The Slideshow web part generates the CSS on the fly, so I cannot really get a control of it cause it doesn't have any static CSS classes(that I know of, at least).
    How could I get rid of these white spaces?

    Hi Pekch,
    Thanks for your post.
    You can achieve this using JQuery.
    1.      
    Download
    JQuery to your SharePoint Server, and then add a Content Editor Web Part to the page;
    2.      
    View the source code using IE developer(Press F12), the code likes below:
    <td style="width: 195px; height: 213px;">
                    <div style="..." id="MSOPictureLibrarySlideshowWebPart_ctl00_m_g_ffa17524_ffa7_44e7_974c_1756a39257b9_cell">
                    </div>
    </td>
    3.      
    So now, you can find the control whose id is started with “MSOPictureLibrarySlideshowWebPart” using the JQuery Code below:
    jQuery('div[@id^=”MSOPictureLibrarySlideshowWebPart”]')
    4.      
    Remove the style of the “div” and his parent “td”. Because there is a “Width” attribute in both levels.
    More information:
    http://weblogs.asp.net/jan/archive/2010/10/05/getting-started-with-jquery-templates-and-sharepoint-2010.aspx
    http://www.bennadel.com/blog/1003-Cool-jQuery-Predicate-Selectors.htm

  • Eliminate White Space in Picture Library Slideshow Web Part

    On my site, I am using picture library slideshow web parts on two different pages, and one of them is giving me trouble with unwanted white space between the photos and the back, pause, forward control buttons (see photo below).
    In an attempt to resolve this issue, I have tried numerous things. I have resized the width and height of the web part itself to many different sizes, but to not avail. I have cropped and resized all of the photos to be the exact same size of 300x200
    pixels. I have used CSS to display the photos to their actual size rather than the standard preview size. With all of this in mind, my second photo library web part on another page works perfectly. This was white space problem was only an issue until
    I resized/cropped the photos in that case. For this page, however, that solution is not working.
    Does anyone have any clue as to how I can remove this unwanted white space?
    Thank you!

    Hi Stacey,
    From your description, you would like to remove white space in picture library slideshow web parts. You used CSS to solve it however a web part still show white spaces.
    Please press F12 and see if there is div tag in white space, if there is, try remove it.
    http://365.webbrewers.com/Pages/webbrewerstest.aspx
    In addition, try edit web part properties > Display with > choose No Title or Description.
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/1e63661f-0183-44e7-843a-cca58a20cddc/remove-empty-space-in-picture-library-slideshow-web-part?forum=sharepointgeneralprevious 
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Best way to share information between different instances of a web part

    Hello,
    I'm developing a web part that will make changes to a A.D. OU. I don't want to grant the application user rights to the OU and I would like to store the information inside the web part, but dynamically, something like:
    static string username="";
    static string password = "";
    static string OU = "";
    So, when the web part find these strings empty ( for ex after IIS restart) , it would ask for username/password and store them at the static strings. Someone (the administrator?) would fetch the page (with the webpart) and fill the strings. The next user
    that will come to the page, he shouldn't  be asked for filling up the username/password.
    So, I need to share information between instances of the same web part. Can it be done with static variables? Is there any other better solution?
    Will this work with the same web part in 2-3-4 pages?
    Thank you
    Christos

    Hi Xristosk,
    From a security perspective and also in the interest of making the solution more robust (e.g. I don't think the admin is going to be too happy if he needs to enter in a username/password pair each time an IISReset happens, or the web server dies) what I'd
    suggest (and typically do) is to separate the request from the actual performing of the work.
    E.g. Keep the username/password pairs out of the web part configuration completely, and instead just make the web part be a form that submits to a list (or db) for the required change. 
    Then you can have a separate process (e.g. timer job or windows scheduled task) that has permission to read from the SharePoint list, and also has permission to write into the AD OU.  In terms of storing usernames/passwords - typically you'll want to
    avoid doing this.  If you have to then you can consider the Secure Store Service (preferred).  What I'd be most inclined to do is not store any password at all, and instead make sure that the account that the timer job or the scheduled task runs
    as has appropriate permission to write into AD.
    To answer the last part of your request, because the actual request is separated from the 'doing of the work' then this approach will work fine with 1,2,3,4, n pages.
    HTH
    -Michael.
    Please remember to mark your question as answered and vote it helpful if this solves or helps with your problem. *******************************************************************************************************

  • How do you get Sun One Web Server to read white spacing in a url

    Hi guys,
    I am currently using Sun One Web Server and this is the problem that i am currently facing.
    The url which is i am trying to read from the Sun One Web Server is http://test:8000/test/Testing%20A%20B
    The error which i am getting is java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path
    The reason why this is happening is because the original url is http://test:8000/test/Testing A B It has spacing in between the url. I cannot get rid of the spacing thru the code where its bound to a Content Management System. So the only way is to get the Sun One Web Server to be able to read this kind of url. There are about 300 to 400 of this types of url as they are dynamically generated.
    I was looking at the obj.conf and magnum.conf file to see whether i can manipulate this url to work for this situation. But with no luck.
    Can anyone please let me know if they have came across this problem.
    Thanks.

    Hi,
    This is the stack Trace:
    Error 500--Internal Server Error
    java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 29: /models/Sportwagon/Sportwagon SS V-Series
         at au.com.holden.cs.assembler.FriendlyURLAssembler.getInputURI(FriendlyURLAssembler.java:329)
         at au.com.holden.web.mvc.ViewUtil.getInputModelAndView(ViewUtil.java:29)
         at au.com.holden.web.mvc.navigation.ModelNavigationController.handleNoSuchRequestHandlingMethod(ModelNavigationController.java:17)
         at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:375)
         at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
         at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.net.URISyntaxException: Illegal character in path at index 29: /models/Sportwagon/Sportwagon SS V-Series
         at java.net.URI$Parser.fail(URI.java:2809)
         at java.net.URI$Parser.checkChars(URI.java:2982)
         at java.net.URI$Parser.parseHierarchical(URI.java:3066)
         at java.net.URI$Parser.parse(URI.java:3024)
         at java.net.URI.(URI.java:578)
         at au.com.holden.cs.assembler.FriendlyURLAssembler.getInputURI(FriendlyURLAssembler.java:326)
         ... 26 more
    This is the path which was access by me using Sun One Web Server: http://poll:8006/models/Sportwagon/Sportwagon%20SS%20V-Series
    As you can see that Sun One Web Server dont like spacing between url.
    Does anyone know how to fix this problem thru configuration in Sun One Web Server?

  • Recently Changed Items web part line spacing

    I have this web part setup and it looks great except that it has extra space between each line. The options for changing this in the web part properties are:
    Diagnostic
    Large Picture
    Two Lines
    Videos
    (the other options include pictures)

    Rajesh,
    No need. Looks at my original post. See how it double spaces between lines? It's doing the same thing in this web part. 
    I choose "Two Lines" since all of the other options use pictures/icons which I do not want.

  • Why are there white spaces between my images when I preview my html design on a web browser?

    I am creating an email newsletter with Dreamweaver CC and after being unable to find a way to use layers I opted to create the entire image in Photoshop and then break it into pieces to create the image links.  I'm using tables and I have the padding and everything set to "0", but when I view it in the browser there are white spaces between each image. It looks solid in Dreamweaver, but in pieces on web browsers.  I do not understand how or why this happened and I cannot figure out how to fix it.  If anyone can help, I'd greatly appreciate it.  Thanks.

    I only used Photoshop for the layout.  Then I created web-safe images for everything that I used for Dreamweaver.  I uploaded the images to the internet and then image sourced them into the code so that they will be viewed properly in the correct circumstances.  I haven't used HTML since about 2004 and I wasn't very good then.  I've just been thrown back into it and I'm pretty much learning as I go.  This is my second attempt because I wanted to make the newsletter more eye-catching.  My first one is very basic and without a background image at all and that looks fine in pretty much all email clients.  I tested it with Litmus.  All except for Windows Live Mail, where the images didn't act as links but as static images.  It works fine with the others I tested manually.  Those being Gmail, Yahoo and AOL.  I will try the display:block and get back to you.  Thanks for your suggestions.

  • Difference between Web Client & Win Client (White Paper)

    Subject: Difference between Web Client & Win Client
    Dear all,
    I know the Web Client and Win Client. But i want to know the exact difference between them? At this moment I am working an importante implementation 
    PS-CD with CRM and I need to evaluate Web Client and Win Client
    Does anyone have a white paper about difference between Web Client and Win Client?
    Or other documents related that can help me with these topics
    I will real appreciate your support and help
    Thanks in advance
    Hiram Treviñ

    Hi, send a test mail to this ID, [email protected] I shall send the documents.
    Regards
    Lakshman

  • Data lost while moving between Tabs in a web part

    hi,
    We are developing a specific functionality where we have four different tabs...When user press button on first tab it generates a some data which is stored in a list. This list has a ID which is stored in the View State. Now when user presses next button
    it goes to next tab where the same ID is used to retrieve the details from List.similar is the case for multiple tabs. There is a sporadic issues reported in this application. The issue is that sometimes data is not saved in the list first time. Secondly even
    if the data is saved and user moves to second tab all the fields are coming blank. Looks like ID field is blank. Now sure how can the ID field is blank if we are on second tab after saving the data in first tab. This issue only happens once in a blue moon
    for specific users.I can paste the code for button click
    protected void imgSaveandProcedGeneralInfo_Click(object sender, ImageClickEventArgs e)
    //int trackerIds = erossoperationtracker.StartOperation("Save And Proced GeneralInfo Button - imgSaveandProcedGeneralInfo_Click");
    erossoperationtracker.LogToErrorList("Start - imgSaveandProcedGeneralInfo_Click - Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    try
    //Check if the requested by field is valid before saving
    //if (peRequestedBy.IsValid && peRequestedBy.ResolvedEntities.Count == 1)
    PrepareSave(true);
    if (ContentType == ContentTypes.ClinicalGrantStartup)
    (Container as StartupROSSUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainWithoutStartup)
    (Container as MainROSSWithoutStartUpUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainWithStartup)
    (Container as MainROSSWithStartUpUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantStartupRevision)
    (Container as StartUpROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainRevision)
    (Container as MainROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.DrugSafetyMain)
    (Container as MainROSSUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.DrugSafetyMainRevision)
    (Container as DrugMainROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    erossoperationtracker.LogToErrorList("End - imgSaveandProcedGeneralInfo_Click - Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    //erossoperationtracker.EndProcess();
    catch (Exception ex)
    erossoperationtracker.LogToErrorList("Error - imgSaveandProcedGeneralInfo_Click - " + ex.Message, erossoperationtracker.currentUser());
    LogException(ex);
    private void PrepareSave(bool isSaveAndProceed)
    erossoperationtracker.LogToErrorList("Start - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    int Id = erossoperationtracker.StartOperation("PerpareSave to List");
    try
    generalInfo = new GeneralInfoEnt();
    if (WebpartMode == WebpartModes.Edit)
    generalInfo.ROSSId = eRossId;
    //Add mode but user already saved data once
    else if (ViewState["ID"] != null)
    generalInfo.ROSSId = (int)ViewState["ID"];
    else
    generalInfo.ROSSId = default(int);
    generalInfo.ContentType = ContentType;
    generalInfo.RossGroup = RossGroup;
    //Check if statup ross has been changed
    if (!hdnOldStartUpRossNo.Value.Equals(hdnStartUpRossNo.Value, StringComparison.InvariantCultureIgnoreCase))
    generalInfo.IsParentChanged = true;
    hdnOldStartUpRossNo.Value = hdnStartUpRossNo.Value;
    generalInfo.ProtocolName = Convert.ToString(txtProtocolName.Text);
    generalInfo.TherapeuticArea = Convert.ToString(txtTherapueticAreaName.Text);
    generalInfo.PAID = Convert.ToString(txtPaid.Text);
    generalInfo.PAIDName = Convert.ToString(txtPaidName.Text);
    generalInfo.ProjectNumber = Convert.ToString(txtProjectCode.Text);
    generalInfo.ProjectName = Convert.ToString(txtProjectName.Text);
    generalInfo.ProgramName = Convert.ToString(txtProgramName.Text);
    generalInfo.ProgramCode = Convert.ToString(txtProgramCode.Text);
    generalInfo.Status = Convert.ToString(Utility.GetStatus(RossStatus.Draft));
    DateTime requestedDate;
    if (DateTime.TryParse(hdnRequestedDate.Value, out requestedDate))
    generalInfo.RequestDate = requestedDate;
    if (WebpartMode == WebpartModes.Add)
    generalInfo.RequestDate = DateTime.Now;
    generalInfo.TotalEstimatedStudyCost = Utility.ConvertCurrencyToDouble(txtTotalEstimatedCost.Text);
    generalInfo.PrimaryCRO = Convert.ToString(txtPrimaryCROServiceProvider.Text);
    generalInfo.StudyObjective = Convert.ToString(txtObjective.Text);
    generalInfo.StudyDescription = Convert.ToString(txtDescription.Text);
    generalInfo.ProjectType = Convert.ToString(txtProjectType.Text);
    if (peRequestedBy.ResolvedEntities.Count > 0)
    string userAccount = peRequestedBy.CommaSeparatedAccounts.Split(',')[0];
    generalInfo.RequestedByLoginName = userAccount;
    hdnRequestedBy.Value = userAccount;
    switch (ContentType)
    case ContentTypes.ClinicalGrantMainRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(hdnFutureCAPAmount.Value);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantMainWithStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlStartMonthMainROSSWithExistingStartUp.SelectedValue, ddlStartYearMainROSSWithExistingStartUp.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlEndMonthMainROSSWithExistingStartUp.SelectedValue, ddlEndYearMainROSSWithExistingStartUp.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCodeMainROSSWithExistingStartUp.Text);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(txtCAPAmount.Text);
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    if (!string.IsNullOrEmpty(generalInfo.ROSSNumber))
    lnkStartUpRossMainROSSWithExistingStartUp.InnerText = generalInfo.ROSSNumber;
    if (!string.IsNullOrEmpty(generalInfo.StartUpRossLink))
    lnkStartUpRossMainROSSWithExistingStartUp.HRef = generalInfo.StartUpRossLink;
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.LastApprovedStudyDescription = Convert.ToString(hdnApprovedDescription.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    break;
    case ContentTypes.ClinicalGrantMainWithoutStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    if (ddlIIS.SelectedItem.Text != "-")
    generalInfo.IIS = Convert.ToString(ddlIIS.SelectedItem.Text);
    if (ddlMarketedProduct.SelectedItem.Text != "-")
    generalInfo.MarketedProduct = Convert.ToString(ddlMarketedProduct.SelectedItem.Text);
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(txtCAPAmount.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    if (ddlIIS.SelectedItem.Text != "-")
    generalInfo.IIS = Convert.ToString(ddlIIS.SelectedItem.Text);
    if (ddlMarketedProduct.SelectedItem.Text != "-")
    generalInfo.MarketedProduct = Convert.ToString(ddlMarketedProduct.SelectedItem.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantStartupRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    break;
    case ContentTypes.ClinicalGrantClose:
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.DrugSafetyMain:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    if (!string.IsNullOrEmpty(ddlRossType.SelectedValue) && ddlRossType.Text != "0")
    generalInfo.DrugSafetyROSSType = ddlRossType.SelectedItem.Text;
    generalInfo.ResponsibleCostCenter = ddlRossType.SelectedItem.Value;
    break;
    case ContentTypes.DrugSafetyMainRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnMainRossLink.Value))
    generalInfo.StartUpRossLink = hdnMainRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.DrugSafetyROSSType = txtRossType.Text;
    generalInfo.ResponsibleCostCenter = txtResponsibleCostCenter.Text;
    break;
    default:
    break;
    if (isSaveAndProceed)
    (Parent as AbstractView).EventName = Constants.GeneralInformation_SaveAndProceed;
    else
    (Parent as AbstractView).EventName = Constants.GeneralInformation_Save;
    (Parent as AbstractView).InvokePresentor();
    erossoperationtracker.LogToErrorList("End - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    catch (Exception ex)
    erossoperationtracker.LogToErrorList("Error - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    LogException(ex);
    Do you see any issue in the code...We are not able to understand where is the issue.Amazingly this code was working absolutely fine in SharePoint 2010 and never given any problem but after migrating it to SharePoint 2013 it started
    showing this sporadic issue.
    Regards
    Rajaniesh

    Hi,
    Per my understanding, there is a sporadic issue in your custom web part solution.
    As a common practice, I would suggest you debug this web part in Visual Studio and test different data input, as it is a sometimes issue, the most probably cause would
    be an issued entry, debugging would make it easier to be noticed.
    As you said, it “works absolutely fine in SharePoint 2010 environment”, you can repeat the same operations when issue occurs in the SharePoint 2010 environment to
    see if it is we can get more information there.
    Feel free to reply if there any progress.
    Thanks                      
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Picture Library Slideshow Web Part - Is it possible to switch between two image librarys in one slideshow

    In our office we have a screen at the front desk that runs a PP slideshow showing welcome messages to guests arriving.
    SharePoint may not be the solution, but the overall objective is to find a way to have a library of X number of photos (say the library size is 30 images) and a separate library of X number of welcome messages (usually ~5 images).
    We want the slideshow to randomly pull 5 images from the 1st pool and then play the images in the 2nd Pool.
    Let me know if you have heard of a solution similar to this. Thanks!

    Hi Twirlz03,
    According to your description, my understanding is that you want to display teo picutre libraries in a picture slideshow web part in SharePoint 2010.
    By default, one Picture Slideshow web part only display images fron one specifical picutre library, it is unable to apply for multiple picture libraries.
    You can try to utilize Content Query web part to aggregate picture items from the site collection or site. However, you mean that you want the slideshow to randomly pull 5 images from first library and then play the images in the second library, I’m afriad
    that it is hard to achieve it.
    More information about aggregating picture items , please refer to section 4 of the link below:
    http://blog.vgrem.com/2013/04/27/beyond-the-slideshow-web-part-capabilities-in-sharepoint-2010/
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Change amount of white space between paragraphs

    I have a web page at
    http://lifopro.com/072506lifotrainingmaterials.html
    that has more white space between the paragraphs that I would like.
    Is there any way to decrease the white space between paragraphs?
    The code for the top part of the text is included.
    Thanks for your help.
    Paul

    thanks murray. 8^D
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > That would be margins you need to control, not padding.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "crash" <[email protected]> wrote in message
    > news:[email protected]...
    >> 1. Take out all of your font tags
    >> 2. Research archives for info on CSS
    >> 3. Control padding on paragraphs with css.
    >>
    >>
    >> --
    >> If you haven't already, you would be well served
    searching through the
    >> archives for the answer to your question. The
    archives can be found
    >> here:
    >>
    >>
    http://groups.google.com/group/macromedia.dreamweaver
    >>
    http://groups.google.com/group/macromedia.dreamweaver.appdev
    >>
    >>
    >> "Lewp01" <[email protected]> wrote
    in message
    >> news:[email protected]...
    >>>I have a web page at
    http://lifopro.com/072506lifotrainingmaterials.html
    >>>that
    >>> has more white space between the paragraphs that
    I would like. Is there
    >>> any
    >>> way to decrease the white space between
    paragraphs?
    >>>
    >>> The code for the top part of the text is
    included.
    >>>
    >>> Thanks for your help.
    >>> Paul
    >>>
    >>>
    >>> <p><font size="2" face="Verdana, Arial,
    Helvetica,
    >>>
    sans-serif"><strong> </strong>The primary
    reasons LIFO errors are
    >>> so
    >>> common are:</font></p>
    >>> <ol><li><font size="2"
    face="Verdana, Arial,
    >>> Helvetica, sans-serif"> Errors resulting from
    the use of spreadsheets
    >>> and
    >>> </font></li>
    >>> <li><font size="2" face="Verdana,
    Arial,
    >>> Helvetica,
    >>> sans-serif">Lack of understanding of LIFO IRS
    Regulations and basic LIFO
    >>> principles. </font></li>
    >>> </ol>
    >>> <p><font size="2" face="Verdana, Arial,
    >>> Helvetica,
    >>> sans-serif">One of the reasons for the latter
    is the lack of adequate
    >>> LIFO
    >>> training and reference materials especially as
    it relates to the IPIC
    >>> method.
    >>>
    >>
    >>
    >
    >

  • Error:System.Web.HttpUnhandledException in Custom Web part for Sandbox solution

    Please Help...
    I have a sandbox solution for Custom Web part which has a 'Visual Web Part(sandbox)'.
    The solution builds, Packages & deploys successfully.
    But when adding this custom web part on a Sharepoint 'Web Part Page' it throws up the below Error:
    Same code when deployed as a Farm Solution works all well.
    Only difference between the two solutions being Farm solution has  'Visual web part'
    and Sandbox solution has 'Visual web part(sandbox)'
    ERROR:
    ======================================================
    [SPUserCodeSolutionExecutionFailedException: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred.]
     Server stack trace:
      at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext
    executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext
    executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodeAppDomain.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcessProxyForShim.ExecuteInternal(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext
    executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcessProxy.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext
    executionContext)
      at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
      at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
     Exception rethrown at [0]:
      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
      at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.ExecuteDelegate.EndInvoke(IAsyncResult result)
      at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, SPUserToken userToken, String currentAffinity, SPUserCodeExecutionContext executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodePoolableProcessConnection.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, SPUserToken userToken, String affinity, SPUserCodeExecutionContext executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodeExecutionHost.Execute(Type userCodeWrapperType, Guid siteCollectionId, SPUserToken userToken, String affinity, SPUserCodeExecutionContext executionContext)
      at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
      at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
     Exception rethrown at [1]:
      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
      at Microsoft.SharePoint.Administration.ISPUserCodeExecutionHostProxy.Execute(Type userCodeWrapperType, Guid siteCollectionId, SPUserToken userToken, String affinityBucketName, SPUserCodeExecutionContext executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodeExecutionManager.Execute(Type userCodeWrapperType, SPSite site, SPUserCodeExecutionContext executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodeWebPartRemoteExecutionHelper.<>c__DisplayClassa.b__9()
      at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
      at Microsoft.SharePoint.UserCode.SPUserCodeWebPartRemoteExecutionHelper.ExecuteRequestInSandBox(HttpContext context, SPWeb web, SPWebPartManager manager, SPUserCodeWebPart userCodeWebPart)
    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
     Server stack trace:
      at System.Web.UI.Page.HandleError(Exception e)
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
      at System.Web.UI.Page.ProcessRequest()
      at System.Web.UI.Page.ProcessRequest(HttpContext context)
      at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.ExecuteHttpRequest(SPUserCodeWebPartHttpRequestContext webPartExecutionContext, SPUserCodeWebPartHttpResponse httpRequestResponse)
      at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.Execute(SPUserCodeExecutionContext executionContext)
      at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.ExecuteWrapper(SPUserCodeWrapper wrapper, SPUserCodeExecutionContext executionContext)
      at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
      at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
     Exception rethrown at [0]:
      at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
      at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
      at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.CodeToExecuteWrapper.EndInvoke(IAsyncResult result)
      at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext
    executionContext)
    [InvalidOperationException: Using Menu.DynamicHoverStyle requires Page.Header to be non-null (e.g. <head runat="server" />).]
      at System.Web.UI.WebControls.Menu.EnsureRenderSettings()
      at System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e, Boolean registerScript)
      at System.Web.UI.Control.PreRenderRecursiveInternal()
      at System.Web.UI.Control.PreRenderRecursiveInternal()
      at System.Web.UI.Control.PreRenderRecursiveInternal()
      at System.Web.UI.Control.PreRenderRecursiveInternal()
      at System.Web.UI.Control.PreRenderRecursiveInternal()
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Hi!!
    Sure, Please find .cs and .ascx script below
    ==========.ascx===========================
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DynamicMenuWP.ascx.cs" Inherits="MenuWebPartProject.DynamicMenuWP.DynamicMenuWP" %>
    <asp:Menu ID="siteStructure" runat="server" Orientation="Horizontal"  StaticPopOutImageTextFormatString="" DynamicHoverStyle-BackColor="#CBE3F0" SkipLinkText=""
                                            StaticSubMenuIndent="10px"
    BackColor="#000000" CssClass="BIMenu" Font-Names="Verdana" Font-Size="1em"  DynamicHorizontalOffset="2" onmenuitemclick="siteStructure_MenuItemClick" Target="_blank">
                                            <StaticSelectedStyle
    BackColor="#507CD1" />
              <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" CssClass="BIMenuStaticformenu" />
              <DynamicHoverStyle BackColor="#CBE3F0" />
              <DynamicMenuStyle BackColor="#F2F3F4" BorderColor="#A7B4CE" ForeColor="Black" />
              <DynamicSelectedStyle BackColor="#507CD1" />
              <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" CssClass="BIMenuDynamicForMenu" />
            <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
    </asp:Menu>
    ==========.cs===========================
    using System;
    using System.ComponentModel;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    namespace MenuWebPartProject.DynamicMenuWP
        [ToolboxItem(false)]
        public partial class DynamicMenuWP : System.Web.UI.WebControls.WebParts.WebPart
            protected override void OnInit(EventArgs e)
                base.OnInit(e);
                InitializeControl();
            protected void Page_Load(object sender, EventArgs e)
                if (!IsPostBack)
                    ScorecardStructure ss;
                    List<ScorecardStructure> listSS = new List<ScorecardStructure>();
                        using (SPWeb web = SPContext.Current.Web)
                            SPList lists = web.Lists["MenuItems"];
                            if (lists.ItemCount > 0)
                                foreach (SPListItem item in lists.Items)
                                    ss = new ScorecardStructure();
                                    ss.title = Convert.ToString(item["Title"]);
                                    ss.ParentID = Convert.ToInt32(Convert.ToString(item["Parent ID"]));
                                    ss.ParentName = Convert.ToString(item["Parent Name"]);
                                    ss.MenuID = Convert.ToInt32(Convert.ToString(item["Menu ID"]));
                                    ss.menuName = Convert.ToString(item["Menu Name"]);
                                    ss.url = Convert.ToString(item["URL"]);
                                    ss.friendlyName = Convert.ToString(item["Friendly Name"]);
                                    listSS.Add(ss);
                    if (listSS.Count > 0)
                        List<ScorecardStructure> y = listSS.Where(s => s.ParentID == 0).ToList<ScorecardStructure>();
                        foreach (var x in y)
                            MenuItem newMenuItem = new MenuItem(x.menuName.ToString(), x.MenuID.ToString());
                            siteStructure.Items.Add(newMenuItem);
                            AddChildMenuItems(listSS, newMenuItem);
            private void AddChildMenuItems(List<ScorecardStructure> menuData, MenuItem parentMenuItem)
                if (menuData.Count > 0)
                    List<ScorecardStructure> childItems = menuData.Where(s => s.ParentID == Convert.ToInt32(parentMenuItem.Value)).ToList<ScorecardStructure>();
                    foreach (var v in childItems)
                        MenuItem newMenuItem = new MenuItem(v.menuName.ToString(), v.MenuID.ToString());
                        newMenuItem.NavigateUrl = v.url.ToString();
                        parentMenuItem.ChildItems.Add(newMenuItem);
                        // This code is used to recursively add child menu items filtering by ParentID
                        AddChildMenuItems(menuData, newMenuItem);
            protected void siteStructure_MenuItemClick(object sender, MenuEventArgs e)
                string st = e.Item.NavigateUrl;
                if (!(st.Equals(string.Empty)))
                    HttpContext.Current.Response.Redirect(st);
            class ScorecardStructure
                public string title { get; set; }
                public int ParentID { get; set; }
                public string ParentName { get; set; }
                public int MenuID { get; set; }
                public string menuName { get; set; }
                public string url { get; set; }
                public string friendlyName { get; set; }
            public bool IsPostBack { get; set; }

  • How to remove white space between sliced images ? Please help.

    I've created a site by exporting sliced images from Photoshop into Dreamweaver. Some images have a thin white line between them that I can't get rid of. I think it's because they are in a table format. There is no cell padding. Can you help me remove them? (see code below) The images I'm talking about are the horizontal buttons used in the navigation bar. Thank you in advance!
    Here is a link to the site: Site Preview
    --------------CODE---------------
    <table width="1001" height="751" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
        <tr>
          <td colspan="17">
            <img src="../Images/Optimized-Header.gif" width="1002" height="188" alt="logo header"></td>
          <td>
            <img src="../images/spacer.gif" width="1" height="194" alt=""></td>
          </tr>
        <tr>
          <td rowspan="2">
            <img src="../images/white-space-top-left.gif" width="44" height="45" alt=""></td>
          <td colspan="16">
            <img src="../images/Creekside-Layout-Final_03.gif" width="956" height="1" alt=""></td>
          <td>
            <img src="../images/spacer.gif" width="1" height="1" alt=""></td>
          </tr>
        <tr>
          <td colspan="3"><a href="../creekside_homepage.html"><img src="../images/about-btn1.gif" width="157" height="44" alt="about"></a></td>
          <td colspan="3"><a href="../steam_and_sauna_page.html"><img src="../images/steam-and-sauna-btn2.gif" width="233" height="44" alt="steam and sauna"></a></td>
          <td colspan="3"><a href="../creekside_hot_tubs_page.html"><img src="../images/hot-tubs-btn3.gif" width="162" height="44" alt="hot tubs"></a></td>
          <td colspan="3"><a href="../creekside_rentals_page2.html"><img src="../images/rentnals-btn4.gif" width="151" height="44" alt="rentals"></a></td>
          <td colspan="3"><a href="../creekside_contact_page.html"><img src="../images/contact-us-btn.gif" width="211" height="44" alt="contact us"></a></td>
          <td>
            <img src="../images/white-space-top-right.gif" width="42" height="44" alt=""></td>
          <td>
            <img src="../images/spacer.gif" width="1" height="44" alt=""></td>
          </tr>
        <tr>

    Your slices appear to be a little bit off. 
    Use Photoshop for images only.  Use DW to build your web pages.  Exporting HTML from graphics apps is not going to produce good cross-browser results.  It's really only for quick prototypes; not real web sites.
    See this 3 part tutorial:
    Taking a Fireworks (or Photoshop) comp to a CSS Layout in DW
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

Maybe you are looking for

  • Why is the Itunes and App stores in Chinese?

    I just received an Ipad 2.  I had my apple password reset, and now the Itunes and App stores are appeaing in Chinese.   What do I have to do to get them in English?

  • Airport: Not Configured after 10.4.7 update

    I just bought a new macbook 2.0Ghz, proceeded through the first-time installation wizard setup my wifi settings, and everything worked fine. At first boot in macosx i had my wifi working and i was able to browse and download things. I installed the 1

  • Adobe media encoder components have different versions error CS5 (32 bit)

    I updated the CS5 suite the other day and all the updates installed fine, except adobe media encoder which said "done with errors" (no indication of what the errors were mind you). Now, when I open Adobe Media Encoder (CS5) it pops up saying "Adobe M

  • How to check a PDF document contain password security?

    Are there anyway to check it for OLE automation? I want to test whether the document is editable. Dont't tell me that I need to try edit or insert blank page to test it. I need a quick way to test it without modify the content.

  • Missing 13 GB from HD - nothing accounts for it

    I have a G4 Mac Mini running Mac OS X Leopard with a 40 GB internal drive. The Finder says I have 2.5 GB available. When I use the command line and manually have it calculate the size of every folder on the root of the drive (using the "du" command),