javascript - asp.net mvc url to string -


i creating mvc application , possible url string somehow? url like:http://localhost:7264/asortiman/browse?kategorije=327 , in head of view url string , take last 3 digits in case 327 , use param in function.

why dont @ controller level , send viewbag dynamic object?

i suppose controller asortiman , action method browse. if define method like;

public actionresult browse(int kategorije){ viewbag.kategorije = kategorije; return view(); } 

then @ view can reach same dynamic object. further use see default mvc application project @ vs2010


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -