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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -