473,386 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP.NET MVC ... Two Lists. Need Advice ...

Hello,

I have a post controller with the following actions: Create / Insert,
Destroy / Delete, Edit / Update. These take care of the CMS part.

I have two other actions:

- Show: displays a detailed post to the site visitor.

- List: display a list of posts in the CMS.

Now I need to display a list of posts to the user but in a different
format. How can I do this?

I already have an action so probably I am not able to create two
actions with the same name ...

I tried to add to Home / Article view a component named List which
control is ComponentController.

However, when I use the pager on this list I go to:
http://localhost:3145/Component/List?Page=2 instead of:

http://localhost:3145/Home/Article/List?Page=2

Could someone advice me on this?

Now that all my CMS is done I got stopped on this.

Thanks,

Miguel
Sep 19 '08 #1
1 1071
One direction would be correct your routes, but I wonder why it is not
possible to do something like:

http://localhost:3145/Article/List?Page=2

You then have a home controller, an article controller and a component
controller. This keeps things a bit simpler, as you do not have to mess with
routes (at least not yet) and it gives you the features you need to build.
It also gives you a way to add CRUD for article and component without any
strangeness.

Perhaps I am missing something?

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"shapper" <md*****@gmail.comwrote in message
news:02**********************************@26g2000h sk.googlegroups.com...
Hello,

I have a post controller with the following actions: Create / Insert,
Destroy / Delete, Edit / Update. These take care of the CMS part.

I have two other actions:

- Show: displays a detailed post to the site visitor.

- List: display a list of posts in the CMS.

Now I need to display a list of posts to the user but in a different
format. How can I do this?

I already have an action so probably I am not able to create two
actions with the same name ...

I tried to add to Home / Article view a component named List which
control is ComponentController.

However, when I use the pager on this list I go to:
http://localhost:3145/Component/List?Page=2 instead of:

http://localhost:3145/Home/Article/List?Page=2

Could someone advice me on this?

Now that all my CMS is done I got stopped on this.

Thanks,

Miguel
Sep 19 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Ivan Voras | last post by:
Are there any performance/size differences between using tuples and using lists? -- -- Every sufficiently advanced magic is indistinguishable from technology - Arthur C Anticlarke
15
by: Frans Englich | last post by:
As continuation to a previous thread, "PyChecker messages", I have a question regarding code refactoring which the following snippet leads to: > > runner.py:200: Function (detectMimeType) has too...
7
by: Chris Ritchey | last post by:
Hmmm I might scare people away from this one just by the title, or draw people in with a chalange :) I'm writting this program in c++, however I'm using char* instead of the string class, I am...
2
by: Dave | last post by:
Hello all, I am creating a linked list implementation which will be used in a number of contexts. As a result, I am defining its value node as type (void *). I hope to pass something in to its...
10
by: Wildemar Wildenburger | last post by:
Hi there :) I don't know how else to call what I'm currently implementing: An object that behaves like a list but doesn't store it's own items but rather pulls them from a larger list (if they...
10
by: Richard Maher | last post by:
Hi, Sorry if this is one of those issues that people feel passionate about and I assure you I'm not trolling but rather seeking guidance on which way to go with the web browser presentation of...
3
by: foolish | last post by:
Hello. I have been developing a piece of software in which I am trying to use lists of structs, and structs containing these lists. What I am finding is that I am losing memory somewhere along the...
7
by: sillybee | last post by:
brand new to python so please be gentle! i have a function that returns a list of lists, but now i need to access and print the biggest list. i have started off with this: for list in listoflists:...
19
by: Dr Mephesto | last post by:
Hi! I would like to create a pretty big list of lists; a list 3,000,000 long, each entry containing 5 empty lists. My application will append data each of the 5 sublists, so they will be of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.