Ridge Border Is Displaying Differently In MVC App?
Dec 18, 2010
I have encountered a weird thing. I did a quick prototype in plain HTML to show a client an idea for a web page. Then I proceeded to implement the page in MVC 2. The border that I'm utilizing (border-style is ridge) is being displayed differently when rendered as a MVC app versus a HTML page in IE 8 (I haven't checked any other version of IE).
I developed a page where the formatting looks great in Internet Explorer 8 but when I open the same page in Mozilla Firefox 3.6.3 it does not center the div horizontally (left to right) but instead has the div and content inside on the left side of the page.
i have a gridview that directly bind to a dataset.Hence there is no column in code behind for me to control the boarder color and border style.I try my code in RowDataBound, but it does not take effect.
Why IsNothing() is behave differently between RDL and RDLC? I was trying to create a report (RDLC) in VS 2008 and using the IsNothing() function to check to NULL value, however, it keeps return #ERROR when I tried to execute this expression:IIF(IsNothing(Fields!dbField.Value),"emtpy",Fields!dbField.Value)However, I tried the same expression with Reporting Services report (RDL), it works and return "empty" string.
For the past few days Ive been searching for a way to highlight the active tab. If I have say 5 tabs, tab1 (when active) would have the background color red, tab2 green (when active), tab 3 blue (when active) etc. Is there a way to do it?
I have an Application_Error handler in my Global.asax file. However, I load many pages using an XHR request and would rather these "sub pages" return javascript or a real 500 code for my main app to process, rather than an error page.
Is it possible to handle errors on certain pages in a different way? Can a master page handle its own errors in a page extending it without bubbling it up to Global.asax?
Is it possible to detect or use a different template in the asp.net repeater for the last iteration in the repeater?If not I could just use a for loop but I'm curious if it can be done.
I have an ASP.NET (framework 2.0) web app running under IIS7.hen I run the app on the server, using IE8, localhost the app runs the way it is supposed to.When I run the app in Visual Studio 2008 (framework 2.0) it runs the way it is supposed to.But when I try to run the app from another computer it renders incorrectly.Same versions of IE8.What would cause the serving of an ASP.NET application to render correctly on the server, but incorrectly when serving to another computer, when the Internet Explorer versions are the same?
I am new to this MVC and have a basic question related to validation. I have a create view for customer and based on the customer entity partial class metadata, I am validating the user input and its working fine as expected when the user clicks the create button.I also have a search button in the same create view, which is used for auto generation of some of the field values. When the user clicks the search button the action method create (post) is called with the corresponding button value as argument.the issue here is when the user clicks the search button most of the user input fields will be blank and the validation fails because of that.
i have a page where i have some text boxes and some dropdowns at the top and a Gridview(in the other page) in a Iframe at the bottom.the problem is that when i see this page in IE 8 and Mozilla 3 i can see them nicely formatted.but when i see it in IE 8 with compatibility mode on then the boxes are sqaushed and the columns of the gridview are also squashed and the whole page looks bit clunky.
I've got a details view control, default set to Insert which I've added file upload controls. I've used a button to begin the upload process and add the other data to the database. The weird thing is that if I use FireFox to enter the data and upload the files, everything works fine but it works slightly differently in IE8. The difference is that when I browse for a file in FireFox, upload it and store the file name, it returns just the file name e.g. myPic.jpg. However, when I upload with IE8 it stores the entire route to the file e.g. C:/Users/Users/Site/myPic.jpg Why would a browser treat these things differently? And, is there a way to fix it to work on both browsers?
I have a strange problem that I am trying to find a solution to or even only know why does this happen. I built a website using ASP.NET, when I run the website locally it looks very normal (I am speaking Style and CSS wise) on all the browsers (including IE8). And when I deploy this website to the test server which has Windows Server 2003 and IIS 6, the applications looks normal too on all the browsers except IE8. I did not try other versions of IE but I have a requirement to have this website working on IE8. Some tweaking on the CSS solves some of the problems but I do not want to go through each and every tiny detail and rework my whole CSS. There are even some problem which cannot be resolved.I have no clue why is this happening. It should be something either with the OS or the application server because those are the only differences between my machine and the server. On my machine I have Windows 7 Enterprise and I was test the website on the ASP.NET development server.
I was adding ContentPlaceHolder by dragging it from the Toolbox to a master page. Depending on the spot where it is inserted, the mark up generated is different:
[Code]....
Is the control name ContentPlaceHolder or contentplaceholder?
When I drag ContentPlaceHolder2 to the bottom of the page, after </html>, it stays unchanged for a while. Then when I formatted it (Ctrl-K, Ctrl-H), the control became contentplaceholder!!
I have a button in a repeater control. It saves the data on the screen, so ideally I'd like to do this and not have the screen refresh, as there is no new data to be shown. When I am debugging using localhost, the page just sits there, the data gets saved all is well.However, when I upload the very same page and code to my host, clicking the button causes a full refresh, which as there is a lot of data, means a long wait each time.
In my webconfig file, I am using Forms authentication and I have:
[Code]....
and my default.aspx page is protected as it should. After logging with the proper credentials I am directed to the protected default.aspx page, however when viewing other pages of my website in chrome, and then going back to the default.aspx page something strange happens. From certain pages in my website the default.aspx redirectes me to the login.aspx page, but not from all pages, only certain ones. This behaviour dosenot accour at all in IE Explorer8 where once I am properly validated in my login.aspx page, I can view the default.aspx page from all other pages in my website until I logout from default.aspx page.
This is bizarre and seems like a bug to me.Using a table in SSRS, I have a details row, with a parent group and finally a header row. For my header row, I am referencing a particular cell in the parent group.I am doing this so that i can have the header row repeat on each page of the group.his works fine when I'm not in Print Layout mode. However, when i switch to print layout mode, or print the report itself, the data that is presented on the screen is different then what is presented when not in print layout mode. WHAT THE F*!@!?? I've been battling this for a while now and i'm at my wits end. Has anyone else experienced different results from when you are in print layout mode as opposed to being in print layout mode?
I have a usercontrol which needs to work slightly differently according to the attributes of its owning page.Is there a way to determine the owning page from within the user control?
I have incorporated the asp.net membership and roles feature in my web app on my local dev setup that uses SQL 2008 Developer edition, all works as it should.
My remote system uses SQL 2005 express and I went through the process of creating the ASPNET membership tables via the "aspnet_regsql" command to my remote target database. I then created a few users, adjusted my app connection strings accordingly and uploaded.
My login page uses the "login" server control and when I try and login using credentials from one of the previously created users I get a "Your login attempt was not successful. try again." error. I know the users are in the DB as I can see then via the SQL Management studio on the remote DB. I have triple checked the username/passwords and I am definately entering the correct info. The connection strings are correct as the initial page renders content from another table in the DB. I am getting no errors.
My best guess at the moment is that SQL Express handles Membership/Roles connections differently to the full versions of SQL?
using vb.net 2005 and crystal reports that comes with it.I want to put an outside border on my crystal report without physically drawing a line there. is this possible?
I have a MasterPage set up with a div that has a border.
The ContentPlaceHolder is within this div.
My question is when I inherit this masterpage and place the content within the assigned area it sometimes overrun the div settings
which were done on the masterpage and displays over then masterpage div.
Is it possible to set the masterpage div to auto detect overspill of the content or can I set the size of the div on each page(even though its a masterpage div)?
the Web Part for anonymous user and authenticated user is displayed differently. I faced this problem twise. First time when used Silverlight control in the Web Part and second time when used devexpress control in the Web Part. In both cases problem was with displaying for anonymous user. Silverlight control didn't display. Devexpress control lost it's styles. Both controls had properties that pointed to files. Silverlight control property pointed to the XAP file, and Devexpress control property pointed to the CSS file. It seems to me, that for anonymous user the Web Part cannot find this path or doesn't allow to link to other files.