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.
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.
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
Post a Comment