Report Viewer looks bad with master page? - asp.net

I am using report viewer control with my web application, if I use it without master page it looks perfect but if i use it inside masterpage, it has lots of formatting and css issues. does anyone knows why?

Because it may some Css files affect the appearance of your reportviewer container ,so try to remove the CSS files one by one from your master page and check the look every time so that u know the exact file which cause your problem,after that you can make a custom style to your report viewer container .

Related

Crystal report is making the menu for master page disappear

For some reason whenever I go to the page of my website that has the crystal report on it my main navigation bar disappears. Here is what the header for the site (with the navigation menu) is suppose to look like:
and here is what it looks like when there is a report on the page:
Could someone tell me what is causing this and how I can fix it?
I'm using master page for the header by the way.
Greener, the Crystal Report viewer is a dynamic HTML representation of the report. It combines JavaScript, HTML and CSS (duh, what doesn't) to represent your report on the webpage. The toolbars are powered by JavaScript calls to .JS that is linked in when the CrystalReportViewer control is rendered to your page.
My point is, all of this introduces a LOT of stuff that can conflict with your existing page. In particular JavaScript errors can occur (which can cause certain things to stop rendering) OR CSS the report uses happens to apply styles you never intended to have applied to objects in your page.
I highly recommend installing the Web Developer toolbar and/or FireBug to FireFox, IE, or whatever browser they are offered on these days. FireFox's implementation of those is quite good in my experience.
When the page loads you can use the 'CSS' menu of the Web Developer toolbar to actually disable some or ALL the styles applied to the page. If disabling Crystal related styles (or all) makes your missing toolbar appear, then it's probably a conflict in your CSS. A front end developer would know to adjust the styles (i.e. add the !important directive to a style, change class/id names, etc.) to address this.
Alternatively, FireBug may be reporting JavaScript errors (heck, even FireFox can show these in the console) which could indicate a problem that prevents the completion of rendering your toolbar.
An outside possibility is that the report itself contains mark-up. For example, if you had certain fields in the report contain HTML that happened to be rendered by the browser, this could create an open div tag, css styles and even JavaScript that would do all the stuff I explained above.
I hope this narrows it down for you. Happy troubleshooting!
I was having the same issue and after hours of searching I finally resolved it... check this out... http://scn.sap.com/thread/1926659
In the crystalreportviewer css file, I adjusted the div class = clear and changed the height attribute and disabled overflow:hidden. Hopefully, that works for you. Good luck!
I found the solution after searching on the web and is a quite simple.
On the Site Master, change the Name for all the places you have the style "clear" for example "clear1" and change it too en the site.css with that name.
The problem is for the conflic with the namespaces with Crystal Report css.
Hope this help.

ASP.NET Tabs to Navigate to Existing Pages

I am writting a log viewer application,and i have all the pages already written. (Visualizer,Configuration and a third one).
Is it possible to create a tabbed control or anything like this,that allow me to navigate through those pages without having to paste all the code of all the pages in a single .aspx file ?
How can i make a tabbed control (multiview,i guess,right ?) to navigate to the existing pages?
Once i click a tab,it changes the content of a container above the tabs.
Is it hard to do ?
If i understand your question corrctly, You are probably looking for something like a jquery tabs menu.
option 1 - try the demo and see if it is what you are after
Option 2 - this is the demo

Design Page cannot be viewed!

In Visual Studio 2008, while editing the web page, it is displaying some error and I cannot design my page in design view, I can do only in Source code. It is showing the following error in design view...
Master Page Error
'The Page Contains Markup that is not valid when attached to a master page
Correct the problem in Code View'
Wat is the problem? Whr Should I change ?
Ok, you've got a master page and a content page and when you put the two together you get an error.
If the error isn't obvious you have to work to a point where you can identify what's caused the error - debugging but of pages rather than code.
Create a new page that uses the same master page with no content - does that work? If so then the Master Page is probably not the issue.
Now add the elements in your failing page one at a time to your new page - as close as you can manage to cutting and pasting from one to the next but one change at a time. At some point you should see the error arise in the new page - and at that point you should either be able to fix it or will be able to ask a more specific question about why it doesn't work.
It is the case that designers in VS can just gets themselves tied in knots - but there's usually an underlying cause.
The problem is that your markup in invalid. Fix it.
You likely have an open tag, improperly nested tag, or malformed asp tag.
The problem is that you have edited the source code in such a way that it can no longer be shown in the designer.
Try undoing the latest change that you've made to see if that fixes the problem.
Check too to make sure that you have no <form>, <html>, <body> or <contentplaceholder> tags in your page. These will already be present in the master page, so there's no need for them in the sub-page.
In SharePoint designer, when you insert a MasterPage in customized form, you get this error.
If you remove the < script / > tag,
it works fine for me. Hope that will work for you too.

Vitual Studio Design view working asp.net with CSS

I using an external CSS to control the display of my controls. and It looks messy when I am viewing the page in th Design View of VS2008.
So whenever i change a value in my CSS, instead of examining it in design view, i am forced to run the web page, launch my browser just in order to view the changes I made.
Personally I'd try editing your Css using Firebug with your application running. Saving back only the changes you're happy with to you stylesheet. Make sense? Wouldn't have to be in debug mode either.

SharePoint masterpage css styles not showing for other users

I'm setting up a SharePoint Site where the masterpage is built using one of the existing masterpages as a starting point (Blue Band).
When I test the site while logged in as the super admin, everything looks fine. But if I log in as a general user the default masterpage shows as Blue Band again.
I'm guessing there must be some permissions problem where the new CSS isn't allowed to show. It appears to just be the CSS as the placement of elements is as per the new master page.
This usually happens to me when the CSS file is not published or approved yet. Where is your new CSS located? Have a look with SharePoint Designer or browse to it and publish/approve it.
Must be published as a major version.
To improve this question, if you are using an external CSS File, make sure it is not checked out to your Admin user or whoever was working on it.

Resources