view

asp.net mvc view strongly typed with PagedList(of product) vb.net

i have this controller function Public Function Index(ByVal id As System.Nullable(Of Integer)) As ActionResult using db = New DbDataContext() Dim prod As PagedList(Of product) = db.products.ToPagedList(If(id, 1), 20) Return View(prod) End Using End Function i have to create a view strongly typed with Dim prod As PagedList(Of produ...

django calling no request view function in template

Hello, I am making some view functions to calculate the rank of one user in a community. My problem is that i want to display the rank afferent to each user, in its profile, and i don't know how, since i don;t have a request and a render_to_response (cause i guessed they are not needed) my code: def calculate_questions_vote(request): ...

iPhone Navigation Stack Pushing and a Popping

I have an Application. I wish to push View controllers A, B, C, D and E in various arbitrary orders. A is the Home page, so you could say it is the root, Super VC. But any scenario could occur: A->B->C->B->C->D->A->B->C ... etc. Is the UINavigationController the existing answer to my problems? Keep in mind, my View controllers are c...

Do I gain any performance advantages by using VIEWs rather than JOINs?

In our project, we often end up writing complex joins over like 3 tables. Do we gain any performance advantages by using views or are they only for making the lives of query writers easier? In case it matters, we use MySQL. If any advantages are thus achieved (other than simpler queries of course) please illuminate. ...

Cycle categories with subcategories

1) i have 2 tabs Categories and SubCategories on db with relation 1 to many (im using entity framework) 2) i have to create a vertical menu like this <ul> <li>category 1 <ul> <li>subcategory 1</li> <li>subcategory 2</li> <li>subcategory 3</li> </ul> </li> </ul> i think that my problem is here ...

Showing and hiding subviews in a xib (obj-c xcode)

I have an app with some buttons and multiple pages: each page is a XIB with a PNG and some buttons. The button actions to call up the other pages are coded into the UISubview Controllers for each of those XIBs. Now I need to add buttons to those XIBs that will pop up overlaying imageviews. How do I execute this? I think I need to program...

Android: Posting events to message queue of View

Hi! I have the following problem: My app has a thread that updates the game state. The app needs to make a change to the state of the View object, triggered by this thread. The documentation for View states that it should only be modified from the UI thread, and that a Handler should be used to place and handle events. Yet, there is a f...

Android: Cannot cast from View to Gallery

Hello, I'd like to make a Gallery in android. In order to set the adapter in need to get the gallery which I defined in my xml file. Im doing that as: Gallery g = (Gallery) findViewById(R.id.gallery1); But with this code I can't compile my project, since I get the Error "Cannot cast from View to Gallery". My xml-file looks like this: " ...

Drawing a picture in android

I want to draw a picture (bmp,jpg,png) into the canvas (using the onDraw() method) of a class that extends the View class. I would like to be able to draw parts of the picture, not the whole at once. I would really appreciate an example. ...

How to get every Views in an Activity?

is there a way to get every view that is inside my activity? I have over 200 views including buttons, and images, so i want to be able to access them by using a loop for example something like for (View v : this) { //do something with the views //depending on the types (button, image , etc) } ...

How to switch view in Symbian C++?

Hi! I'm just trying to switch between Test1View and Test2View on Symbian S60 3rd FP2 edition in Symbian C++ language. I have some components on both of them, but Test2 is for another operations than Test1, so I need to switch it to Test2. I read on Nokia Forum about it, but I cannot find working code. Can somebody tell me how I can do th...

escaping a " in NVelocity

how can I escape " in NVelocity ? e.g. test.message = "136# 1/4" Test Test Test" if I do <input type="text" id="Test.Description" value="$test.message"/> it displays : 136# 1/4 if I do <input type="text" id="Test.Description" value=$test.message/> it displays : 136 if I do <input type="text" id="Test.Description" value='$test.messa...

Troubles creating URLs in a VB.NET MVC view

I'm trying to write out animals from a database. All the samples I see for creating View pages have hard-coded "nodes" in the URLs. I can get my first view to work but my second one doesn't write out the correct URL to go to the third one. So, for example, I want my URLs to be: /animals/ /animals/canines/ /animals/canines/schnauze...

XCode- is it possible to add columns and images to PickerView in Interface Builder?

Is it possible to add images and columns to Picker View in XCode Interface Builder? Image here: http://media.tumblr.com/tumblr_l5fgqaBrEo1qar71d.jpg Im supposed to come up with something similar.. and im quite new to developing iphone app, but do have experience of C#/Java... any tips/inputs? thanks in advance!! ...

Convert view xib to empty xib

I have created a "view xib" but I want to convert it to an "empty xib" (Without of course removing the old xib and creating a new one). Is that possible? ...

how to move table view in navigation controller

i hav a navigation controller and when i place a image for navigation bar by hiding it the table view which is below nav bar is moving upside and first row is hided by image ,i should want that (row)table to move down ... if i am not hiding nav bar its working correctly and the image also added above the nav bar perfectly but i am not...

View controller chain

I have a Navigation Controller with a root table view which has several links. Tapping each link moves to the next view (by pushing it to the navigation controller's stack). But suppose that in that "next view", I have a UIButton that should take me further to another view (by pushing on to the same navigation controller's stack)... Vie...

Eclipse PropertySheetPage - Can it support a multi line property?

I want to use the Eclipse AdvancedPropertySection which uses PropertySheetPage to display and edit properties, but some of my properties are multi line (e.g. Description). Problem: I can't get the PropertySheetPage to display multi line properties. It displays them as a single line, like this: I tried using WrapTextPropertyDescripto...

iPhone Text View within a Flip View

Hi guys, I have a Flip View and on this "flipped" view I have a UItextView, (NOT a textField). I need to be able to display a rightBarButtonItem when the editing of the textView begins and then to click this rightBarButtonItem to resign the keyboard. There are lots of similar problems such as this but none of them are on a flip view. ...

How can I evenly distribute columns in a DataGrid in Flex?

I have 16 columns in a DataGrid in my Flex app. The first 15 look fine, with the column, simply containing the text, but the last one has a lot of extra space. Essentially, the columns are just big enough to fit the first 15 and all that extra space is tacked onto the 16th column. How can I evenly distribute the space over each column? ...