asp.net mvc - How do I add a query string parameter to my URL programmatically? -


i'll try explain i'm trying do. have 2 tables in application. 1 project , other bug. 1 proyect can have several bugs.

enter image description here

i'm able add/edit/delete projects. each project in database added actionlink if click on name, should show bugs related project.

i tell "should show" because i'm able see new page id on url fine, haven't been able assign specific project id bug.

enter image description here

for example:

bug has description, status, date...and project id (which use filter bugs)

so id of project has been clicked, when hit create action, can store projectid in bugdatabase other values stored automatically mvc.

are passing value action link?

@html.actionlink(     "bug",                                                       "project",                                         "project",                                                        new {                                                              projectid = myprojectid,      } ) 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -