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:451308
More Search Options
RSS Available
Matching Posts
Validating a dynamic list of radio buttons
Hi all, I have a questionnairre application that I am writing and I am a little stuck with the best way to validate that an answer has been provided for every question. I have a form that can contain 'n' number of questions, each question has 4 options. I have named the options the same, no problem. I also create a hidden option for each option group that has a blank value. I have managed to write validation code in my service layer to check if an option group has a valid value but this is
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 10/27/2009
Re: Validating a dynamic list of radio buttons
Thanks for your help guys, Sean, your idea is actually what I have ended up implementing and it works perfectly for my needs. Gerry, the behaviour that you describe is what I was expecting but for some reason it wasn't working for me, hence the problem. Now that I have a solution to my immediate problem I will go back and look into why the expected behaviour does not happen in my case. Thanks again guys.
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 10/27/2009
Re: JQuery Cascading DropDownList Question
[quote user="Augi"] Then try this: view plain copy to clipboard print ? $(document).ready(function() { // initialization code goes here $( "#QuestionnaireId" ).val( '<%= ViewData["SelectedValue"] %>' ); $( "#QuestionnaireId" ).change(); }); $(document).ready(function() { // initialization code goes here $("#QuestionnaireId").val('<%= ViewData["SelectedValue"] %>'); $("#QuestionnaireId").change(); });
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 9/11/2009
Re: JQuery Cascading DropDownList Question
Thanks for that, it sets the selected value of my first drop down ok on page load but it does not trigger the 'change' function to load the second dropdownlist, any ideas?
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 8/27/2009
Re: JQuery Cascading DropDownList Question
Thanks, I have tried that and still does not fire the event.
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 8/27/2009
JQuery Cascading DropDownList Question
/// <summary> /// Get all of the questionnaires /// </summary> /// <returns></returns> [AcceptVerbs(HttpVerbs.Get)] public ActionResult Index() { GetQuestionnaires(0); return View(); } /// <summary> /// Get the question groups for a selected questionnaire /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Groups(int id) { return Json(UtilityService.GetQuestionGroups(id, true)); } Hi all, I
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 8/26/2009
Re: JQuery Cascading DropDownList Question
I am just getting into using jQuery and have been following examples to get it working, would you be able to point to an example of how to do this.
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 8/26/2009
Re: JQuery Cascading DropDownList Question
Thanks for your suggestions guys. Augi, I have had a little dabble with your idea but I am unsure of the correct syntax. I have gotten this far but it does not trigger the selected index change event needed to populate the second dropdownlist, $(document).ready(function() { // initialization code goes here $("#QuestionnaireId option[value='<%= ViewData["SelectedValue"] %>']").attr('selected', 'selected'); }); Am I going in the right direction or am
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 8/26/2009
MVC & Sepration of Concerns
Hi all, need clarification about something. We are rewriting a website using MVC and the repository pattern. Now the question has been asked with regards to the sepration of concerns relating top the Views, Controllers, Service Layer & repository. Now I know that there should be nothing in the Views that relates to any logic other than presentation, I also appreciate that should be no business logic in the controllers, this should be left to the controllers and as far as the repository is concerned
Posted to
ASP.NET MVC
(Forum)
by
Scout7
on 7/17/2009
Repository Pattern, Seperation of Concerns & Database Connection Strings?
Hi all, I hope someone can help with this as I am a little unsure wehat is best. I am writing an MVC website and I intend to use the Repository pattern so that I can have a clear separation of concerns and options with regards to my data access. So based upon the following structure Controller Service Repository Whose reposability is it to aquire the connection string to the database. Basically do I pass the connection string from my controller to my service to my repository? (doesn't seem right
Posted to
Architecture
(Forum)
by
Scout7
on 7/15/2009
Page 1 of 13 (121 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online