Search

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

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 »