view

what's wrong with these?

I create a strong typed view ,but i can't get the Mode and viewdata and the Html... This is my sample code: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MiniMain.ViewModel.ArticleViewdata>" %> <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> ...

Why would a query be faster in SQL Server 2005 just because it's in a view?

We have a (large) SELECT query, that can take ~30 seconds to run. I am told that when placed in a view, it takes less than 5 seconds to run. My assumption is that SQL Server caches query plans for queries that don't change, so why the massive improvement in performance here? Just to be clear, this really is just a case of taking somet...

Cocoa Loading a ViewNib

When creating a nib, I have 2 types to create, a WindowNib or a ViewNib. I see the difference is, the window nib has a window, and a view. How do I load a view nib into another window? Do I have to create a WindowController and add a window then load the nib in the window? ...

JDBC proxy to simulate a SQL view?

I need to be able to execute (via JDBC) a straightforward SQL select query against a view (the view can be generated via a fairly complex source query). Here's the catch: I don't have write access to the database, so I can't create the view there. Is anyone aware of a JDBC proxy that will let you define a view against the underlying da...

[TSQL] Parent-Child view from table that is self referencing (ID)? (for tsql gurus.)

I have a organization name table with the following structure given below: CREATE TABLE [dbo].[DP_ORG_OrganizationUnit]( [GID] [uniqueidentifier] NULL, [ID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL, [Code] [nvarchar](100) NULL, [Name] [nvarchar](100) NULL, [LastUpdated] [datetime] NULL, [ManagedBy] [int] ...

how to implement an iPhone view transition animation with both flipping and scaling?

how can I implement the animation we see in the iPhone Music app's coverflow screen? when you click on a small view, it flips and scales up to another view? how can I do this? I can use core animation to flip and scale a view, but how can I do the transition to another view? thanks ...

how to alter view to add new identity column to view....

do u know any example that alter the view and add new identity column to the view.... ...

How do I change "date field" format of a "view" in the form of a page in Drupal?

I'm trying to show a list of dates of Nodes using view. The list should be something like, 19 September 2009 20 September 2009 Right now it can only show like Thu, 2009-11-12 (All day) Mon, 2009-11-09 (All day) ...

how to keep the tabbar while going to a viewcontroller with flipping view transtion

the app has the structure of tabbarController -> navigationController -> viewController , when I go to another viewcontroller with the view transition like this vc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; UINavigationController* nvc = [[[UINavigationController alloc] initWithRootViewController:vc] autorelease]; [sel...

Remove view name from Eclipse menu Window -> Show View

I need to remove the name/shortcut of the view which I have created from the Window->Show View menu. Because I display this view in a separate menu. Is there any way to hide/remove its entry from Window->Show View menu. Thanks in advance ...

submit View in ASP.NET MVC

How submit list View in ASP.NET MVC. List View dont have input type="submit" value="Save" and I dont know where to put it. Problematic code is: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcZezanje.Models.student1>>" %> <asp:Content ID="Content...

ASP .NET MVC: Redirect to a view if certain condition is not met

I finally got to try .NET MVC this weekend and, as was expected, ran into some hurdles. I am trying to password-protect my site while it's under development. The basic idea is very very simple: in my BaseController class (that inherits from the Controller and is inherited by all other controller classes) I check whether a certain Sessio...

How to reuse existing connection in Open Session In view pattern implementation of Hibernate?

I am using Hibernate by implementing "Open Session in view" pattern?It opens a new connection per request. Is there any way to use the existing connection? Is my understanding correct? May be i miss something during implementation which cause opening of new connection? ...

Adding title to window border for Eclipse RCP detached view

I am working on an Eclipse RCP project which has detachable views. I would like to be able to put some text on the window border which surrounds the view once it is detached. Does anyone have any experience with this? Development environment is Eclipse 3.4 on Windows. THANKS. ...

iPhone Application Crashes (probably from multiple views use)

Hello everyone! I am preparing an iphone application in which I am using many transition among view controllers. This means that there is one main menu view controller and after i press the necessary box, a modal view controller is being pushed. After this, I press an exit button and come again to the main menu and I can reenter. The p...

jQuery: scrollintoView?

hi, i'm dynamically adding rows to a table using jQuery. the table is inside a div which has overflow:auto, thus causing a vertical scrollbar. i now want to auto-scroll my container-div to the last row - what's the jQuery version of scrollintoView(tr) ? thx ...

ASP.NET MVC strongly typed view convert from C# to VB.NET

I'm starting to learn ASP.NET MVC and since I work in a VB.NET shop I'm converting an example from C#. I'm trying to implement a strongly typed view and the example I'm looking at shows the following: <tr> <td>Name:</td> <td><%=Html.TextBox(x => x.Name)%></td> </tr> I've come up with the following in VB.NET: <tr> <td>Name:</td>...

How to add a custom view to the Django admin without having a model in the application

I have an application without any models, but with some custom admin actions. Now I want to add a custom admin view to support the custom admin actions. In order to make the use of the application easy I only want to use the actions attribute in the ModelAdmin's that need these actions. The problem is: how do I add a custom view without...

Query driving a view and actual view not returning same results

I have a view that is returning four columns of data to be pushed to an external program. When I simply query the view ("Select * from schema.view_name") I get 10353 rows. When I run the actual SQL that created the view (I literally copied and pasted what Oracle had stored, minus the "Create or Replace" statement), I get 238745 rows. An...

How to save and read a CGLayerRef, in a NSmutableArray

Hello, i have a question about the CGLayerRef "elements" ( because they are not object !) In my app, i want to store a list of CGLayerRef created from bitmaps, for obtain a good framerate on my DrawRect. how can i store and read the CGLayerRef in this code ? This is the code for store in the NSMutableArray CGLayerRef imageLayer; ...