Thursday, July 11, 2013

Bootstrap add affix to first row in table .net DataGrid, GridView

This is one way to affix the first row of a table.

 var firstRow = $('#<%= ProductDataGrid.ClientID %> tr').eq(0); 
 var start = $(firstRow).offset().top; 

 //set the CSS width of each td in the first row so things line up when you scroll 

 firstRow.children().each(function () { 
      $(this).css("width", $(this).width()); 
      $(this).css("border-bottom", '1px solid'); 
 }); 

$(firstRow).css('background-color', 'white'); $(firstRow).attr('data-offset-top', start); $(firstRow).attr('data-spy', 'affix'); });

Tuesday, April 12, 2011

RadBinaryImage MapPageRoute not working

Under ASP.NET 4.0, when using System.Web.Routing (URL Routing) with telerik controls I received broken images.

void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
//make sure this is first
routes.Add(new System.Web.Routing.Route("{resource}.axd/{*pathInfo}", new System.Web.Routing.StopRoutingHandler()));

//...other routes here
}


found the answer here:

Deploying ASP.NET 4 Web Forms Application Using Routing on IIS 6

In IIS 6, opened the properties dialog of the virtual directory, went to the "Directory" tab, click the "Configuration" button, and added a Wildcard application map to the aspnet_isapi.dll (c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll) and unchecked the "Verify that file exists" checkbox. This made it work.

Thursday, December 3, 2009

SQL Server Reporting Services

I had a chart that needed to show negative values. I changed the Y-axis Scale minimum to 'auto' and it worked.

Tuesday, March 31, 2009

Wednesday, March 4, 2009

Activate Reporting Services 2000 on Windows 2000

I installed SQL Server Reporting Services on Windows 2000. At the end it said I had to manually activate Reporting Services.

This is what I did:

C:\WINNT\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis.exe –i

Then this….

C:\WINNT\Microsoft.NET\Framework\v1.1.4322>rsactivate -c"C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\RSReportServer.config"

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

If you had to restore a database that crashed, you'll need to restore the RSReportServer.config and then do a -r like this:

C:\WINNT\Microsoft.NET\Framework\v1.1.4322>rsactivate -c"C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\RSReportServer.config" -r

Found the answer here:
http://sqlforums.windowsitpro.com/web/forum/messageview.aspx?catid=92&threadid=27885&enterthread=y