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:627957
More Search Options
RSS Available
Matching Posts
Ajax.ActionLink WITHOUT using Partial view
is it possible to use Ajax.ActionLink without partial view. I am displaying product details in a partial view (ascx) , using Ajax.ActionLinK..and works fine. But when i copy the exact code from partial view(ascx) and paste it in the main page(aspx) Ajax.ActionLink does not work. is it necessary to use partial view for ajax.actionlink, ajax.beginform. thanks
Posted to
ASP.NET MVC
(Forum)
by
ans_anish
on 12/15/2009
Entity framework -- run direct stored procedure
is there any thing in Entity Framework that does exactly what Linq to SQL ExecuteQuery does. Below is the code from Linq to sql. I need to run the stored procedure usp_TestSelect directly from the code without adding it to edmx. ModelDataContext db = new ModelDataContext(); object[] param = new object[2]; param[0] = fname; param[1] = lname; string sql = "exec [dbo].[usp_TestSelect] @FName = {0}, @LName = {1} "; IEnumerable<Customer> results = db.ExecuteQuery(typeof(Customer), sql
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
ans_anish
on 12/11/2009
Re: TryUpdateModel not working in ASP.NET MVC 1
how would i achive this in ASP.NET MVC 1. any work around????
Posted to
ASP.NET MVC
(Forum)
by
ans_anish
on 12/10/2009
ASP.NET MVC 2 beta -- TryUpdateModel not working
bradwil as suggested by you i tried the model binding in ASP.net MVC 2 , but still not working. [MetadataType(typeof(PersonMetaData))] public class Person { public int PersonID { get; set; } public string Name { get; set; } } public class PersonMetaData { [Required] [Range(1, 100)] public int PersonID { get; set; } [Required] [StringLength(4)] public string Name { get; set; } } And the code for my controller is: [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(Person person) { if (person
Posted to
ASP.NET MVC
(Forum)
by
ans_anish
on 12/10/2009
Re: ASP.NET MVC 2 beta -- TryUpdateModel not working
if the first time validation is failing because of the bad PersonID value, how I change the bad PersonID value in the Action BEFORE it gets validated . I tried removing TryUpdateModel but the Validation still fails. Thanks . [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(Person person) { if (person.PersonID < 1) person.PersonID = 1; if (ModelState.IsValid) { return View(person); } else { return View(person); } }
Posted to
ASP.NET MVC
(Forum)
by
ans_anish
on 12/10/2009
TryUpdateModel not working in ASP.NET MVC 1
I'm using DataAnnotation for validation. The Post for Create Action returns Model accountElement, and one of the field is AccountID which is required and is Validated using Dataannotation. In the Post Action for create I'm hard wiring the AccountID value to 1 ( accountElement.AccountID = 1; code below) and then I use TryUpdateModel. Shouldn't this Update the AccountID to 1. But ModelState.IsValid is always false. How do i update the Model value in the code before it gets Validated or
Posted to
ASP.NET MVC
(Forum)
by
ans_anish
on 12/9/2009
ModelState.IsValid always return true when Action is by parameters
I am using DataAnnotations for validation. ModelState.IsValid works fine when I pass the entire Model(AccountElementType) to the Action. [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create([Bind(Exclude = "AccountElementTypeID")]AccountElementType account) { if (ModelState.IsValid) { return RedirectToAction("Index"); } else return View(); } How would I make ModelState.IsValid to work if I want to pass parameters to the Action and Create a Model inside the Action as below
Posted to
ASP.NET MVC
(Forum)
by
ans_anish
on 12/8/2009
display changed values in the View after POST.
I am trying do display the updated value in the View(in textbox and checkbox) after the submit button is clicked(POST). The values for textbox and checkbox are NOT getting updated only ViewData["Message"] is updated at every POST. Can someone please explain it to me why this is happening. what am I doing wrong??? How do I display the updated values after every POST. My View is as below: <h3><%=ViewData["Message"] %></h3> <% using (Html.BeginForm()) {%>
Posted to
ASP.NET MVC
(Forum)
by
ans_anish
on 11/27/2009
Re: display changed values in the View after POST...not working for ViewData
just tried renaming the ViewData names ..... still NOT working. i got it working with strongly typed view. I believe it should also work for ViewData.... it is unrealistic to create strongly typed view for every page. Any suggestion..will this feature be available in MVC 2
Posted to
ASP.NET MVC
(Forum)
by
ans_anish
on 11/27/2009
Delay loading in usercontrol ...............UpdateProgress not showing for all usercontrol at same time
I have a page that shows SQL reporting., the reports are triggers by timers only after the page has loaded completely. Usercontrol DisplayReports is used to display SQL Server reporting. And the content page have 4 of this usercontrols. The reports are displaying perfectly. The only problem is loading.gif is not displaying for all the usercontrols when the page loads. It only display one at a time at the the sequence of the usercontrol. <uc1:DisplayReport ID="DisplayReport 1 " runat
Posted to
ASP.NET AJAX UI
(Forum)
by
ans_anish
on 8/17/2009
Page 1 of 11 (104 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online