Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:306674
More Search Options
RSS Available
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
Re: IIS 7.0 on Windows Server 2008 displays a blank page
I get a blank page
Posted to
Configuration and Deployment
(Forum)
by
sillysoumare
on 1/7/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.
Posted to
Configuration and Deployment
(Forum)
by
sillysoumare
on 1/7/2009
Page 1 of 5 (41 items) 1
2
3
4
5
Next >
ASP.NET:
Localizing ASP.NET MVC Validation
WindowsClient:
Debugging Crash Dumps with Visual Studio 2010
WindowsClient:
Debugging Crash Dumps with Visual Studio 2010
Channel 9:
Channel 9 Live at PDC09 Kurt DelBene
Channel 9:
Channel 9 Live at PDC09 Mike Anguilo
Channel 9:
Channel 9 Live at PDC09: Dean Hachamovitch
Channel 9:
Channel 9 Live at PDC09: Gary Flake
Channel 9:
Channel 9 Live at PDC09: Mark Russinovich and Patrick Dussud
Channel 9:
Ping 40: Black screen claims- retracted, Windows 7, Bing Maps, Office 2010
WindowsClient:
WPF Touch Basics
WindowsClient:
WPF Touch Basics
TechNet Edge:
AlignIT IT Manager Podcast #32: Agile Application Lifecycle Management
Channel 9:
Bharat Shah: Microsoft Online Services Overview
WindowsClient:
Holland America adds Surface to several ships in it’s new Mix lounge
ASP.NET:
RIA Services Link Listing #1
Channel 9:
Reactive Extensions API in depth: Merge
TechNet Edge:
Forefront Protection for Exchange customer story
WindowsClient:
Windows Client Developer Roundup for 12/7/2009
WindowsClient:
Introducing the new Bing Maps beta
ASP.NET:
My Presentations in Europe (December 2009)
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online