.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Rendering Issue

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :Sql Server
 
Hi Guys, This driving me crazy, this report works fine in side VS and report builder. But after the deployment it will throw below error message. An error occurred during client rendering. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index I removed all the matrix and replaced one by one. I identified one thing one of the column holds expression. Basically, whenever user clicks on that it will take the user to sub-report. Now if I remove that row report is working fine, currently this report works fine on other server.  Can anyone shed some light Thanks, D   


View Complete Post


More Related Resource Links

Menu control rendering issue with IE8

  

Hi

Using VS2010, I created an ASP.NET 4.0 web application and simply added a couple of menu items below the "Home" menu item in the master page that's created by the project wizard. I made no other changes - no code, no stylesheet changes.

If I run the app locally then everything is fine. I suspect because the local IIS is responsive enough for the problem not to occur.

If I deploy the app to a web host (discountasp.net) then I see the menu render vertically for less than a second before it renders correctly. If I refresh the page a few times then usually I can see the menu vertical flash but sometimes I can't, so there's some sort of timing consideration.

I'm using IE8. The problem doesn't seem to occur with either Firefox 3 or Chrome.

Have others seen this problem?

Any suggestions for a fix?

I can supply the zipped up project if anyone wants it.

Thanks


SSRS Report rendering issue

  

Hi All,

i have a chart report and deployed in server and created a subscription for sending email with webarchive type. I can see the chart in out look and it is perfect. when i see the same report in blackberry the fonts are not showing properly(blured).

I have tested via attachement as a pdf file then i can see the clear report in both outlook and blackberry but when make a mode as webarchive i getting the font problem in blackberry.

I am looking for the solution.

 

Thanks

Thiru

 


- Thiru

Datagrid: Rendering issue with Star-Column

  

Hi,

 

if i define a usercontrol with datagrid on it, which has one star column in the middle, it has a ugly rendering issue when its resized/shown. it seems that the calculation of star column's width is asynchronous started in OnRender.

here is the repro xaml code:

 

<UserControl x:Class="DatagridTest.UserControl1"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
       xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
       mc:Ignorable="d" 
       d:DesignHeight="300" d:DesignWidth="300">

  <Grid DataContext="{Binding Source={StaticResource SampleDataSource}}">
    <DataGrid x:Name="dGrid" ItemsSource="{Binding Collection}" AutoGenerateColumns="False" RowHeight="40" >
      <DataGrid.Columns>
        <DataGridTemplateColumn Width="100">
          <DataGridTemplateColumn.CellTemplate>
            <DataTemplate>
              <Grid>
                <Label Content="{Binding Property1}" Height="30"/>
              </Grid>
            <

IE 7 rendering issue in Sharepoint 2010 Master Page

  

Hi All,

I have an Branding issue, we designed a Custom Master page with Custom Css in Sharepoint 2010 Designer, it is rendering perfectly in all browsers as per design and css but, if we open in IE 7 design is distorted all the webparts are placed differently,

we used all Doctype tag

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 and <meta http-equiv="X-UA-Compatible" content="IE=7" /> also

we used DIV 's for this,

unable to find the solution please help me.

Thanks in advance

 


styled combobox item rendering issue while display over another control

  

i have combobox with a custom style bind to an enumeration. and below that there is a text box. when i select the combo box value the list doesn't disappear, 

 

the style to the combobox is as follows 

 

<Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

                    <Grid Background="{TemplateBinding Background}">

&n

styled combobox item rendering issue while display over another control

  

i have combobox with a custom style bind to an enumeration. and below that there is a text box. when i select the combo box value the list doesn't disappear, 

 

the style to the combobox is as follows 

 

<Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

                    <Grid Background="{TemplateBinding Background}">

&n

styled combobox item rendering issue while display over another control

  

i have combobox with a custom style bind to an enumeration. and below that there is a text box. when i select the combo box value the list doesn't disappear, 

 

the style to the combobox is as follows 

 

<Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

                    <Grid Background="{TemplateBinding Background}">

&n

styled combobox item rendering issue while display over another control

  

i have combobox with a custom style bind to an enumeration. and below that there is a text box. when i select the combo box value the list doesn't disappear, 

 

the style to the combobox is as follows 

 

<Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

                    <Grid Background="{TemplateBinding Background}">

&n

SSRS Reporting Services issue with Rendering Report.

  

I have created a report that has a tablix with a single cell.  The tablix is set to a dataset that has multiple records, and for each record I am running another subreport inside the tablix cell.  I have the subreport creating a page break for each record, and when printed out the report is perfect, but in the interactive rendering mode with the SSRS Web Viewer, one of my pages comes out blank except for the header being present.

