Is there a way to force the MVC automatically generated code to follow the conventions you have set in your preferences? For example, I keep all curly braces on the same lines as their declaring class, method, etc, but when generating a controller, it completely disregards my settings. Is there a setting someplace to force the same code generation as other parts of project?
I am new to the code generation tools and I would like to know how does a tool like LLBGen Pro compares with the Entity Framework? On top of that my boos is really looking into a tool called CodeOnTime http://codeontime.com/default.aspx because he likes their good UI support.I am asking here because I really want an unbiased opinion.I am not sure if LLBGen can also generate the UI. So far all the development in the house we do it the classic way coding each layer manually. However we are in need of a fast prototyping tool.
For configuring my ASP.Net Application I'm using Custom Configuration Sections in my web.config. But I would like to get IntelliSense support for my own-build configuration sections. I figured that it is possible to create a XSD Schema Definition and include that in the web.config. But is there a less painful way of getting that schema?
With Configuration Section Designer I found a tool offering a GUI for creating my configuration section and generating the schema. But I like coding and I don't want to learn how to deal with another GUI.
So, is there a possibility of automatically generating the schema for my code?
So the bottom line is that we are working on a large web based project in ASP.NET webforms that is extremely heavy on data editing operations and we are not getting the code reuse that we want out of the presentation layer. We are currently generating a good portion of our DAL and that works great. However, the strategies for standardizing, improving UI development time, and code reuse for the presentation layer are less clear. I have been researching DyanamicData, potential code generation, and writing our own custom controls, but i dont see an obvious place to focus our efforts.
I'm trying to take an existing bunch of code that was previously on a full .aspx page, and do the same stuff in a .ashx handler.
The code created an HtmlTable object, added rows and cells to those rows, then added that html table the .aspx's controls collection, then added it to a div that was already on the page.
I am trying to keep the code in tact but instead of putting the control into a div, actually generate the html and I'll return that in a big chunk of text that can be called via AJAX client-side.
HtmlTable errors out when I try to use the InnerHtml property (says it isn't supported), and when I try RenderControl, after making first a TextWriter and next an HtmlTextWriter object, I get the error that Page cannot be null.
in vb.net while entering a new entry i want to assign a record a unique id like in case of numeric i do this way
in this case m using itemid as a unique id and the format is 1,2,3... and m finding out the max and assigning to a new record but how to assign if the previous id is of the a00001,a00002,a00003,a00004...so on. how i do i produce a unique id in this case
I've a requirement to be able to generate PDF's within our (ASP.net) application. We need to meet the following requirements:
The text will be largely dynamic and must be added programatically. we'd like to base these generated documents off PDF templates provided by our designers. Some of the sections/pages may or may not be visible depending on certain conditions - we'd like the content to 'flow' upwards to fill the space when something is removed. Some of the pages may need to repeat, depending on certain conditions.Some of the PDF templates will be out of our control (we're populating application forms supplied by third parties), so being able to read in a blank PDF and populate it would be good.
I've looked at iTextSharp and it seems to do most of these things (i.e. I can take a PDF, edit it to include form fields where we need to fill data and then use iTextSharp to read that in as a template and populate the data), however, I'm not sure how then to go about potentially hiding whole sections and/or repeating pages.
I am trying to use the code available here to generate thumbnail images of url's that are returned as part of a search function in my website. Everything works fine when I am running through the development server in Visual Studio 2010, but when I push the code out to the server (Windows Server 2008 64bit w/ IIS 7 running in Integrated Mode) the code never returns a thumbnail. Is there something I need to do to get this working in IIS 7?
As concluded in this thread http://forums.asp.net/t/1583508.aspx MVC 2 converts some disallowed characters in the 'id' property of tag to the HtmlHelper.IdAttributeDotReplacement but the code to do that is internal to mvc and not exposed as i can see. Will I need to copy the code into my project so my custom herlps can do the same?
I have a bunch of C# functions with string, int and bool arguments that serve as data entry interfaces. I'd like to be able to create a webform for each method; a textbox for each string/int and a checkbox for each bool.
I am creating excel file using XML through the code given in the below link. [URL] Everything works fine, But when I am opening the excel file after generation, Its giving error Worksheet setting error , Problem Came up in the following areas during load.
Does ASP.NET always apply the "ct100$..." prefixes to element IDs, or in some cases does it optimize this away if the element is guaranteed unique anyways. Recently I have seen builds differing in the ID prefixes being applied, one having the prefixes and one not but both deriving from the same source. Can anyone provide any more detail this, and on the workings of INamingContainers and ID generation?
one of my client have a core requirement to develop a web application which can generate dynamic UI pages with metadata elements and relevant operations for various different products. We are thinking on lines of a approach where UI elements details will be stored in metadata and the application will read the meta data and render the UI pages based on it.
i an creating a website in C# ASP.NEt and want to use a feature similar to StackOverflow ,Every time a new user registers on the StackOverflow.com he is assigned a default user picture until he has a gravatar, Now every picture is different from the previous one, so it is sure it is generated, i want to know how can this be done in C#.Note: (I don't think it is a meta question so please don't move it there)
I've got a piece of code that should generate a menu with subitems from a datasource. The menu is displaying without errors but de submenu items are presented as menuitems. Can't figure out whats wrong:
Dim sqlMenuRdr As SqlDataReader = objDbMenu.GetDbMenuItems.ExecuteReader Dim sqlSubMenuRdr As SqlDataReader = Nothing Dim i As Integer = 0
The ASP.NET MVC RC change the GenerateId() behavior in theTagBuilder class. I know you followed the HTML 4.01 Specification, but there are so many non-standard HTML ID existed in the world.For example, there are columns in the database tables that contains non-ASCII characters ( e.g. Chinese, Japanese, ... ). Due to Model passed to the View, the input field ID will contains that characters. For this new GenerateId() feature will breaking changes our original ASP.NET MVC application. All the ID will just gone.
In my website I'm using the standard ASP.NET menu control. I already got so far as to write a custom control adapter to get rid of the rather tacky html output that is generated by the default control adapter.