Search

You searched for the word(s): userid:306674

Matching Posts

  • Re: ASP.NET MVC DropdownList

    I did this <td><%= Html.TextBox("DivisionDescription", Model.DivisionDescription, new { Disabled = "true", MaxLength = "50" })%></td> but after the postback I can see the value is being set in the controller, however it does not reflect on the view
    Posted to ASP.NET MVC (Forum) by sillysoumare on 11/29/2009
  • Re: ASP.NET MVC DropdownList

    I tried the onChange event, but MVC 1.0 dropdown does not take that argument < tr > < td > Supervisor: </ td > < td > <% = Html.DropDownList( "Supervisor" , new SelectList (( IEnumerable )ViewData[ "Supervisor" ], "AccountId" , "Name" , " " ), new { style = "width:155px" })%> </ td > < td > Division Description: </ td > < td > <% = Html.TextBox( "DivisionDescription" , null
    Posted to ASP.NET MVC (Forum) by sillysoumare on 11/28/2009
  • Re: ASP.NET MVC DropdownList

    This does not seem to work on ASP.NET MVC 1.0
    Posted to ASP.NET MVC (Forum) by sillysoumare on 11/28/2009
  • Re: ASP.NET MVC DropdownList

    OK. When I get to MVC .NET 2.0 I will try that. However right now I'm using 1.0: I have found on the web this jQuery method < script language ="javascript" type ="text/javascript"> $(document).ready( { $( { $( }) }); function () "#Supervisor" ).change( function () var supervisorId = $( "#Supervisor" ).val(); "#AccountForm" ).load( "/Account/NewAccount/" + supervisorId); </ script > So I have created my NewAccount Action Result
    Posted to ASP.NET MVC (Forum) by sillysoumare on 11/28/2009
  • Re: ASP.NET MVC DropdownList

    I have done all that, and I can see the value of the supervisorId is being set. But after the page postbacks, it gives a javascript error: Microsoft JScript runtime error: 'settings' is null or not an object. By the way thanks for the code. It really helped me.
    Posted to ASP.NET MVC (Forum) by sillysoumare on 11/28/2009
  • Re: ASP.NET MVC DropdownList

    <script language="javascript" type="text/javascript"> $(document).ready(function() { $("#Supervisor").change(function() { var supervisorId = $("#Supervisor").val(); $("#AccountForm").load("/Account/NewAccount/" + supervisorId); }); }); </script> public ActionResult NewAccount(int? supervisorId) { Account account = new Account(); ViewData.Model = account; ViewData["Supervisor"] = from ac in _accountService.GetAll().Where
    Posted to ASP.NET MVC (Forum) by sillysoumare on 11/28/2009
  • Re: ASP.NET MVC DropdownList

    You are right, I got it working now after I removed another javascript that was refering to in the Master Page. However, I got another problem. When I render the same view after the user selects an item from the Supervisor drop down, it does not set the values of the other textboxes from what got returned from the database. public ActionResult NewAccount(int? supervisorAccountId) { Account account = new Account(); ViewData.Model = account; ViewData["Supervisor"] = from ac in _accountService
    Posted to ASP.NET MVC (Forum) by sillysoumare on 11/28/2009
  • ASP.NET MVC DropdownList

    I would like to know how to Select a value from a dropdown list, so that it does a postback and fills the rest of the form textboxes with data
    Posted to ASP.NET MVC (Forum) by sillysoumare on 11/27/2009
  • IIS 7.0 on Windows Server 2008 displays a blank page

    I have deployed and ASP.NET 3.5 web application on IIS 7.0 on Windows server 2008. When I try to browse to http://localhost/AppName I get a blank page. The default page of the App does not load, along with the Master Page. I have enabled ASP.NET on IIS, and I also made all the necessary changes on applicationHost config file.
Page 1 of 5 (41 items) 1 2 3 4 5 Next >