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:272580
More Search Options
RSS Available
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 »
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
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
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Channel 10:
ASUS Brings GUI to BIOS
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online