It is not adding an extra page, because in the print out that particular page is rendered with the correct data, but in the interactive mode it is completly missing. 

I would appriciate any advice someone might have.

Thanks in advance.


Rendering ASP.NET Script References into the Html Header

  
One thing that I've come to appreciate in control development in ASP.NET that use JavaScript is the ability to have more control over script and script include placement than ASP.NET provides natively. Specifically in ASP.NET you can use either the ClientScriptManager or ScriptManager to embed scripts and script references into pages via code.

IsapiModule Error 500 Issue

  

I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:

ISAPI_START

CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"

 

MVC2 issue - Stuck. Trying to create a cms with nested partials

  

I am currently trying to display multiple items on a single page. I am not sure as to how to tackle this. What I have is a database table that has all the page data in. I have this run as a PagesController and this works fine. However what I would like to do is, if say the Products page is selected via the menu, I want to pull back not only the Products page html but also get all the products, and even be able to pull them through via category. I was trying to use a partial view, but I can't get it to work. The same would be for other pages, having partial views to display the other content, ie if Gallery is selected, the page html for Gallery shows and it then can push to a partial view that pulls all the gallery images from the gallery db table and so on. 

Maybe I am tackling this the wrong way. I have the pages stored in the db to allow for a CMS system I have setup. Maybe I need to use models for all the other items(Products, Gallery, Videos and such) and use the partial for the page html?

Any help would be greatly appreciated as I am confused.




Rendering data with HTML tags in the DD Gridview for a selected column

  

I am having trouble finding out where and how to HTML Encode a cell's data on the Dynamic Data (v4.0) gridview of List.aspx.  As a simple case, suppose I have formatted cell data that is A<br/>B in the DB.    Obviously, I want A stacked on B in the cell.

It seems gridView1.HtmlEncode = true has gone away.

So maybe I'll try to catch it on the RowDataBound event:

protected void GridView1_RowDataBound(Object sender, GridViewRowEventArgs e)

        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                // Html Encode the cells
            }

        }

but this event never fires?


Has anyone figured out how to properly render HTML tags data in the List.aspx's GridView1? 

If I figure this out, then I can add a MetaAttribute called something like [EncodeAsHtml(true)] and be on my way.  Thanks!


xpath issue

  

Hi i am using xpath to loop through each node,

the xml is below i can get the value of "link" but i cant get the thumbnail value, have you got any ideas how i can do this, my code is below.

Thanks

<item>

     <link>test 1</link>
     <media:thumbnail url="http://test.com/image.jpg" height="75" width="75" />

</item>

<item>

     <link>test 2</link>
     <media:thumbnail url="http://test.com/image.jpg" height="75" width="75" />

</item>



public void FindLinks(XPathNavigator p_xPathNav, DataTable dt)
        {           
            //run the XPath query
            XPathNodeIterator xPathIt = p_xPathNav.Select("//item");

            //use the

User validation Issue in xlsx file

  

Hi,

I am validating user from Login.xlsx file. It was working fine by validating email and password from that file. For testing i got new file same contents of file but added some more user names.

So after that when i validating the user i am getting the following error "Data type mismatch in criteria expression".

But when i replaced the new to old one it is working fine. The contens of both files are the same. So why this kind of error happened.

-Thanks


Multiple Paramatized Threading issue

  

I need the funcitonality to have two methods run concurrently of each other and the parent thread (aka the method that makes these two calls) to halt until BOTH are done. After the threads are done, I need to perform logic on the returns of the method, so it is essential for both of them to be complete before the parent thread continues. I have searched the internet and tried varous attacks, and I always come up with the same result, this being the parent thread continues operation after the first thread finishes, leaving the second thread running.  Can someone show me a quick example of how I can do this. I have tried checking states of the threads, halting the threads, but I always end up with the same thing. Any help would be great. Thanks.


Data Truncation issue with Enterprise Library Logging WriteLog stored Proc

  

Hi ,

I'm using Enterprise Library Logging  feature for logging. The issue i am facing is when the Logging message is too large(more than 65534 chars) ,complete data  is not logged in the Formatted Mesage column which is  of data Type nText .

I am able insert complete data if i try inserting from Sql insert Query from sql management studio. Do i need to add any attributes to data base listener or do i need to change the sp.

 Is there any way to increase the WriteLog stored proc param size in EnterpriseLibrary.Logging config file ? . Please let me know.

 

Thanks In Advance.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend