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:802719
More Search Options
RSS Available
Matching Posts
Re: How to eliminate "magic strings" from views?
Hi, The best way to move ahead using the "Lamda Expressions" i.e. <%= Html.TextBox(t=>t.DateReleased)%> If id is null then you can create the Model with new keywork. As far as taking the default values are concerned, it's best to use practice that we keep string.empty for string, current datetime for date, 0 for int, float etc. This is the way I am using in my projects. Hope it helps you. Let me know if you want to know further
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/11/2009
Re: jquery to update a table
Hi Erics, I doubt that do we have jquery included in the MVC. If yes then no need to download jquery if not then you have to because the js function is using jquery to get the data from the controller. $get(url, null, function(result)...... above function is using jquery. See in your application that do you have jquery-1.3.2.js or jquery-1.3.2.min.js(main jquery files) Happy coding
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/10/2009
Re: File upload using AJAX.BeginForm
Yes I am able to solve the problem
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/10/2009
Re: How to return a user back to loginpage?
Hi, Use single cotes(') inside alert in place of double cotes(") alert('<%= Model.CurrentUser.FirstName%>'); It worked for me, don't alert the object, use property of the object that has some value. Hope it helps you
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/10/2009
Re: How to return a user back to loginpage?
Hi, Please run following code: $().ajaxStop(function(e) { alert("<% = Model.CurrentUser %>"); }); You have to use "=" in above case. Hope it helps
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/10/2009
Re: Getting the content from a PartialViewResult
Hi, You can use "HTML.RenderAction" to dynamically bind the data with the view. Here is the code: <% Html.RenderAction("<ActionName>", "<ControllerName>"); %> Use the above mentioned code in the view where you want dynamic data from the controller. Eg: Controller: (UserController.cs) public ActionResult Favourites() { string viewName = string.Empty; UsersEditProfileViewModel viewModel = new UsersEditProfileViewModel(); viewName = "_Modules";
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/9/2009
Re: How to return a user back to loginpage?
Hi, You can redirect the user from your page in case you are using AJAX or jquery to post content on the server. What ever you are using you will get the viewModel to your page, put the javascript code inside the part which will execute in case any response occurs. And add code like below to the page: <script language="javascript"> <%if(Model.CurrentUser == null){%> document.location.href = "<Login page url>"; <%}%> </script> I think it works for
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/9/2009
Re: jquery to update a table
Hi, First of all download jquery from: http://jquery.com/ And place it in your web project. Add it's js and css files to the page or master page where you want to implement it http://jquery.com/ site will provide you all the tutorials about how to use jquery? If you have confusion in any point then ping back. Hope it helps you.
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/9/2009
Re: jquery to update a table
Hi Erics, Here is the sample code for updating data using jquery: <script language="javascript" type="text/javascript"> function LoadMe() { var url = '<%=Url.Content("~/<Controller>/<ActionName>" ) %>'; var targetDiv = "#table"; //Id of the table that you want to update $(targetDiv).html("<p> Loading...</p>"); $.get(url, null, function(result) { $(targetDiv).html(result); }); } </script> Let me know
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 11/9/2009
File upload using AJAX.BeginForm
Hi Everyone, I am new to ASP.NET 3.5 MVC, I want to upload file using AJAX form. When I am using html form then I am able to upload files but my requirement is that I am using user control for edit profile, I am using tabs for the same where in we are having multiple tabs for edit profile, change password, etc. While using AJAX form having enctype = "multipart/form-data" then following statement did not get the files foreach (string filename in Request.Files) Please help me find the solution
Posted to
ASP.NET MVC
(Forum)
by
sbakshi
on 7/24/2009
Page 1 of 19 (183 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
PDC09 GeekFest Party
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 9:
The Access Show: Managing Access Databases with SharePoint
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online