Gui - Web UI - Code Generation, Dyanamic Data, Custom Controls?
Feb 17, 2010
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.
View 1 Replies
Similar Messages:
Jan 24, 2011
created treeview dyamically. I wanted to invoke a javascript confrim when a node is clicked . it should give him a popup saying are you sure you want to delete. if yes then call the file which is set in the navigate urlif user selects no, they nothing should happen.
TreeNode ActTNNode =
new
TreeNode("<span onclick=""javascript:confirm('Are
you sure you want to delete);"">Delete</span>
");
View 6 Replies
Aug 3, 2010
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?
View 4 Replies
Jun 3, 2010
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?
View 2 Replies
Mar 5, 2010
I'm about a custom WSDL File Generation for a Classic ASP.NET XML Web Service.
The issue is I didn't find out how to specify mandatory parameters in my WSDL, since ASP.NET Web Services are generated on ?WSDL location, I thought I would do that from Web Method Annotations, but I found no issue.
Also I have been on a pose where the developer could hide WSDL Generation by specifying a custom WSDL Binding. But in my case I need to let other system access ?WSDL location with a Customized WSDL.
View 1 Replies
Jan 9, 2010
write a code, that generates the ASP.NET Desgin code automatically, for a given input. Can anyone guide on this.
View 2 Replies
May 20, 2010
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.
View 3 Replies
Apr 4, 2011
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?
View 1 Replies
Apr 28, 2010
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.
View 2 Replies
Jul 11, 2010
I am generating my service code by reading wsdl and client proxy as well using wsdl.exe.
I did it successfully but when I create request object and try to verify with schema it gives me error root element is not found.
I use same schema which I have used in my wsdl document and using xsd.exe I generate my objects.
I found There is XmlRootElement is absent when I mention it no my parent type it works fine.
Problem is Why it's not generating when I used wsdl.exe to generate code.
View 3 Replies
Feb 9, 2010
How do you turn off the automatic code generation after double clicking on a control?
View 1 Replies
Jul 16, 2010
i have a table called product which contain fields of product_code and product_name....now i want to show product name in gridview field whenever i write product_code in a column.....when i write product code in gridview column then product name will be generated automatically in gridview column...how can i do this
View 2 Replies
Mar 15, 2010
Trying to add some custom code behind the cancel button built into a details view. How would I go about doing this?This is what i have currently. But, when clicked, the cancel button does not pick this up.
[Code]....
View 2 Replies
Sep 14, 2010
I have use all the ajax control from the http://www.asp.net/ajax website.
But here I have the static control.
Now in project I have to created dynamic .
Please tell me the code for creating dynamic ajax control.
View 3 Replies
Jun 4, 2010
I am using autocomplete functionality found at http://www.devbridge.com/projects/autocomplete/jquery/. In addition to the text in the autocompelete text box, i would like to pass additional information, like selected states and highways. Following is the code I have. I am getting the text value in the textbox in the MVC action, but not the params. Can you please check what I am doing wrong.
var a = $('.exit-filters div.filters input#Exit').autocomplete2({
serviceUrl: $('.exit-filters input#exit-autocomplete-link').val(),
minChars: 1, [code]....
View 1 Replies
Oct 22, 2010
I have to use inline code for an aspx page and I need to use a custom server control that is defined in the same aspx page but the control does not get processed as a server control. it gets returned as is as static html tag.
View 3 Replies
Nov 27, 2010
I have created a custom control that implements Templates (based on Panel controls) ... I can do a FindControl to locate imbedded controls. This allows me to get and set values in the imbedded controls, but I want to be able to reference the imbedded controls like they are properties of the associated panel. Here is a sample of how my custom control now works:
<cc:CustomControl ID="myCustomControl" runat="server">
<PanelTemplate>
<asp:TextBox ID="myTextBox" runat="server"></asp:TextBox>
</PanelTemplate>
</cc:CustomControl>
I can do the following (where my custom control has given the panel hosting the template the name "myPanel"):
Dim txt As TextBox = myCustomControl.myPanel.FindControl("myTextBox")
txt.Text = "Some text to put in TextBox"
What I want to do is:
myCustomControl.myPanel.myTextBox.Text = "Some text to put in TextBox"
View 2 Replies
Feb 24, 2010
I have a custom control. Some properties throw a custom error message when no value is supplied. The message shows up fine, but also does the code. For example ...
Custom Message Here
... and then in the yellow box the code ...
throw new Exception("Custom Message Here");
How can I hide the code portion?
View 1 Replies
Apr 23, 2010
I'm writing out lots of checkbox controls dynamically based on a query result. In a subsequent sub, I need to check some of those boxes based on another query.
So, in my first sub I have this in my reader loop:
[Code]....
In my second sub, I get the IDs for those boxes that need to be checked.
How do I reference the dynamically generated checkboxes from here? Something like:
divGrid.Controls.? .checked = true
View 7 Replies
Dec 26, 2010
I have built a custom control. when i add this custom control in my page twice or more then the it write only one time of its render contest data.
View 4 Replies
May 19, 2013
I have read your article from aspsnippets.com about custom paging it really work, but there are a problem that if there are more record in database (2000 to 5000) than number of page index will be goes in large number. like 1 to 200, any way which can divide it like 12345678910...2000.
View 1 Replies
Aug 18, 2010
i've created a webform with one gridview having connected with the database using datasource. i.e password database with three colomn .
now want to insert the custom dropdown button using server control for each column.
when i select the dropdown list the list should display the value as required.
e.g if i click the uname dropdownlist then it should show the list of names.
if i click on pwd dropdownlist then it should show the list of numbers.
if i select any one of the value in the dropdown list then it should insert into the
database.
can i get code on this type of question...?
View 3 Replies
Mar 10, 2011
I am an newbie to this technology. I had requirement kind of thing, like, I had 5 cascading drop downs, which I created by using ajax control tool kit drop-down extenders, and used web-service to update the cascading drop downs content.
In the same form I need to create a grid, so based upon selection of the user, the grid should change dynamically, like I would like to have some examples kind of things, lets say, I had Four cascading drop- downs, like 1) Vehicles, 2) Hotels 3)Games 4) Year
And those can be sub-categorized to
1) Vehicles ----- Three Wheelers, Two Wheelers, Four Wheelers
2) Hotels -------- Five Star Hotels, Luxurious Hotels, Restaurants, Bars, Pubs
3) Games ------- Play Stations, Video Games
4) Year ----------- Manufactured or established in that particular year
so, If the user selects vehicles, then we need to show all the information regarding vehicles, and if he selects hotels , we need to get the information of vehicles, and hotels( * note, I may not be able to give u the right example, once again i want remind you that these drop downs were cascading drop downs, based upon one selection, other works) and like wise if he selects year, we need to show information of all the things manufactured or established in that particular year and here year is not a cascading drop down, and all these information is maintained in a single database table
And currently I am using Microsoft Sql Server 2008 R2, Visual Studio 2008, Using c#, ( i would be happy, if anyone gives me a code kind of thing, not mandatory, only if possible)...
View 2 Replies
Jan 10, 2011
when I add a custom usercontrol by code like this:
[Code]....
the compiler doesn't accept it at all...
how to access "custom usercontrol's properties" while the usercontrol itsef has been added programaticly by code.
View 9 Replies
Jul 1, 2010
I have the following Report class that I want to serve as the base class for my pages.
I will have several aspx files MyReport1.aspx, MyReport2.aspx, ... MyReportN.aspx
---------
Report.cs
---------
public class Report : Page
{
protected readonly ListView reportListView; [code]....
View 3 Replies