Search

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

Matching Posts

  • Compiler Error Message: CS1518 in a view

    I'm getting the follwoing error message in my index view Compilation Error Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct Source Error: Line 7: <%@ Import Namespace="MvcContrib.Pagination" %>
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/25/2009
  • Re: Compiler Error Message: CS1518 in a view

    Thanks, that did turn out to be the problem. Tracing down brace problems in view is the one thing I really do not care for in mvc.
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/25/2009
  • MvcContrib Grid Column Formatting Question

    I have a working page grid using MvcContrib (any MANY THANKS to them). I have one column that I need to be able to center. I'm not able to find how to apply specific css styling to a single column's data in the resulting html table. Can someone please suggest where I can look to see how to do this?
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/14/2009
  • Re: Custom Master Page Data

    [quote user="rxwen"] Tom, I'm interested in your idea about using HttpContext.User is not a good general solution. Can you tell me your reason? [/quote] I was not clear enough in my answer. The HttpContext.User is a good way to find out user info. I was discussing how put common variable information on a master page. I'm using the HttpContext.User functions in an "attribute". But to use this Attribute, I have to put it in every controller I want to use it with. This is
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/12/2009
  • Re: Problem with Html.Textbox after validation error.

    Sorry I didn't include in inital post private void BuildCompanySelectList(int id) { var db1 = new CustomerDataContext(); ViewData["CompanyNames"] = (from a in db1.GetTable<CccCompany>() where a.Active == true orderby a.CompanyName ascending select new SelectListItem { Text = a.CompanyName, Value = a.CompanyID.ToString(), Selected = (a.CompanyID == id) }); } // // GET: /CustomerUser/Edit/5 public ActionResult Edit(int id) { CustomerUser user = _db.GetCustomerUser(id); if (user
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/12/2009
  • Re: how can I check if somebody seleced item on dropdown list

    What I've done in the past, is to make the first entry in the list to be an illegal value, and the Text be "--Select Value--". Then in the code, don't check for null, but rather this illegal value.
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/12/2009
  • Re: Problem with Html.Textbox after validation error.

    Thanks for answer. It worked first try. Great!!!! Tom
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/12/2009
  • Re: Custom Master Page Data

    Yes you are correct if all I needed was the user name. But in my case, I had to look up some user data and generate a custom "logo" on the master page for each user. Sorry that I didn't make this clear in my eariler posts, but it's hard in the forum's to strike a balance between putting enough informaiton in my posts so that people can understand my technical problem or explaining the entire app. And I haven't done a lot of posts in the last couple of years (was doing c
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/12/2009
  • Custom Master Page Data

    I have a client that wants some custom information placed in the banner of every page once the user has logged in. I've found a number of examples on how to pass fixed data using ViewData[] to master page, there are good tutiorals that I've found for that. But what I cannot figure out is how to get the user information to a controller to generate customer information to be displayed. Any help would be greatly apperciated. Tom
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/11/2009
    Filed under: master page
  • Re: Custom Master Page Data

    arun2303 - I like your answer, but it is more than I needed for my application. However, I'm saving this answer for my next app. I was able to get what I needed by using HttpContext.User and calling it as an attribute. I know that this is not a good general solution, but it will work for me. Tom
    Posted to ASP.NET MVC (Forum) by photo_tom on 7/11/2009
Page 1 of 25 (241 items) 1 2 3 4 5 Next > ... Last »