Click here to Skip to main content
15,895,011 members

Comments by ZainNabi (Top 21 by date)

ZainNabi 3-Jan-19 13:14pm View    
It does not work still and I get the same error
ZainNabi 5-Oct-18 9:13am View    
The distinct does not work because there are not duplicate values in my database. Also I don't want to group because each value is unuqie
ZainNabi 19-Aug-14 7:34am View    
I have basically 3 values:

*Sheep
*Camel
*Ox

if I select Ox it must redirect to the Ox partial view and populate a read-only textbox with Ox
else if Camel selected it must redirect to the Ox partial view and populate a read-only textbox with Camel
ZainNabi 18-Aug-14 13:36pm View    
Maybe you can help me with my other question??

I have a drop down with certain values

<pre lang="cs">@using (Html.BeginForm())
{

@Html.DropDownList("Animal Type",
new SelectList((System.Collections.IEnumerable) ViewData["Animal"], "animal_type"))

}</pre>

my controller action for that method is

<pre lang="sql">[HttpGet]
public ActionResult create()
{
var animal = from x in db.Animals
select x.animal_type;
ViewData["Animal"] = animal;
return View();
}</pre>


After selecting a value from the drop down it should display the specific partial view on the same view
ZainNabi 18-Aug-14 12:28pm View    
Thank you. It does assign the role to the user. What I need to do now is navigate to a specific view with a layout for that role. Any ideas