view

ASP.NET MVC3 version release

Currently I am using ASP.NET MVC 3 version with Razor View Engine. Sometimes it is difficult to work with the ".cshtml" files without having intellisense. Do you have any information as to the release date of original version that supports intellisense? ...

Loading second view from first view not working -iphone

I have an appdelegate(.h,.m) and two view controllers - loginviewcontroller, searchviewcontroller On loginviewcontroller I have userid and password fields and login button. once login is verified searchviewcontroller view will be shown. I have loginsuccess function defined in appdelegate and it is being called from loginviewcontroller....

Android - Custom AutoCompleteTextView layout

The AutoCompleteTextView drop-down has a large font size. I want to change it to something smaller. I think the way to do it is to overwrite the android.R.layout.simple_dropdown_item_1line. Please can someone let me know how to do it. Thank you. Cheers. ...

android ProgressDialog: setting custom view instead of message - does this work?

In ProgressDialog's documentation it says: "A dialog showing a progress indicator and an optional text message or view. Only a text message or a view can be used at the same time." I've gotten it working beautifully with a message, but I want to use a custom view instead - a message with a cancel button. But calling setView() on the P...

AlertDialog setContentView taking over screen

Perhaps I'm missing something obvious here, but I'm having a hard time setting a custom view for the body of an AlertDialog. Here's what I'm doing to set the custom view: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(View.inflate(getContext(), R.layout.dialog_body, n...

paging with asp.net mvc c#

Hello its my code where I giving out paging of view: <div style="float: right;"> <%= Html.RouteLink("<<", new { page = 1 }, new { title = "first page" })%> <% if (this.Model.HasPreviousPage) {%> <%= Html.RouteLink("<", new { page = (Model.PageIndex - 1) }, new { title = "previous page"})%> <%}...

Where do I define view functions in CakePHP?

Hi, I have a modifier procedure to show the "date" of an event. if($event['Event']['is_multi_day']){ if( date('n',strtotime($event['Event']['start_day']) ) == date('n',strtotime($event['Event']['end_day'])) ) $date = date('j',strtotime($event['Event']['start_day'])).' - '. date('j',strtotime(...

how to save text in app_resource. asp net mvc c# metatags

Hello all, I have all my text inside view coding. I preffer to save it in app_resources, because i would to add other languages in future, and its look quite cleaner. I just know that I need to use metatags in my view for text to connect it with file app_resource. How to it correctly, could you show me some examples how it looks like ...

How should partials be loaded when they are dependent on business logic?

I'm using the term "partial" to refer to a small section of presentational code which is repeated on many views. For example, a sidebar. In vanilla PHP, where the business and presentation logic is mixed, including a sidebar is no trouble: if($someCondition) { include('sidebar.php'); } However, in an MVC design pattern, the presen...

MySQL / Navicat: How to syntax in View?

I have my data imported. Now I want to put syntax in view. I have 5 columns and each with a single number(0-9). I would like to seperate the number by odd and even. My case is odd = 0 and even =1 for each number. Please write step by step as possible because I want to learn it. ...

how to append html code to the NSString variable in iphone

i have htmlString of string type.i want to append the view port code to this variable.How to do this?is it possible to do this? ...

How can I make one table that "overrides" another?

Suppose I have two tables: CREATE TABLE A( id INT PRIMARY KEY, x INT, y INT ) CREATE TABLE B( id INT PRIMARY KEY, x INT, y INT, ) Table A contains data brought in from another vendor while table B is our data. For simplicity, I've made these tables be exactly the same in terms of schema, but table B would lik...

How to make a view not updatable in postgresql

Hi all, I am using PostgreSQL to store business data in large amount for data warehousing purpose. I am writing views to customize the materialized tables. I am wondering whether it is possible to set a view not updatable. I have checked the postgresql manual, but found no specific answer. Many thanks in advance. ...

How to persist the values of dynamically created partial view of radio buttons?

I have a survey form. The questions and options are generated from the database. There are 5 questions in the form, each are generated using the partial view. The question is a partial view and the options are templated view. The problem is when submitting the form and the user did not select an answer, it will show a validationsummary...

How to get a Gesture View like in official Facebook app

I want to implement the same behaviour of the notification view in the official Facebook app. The "notifications" tab are at the bottom and can drag/drop via fingers to full screen. How can i do that? I've tried it via ViewFlipper and Animation.... But no success. Does anyone know how we can do this? The app "Zedge" has the same in t...

HttpHandler for Asp.NET MVC application

For general ASP.NET WebForms applications, the web page derives from Page class which implements IHttpHandler that servers actual web request. In ASP.NET MVC the webpage base class is System.Web.Mvc.ViewPage that also derives from Page class which in turn implements IHttpHandler. But in the ASP.NET MVC Razor, the "cshtml" file derives ...

Set a new view's margins programatically

I have a FrameView that's created in my XML layout, and in my code, I'm trying to create a series of new ImageViews and add them as children of this FrameView. The ImageViews are small, only about 15 pixels square, and I want them to show up in various positions around the FrameView (I'm trying to implement what looks like a radar scree...

Drupal and View module - Defined fields are displayed only if user is logged in

hello, Working on site development using Drupal. Using View module also. I did defined severar node's fields I need to show on View layout. My problem is that all those are displayed if visitor logged in, but if he's not logged in, is shows only one node field.... Fields are displayed as html table. Can you help me how to solve this?...

What's the best way to check if the view is visible on the window?

What's the best way to check if the view is visible on the window? I have a CustomView which is part of my SDK and anybody can add CustomView to their layouts. My CustomView is taking some actions when it is visible to the user periodically. So if view becomes invisible to the user then it needs to stop the timer and when it becomes vi...

Windows Explorer, shell extension, a new view type.

Hello, Is it possible to write shell extensions that add a new view type to the view menu in Windows 7? For example, at the moment I have List, Details, Tile, Content, etc. in the drop-down, but I have an idea for a new type. I've done a little Google on shell extensions but the examples I see are more related to custom content within...