finance_teacher
asked on
dynamic URL string -- asp.net mvc4 ?
Below Details.cshtml "123456" code works
How can I get below ""model.ID"" to work ?
-------------------------- ---------- ---------- ---------- -------
@Html.DisplayFor(model => model.ID)
<img src="http://www.barcodesinc.com/generator/image.php?code=123456&style=197&type=C128B&width=200&height=50&xres=1&font=3">
<img src="http://www.barcodesinc.com/generator/image.php?code= ""model.ID"" &style=197&type=C128B&widt h=200&heig ht=50&xres =1&font=3" >
How can I get below ""model.ID"" to work ?
--------------------------
@Html.DisplayFor(model => model.ID)
<img src="http://www.barcodesinc.com/generator/image.php?code=123456&style=197&type=C128B&width=200&height=50&xres=1&font=3">
<img src="http://www.barcodesinc.com/generator/image.php?code= ""model.ID"" &style=197&type=C128B&widt
ASKER
That fails, so I tried the below which also fails
How can I fix ?
<img src="http://www.barcodesinc.com/generator/image.php?code= + @model.BillingDate + &style=197&type=C128B&widt h=200&heig ht=50&xres =1&font=3" >
How can I fix ?
<img src="http://www.barcodesinc.com/generator/image.php?code= + @model.BillingDate + &style=197&type=C128B&widt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How can I have it be TWO values ?
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -
Below works, showing both values.
<img src="http://www.barcodesinc.com/generator/image.php?code=@Model.ID@Model.IFSWO&style=197&type=C128B&width=200&height=50&xres=1&font=3">
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -
Below fails, trying to add a space between the values.
<img src="http://www.barcodesinc.com/generator/image.php?code=@Model.ID" "@Model.IFSWO&style=197&ty pe=C128B&w idth=200&h eight=50&x res=1&font =3">
--------------------------
Below works, showing both values.
<img src="http://www.barcodesinc.com/generator/image.php?code=@Model.ID@Model.IFSWO&style=197&type=C128B&width=200&height=50&xres=1&font=3">
--------------------------
Below fails, trying to add a space between the values.
<img src="http://www.barcodesinc.com/generator/image.php?code=@Model.ID" "@Model.IFSWO&style=197&ty
ASKER
Below works by just putting a space, no " " needed.
<img src="http://www.barcodesinc.com/generator/image.php?code=@Model.ID @Model.IFSWO&style=197&typ e=C128B&wi dth=200&he ight=50&xr es=1&font= 3">
<img src="http://www.barcodesinc.com/generator/image.php?code=@Model.ID @Model.IFSWO&style=197&typ
e.g.
Open in new window