Create Web Form From Xml In Asp.net Mvc
Jan 3, 2011
I am assigned to web part of some project.There are two parts in this project,window and web.In window part,User can create their own customized template like visual studio IDE,you can addform and other controls.And then,we save this template with data in xml file.My duty isto read from this xml file and create webform.For web part,just showing information that createdfrom window part.our xml file format is like below.For web part,we developed in c#.net with asp.net mvc.
<Object type="System.Windows.Forms.Form">
<Object type="System.Windows.Forms.Label">
<Property name="Name">lblCity</Property>
<Property name="Text">City</Property>
</Object>
<Object type="System.Windows.Forms.TextBox">
<Property name="Name">txtCity</Property>
<Property name="Text">England</Property>
</Object>
<Object type="System.Windows.Forms.Label">
<Property name="Name">lblNRIC</Property>
<Property name="Text">NRIC</Property>
</Object>
<Object type="System.Windows.Forms.TextBox">
<Property name="Name">txtNRIC</Property>
<Property name="Text">ABC01234</Property>
</Object>
Object type="System.Windows.Forms.RadioButton">
<Property name="Name">RadioButton1</Property>
<Property name="Text">OptionA</Property>
</Object>
<Object type="System.Windows.Forms.CheckBox">
<Property name="Name">CheckBox1</Property>
<Property name="Text">Yes</Property>
</Object>
<Object type="System.Windows.Forms.CheckBox">
<Property name="Name">CheckBox2</Property>
<Property name="Text">No</Property>
</Object>
<SampleDataSet>
<SampleTable>
<TableName>Sample1</TableName>
<ProductName>ABC</ProductName>
<Price>100</Price>
<Qty>10</Qty>
<Amount>1000</Amount>
</SampleTable>
<SampleTable>
<TableName>Sample2</TableName>
<ProductName>DEF</ProductName>
<Price>200</Price>
<Qty>20</Qty>
<Amount>4000</Amount>
</SampleTable>
<SampleTable>
<TableName>Sample3</TableName>
<ProductName>GHK</ProductName>
<Price>300</Price>
<Qty>30</Qty>
<Amount>9000</Amount>
</SampleTable>
</SampleDataSet>
</Object>
We know it should not be create web form like window part,but,we really need it.So,how i solve my problem?can i use xml serilization?
View 3 Replies
Similar Messages:
Dec 9, 2010
i have created loing form and create user form. then how to apply login rights..? i have 2 types of user. admin and normal user admin can move and use all pages while normal user can acces limited pages.
View 4 Replies
Jan 26, 2011
i need to create a dynamic form that switches the contents of the page without reloading or refreshing the page.
View 10 Replies
Sep 15, 2010
Is is possible to build a form, accept parameters and from THAT construct a new .ascx page AND the code behind for that page? What I'm proposing is having some code snippets that just need parameters added and can then be used to create a web user control that can be added to existing pages. This .ascx file would be a real file after creation, not dynamic every time.
View 1 Replies
May 19, 2010
Should we create a class for every form we create,that will us to do the validations etc etc?
View 1 Replies
Nov 25, 2010
how do i create a msg box in asp.net web form i cant add system.windows.form
i dont want it as a javascript
View 3 Replies
Jan 13, 2010
I want to post my login form to a secure url.
I figured the best way to do this would be bust open the HTML helpers for BeginForm with reflector and create my own extension method called BeginSecureForm. The problem I ran into was that it uses internal method UrlHelper.GenerateUrl and and the private method HtmlHelper.FormHelper.
Apart from hard coding URLs into a form what is the best way to generate forms that post to a secure url and then have that action redirect to a non secure action after login?
View 8 Replies
Sep 24, 2010
how to make a login form using MVC? I want to make one so that a user can log in if his data has been stored in a SQL database?
View 3 Replies
Jun 10, 2010
I want to create a userdefined form using asp.net in c#
View 5 Replies
Apr 28, 2012
I have been making a site and i need a submission form. I need to submit the form but i don't know how to do it. Here is the code for the page so far so you can see what i am trying to submit.
Code:
<%@ Page Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeBehind="MembersOnly.aspx.vb" Inherits="WebApplication4.MembersOnly" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="MainContent">
Products:<br />
[Code] ....
View 1 Replies
Mar 25, 2010
I want to make a page for registeration form. It will have name, address, gender, contact_no and email. User will key in data in the TextBox and all the data will save into the database after they click Submit button. I know how to design the UI and create database and table. But I didn't know how to save the value in the TextBox into the database.
View 5 Replies
Feb 22, 2011
how to create reset form in
<asp:LinkButton ID="LinkButton1" runat="server">RESET</asp:LinkButton>
View 1 Replies
Aug 5, 2010
I am using ASP.NET 2008 with VB Scripting.
I encounter new problem. Being requested to create WEB SERVICE and link it to the normal ASP.NET Web Forms.
show me the step by step procedures to create WEB SERVICE and How to link it to the ASP.NET Web Forms and also how the Command Button in ASP.NET Web Forms will use the FUNCTION from WEB SERVICE.
Currently, the WEB APPLICATION fold is at F:SalesWebApplication.
View 2 Replies
Jan 10, 2010
I have a simple website and I use masterPage for designing my template.
everythings work fine, but when I add a Custom (google) Search Box in it my pages correpted.
infact asp does not support Nested Form and as you all know google use a simple form to get queries from the users.
so at first I redesign my site and put 2 Form in it. One server form for my pages content and one other form for google search box. untill here everything work fine .
so I force to add 2 new button beside of my search box and these buttons need a runat=server form, so now I need an approach that let me enable a third form (second runat=server form ) or find an approach to use simple form inside of runat=server form, actually
howcan I put 2 form inside each other or how could we enable a nested form ?
View 2 Replies
Nov 14, 2010
New to .net and revamping a project from classic. In short, I am trying to create all the form fields in the view based on the database and want to figure out the best practice for .net. I've tried a few things but none seem very clean.
So basically select all the fields and data from the database and loop through each record creating the field type(text, drop down ect)/name/onchange event ect along with creating the basic layout, like putting in a column or group a set related fields.
I see how it can be done in the view itself, but there is a bunch of logic required that would be better suited for a function or class more than a bunch of if then elses in the view itself.
Just for context, it's for a real estate investment management project. So there are over 1000 fields that represent information on a house. What the end user see's is based on their choices and their security. Also, all the fields save with the onchange event which is tied to the name of the field. So everything is dynamic.
View 7 Replies
Jan 11, 2011
Alright so I want to create a form, where the text in the textboxs will be sent to my database, after the user hits sumbit. The problem I am facing is i am used to using a detailsview or formview to do this for me, but how can I do this myself, where I manuelly update my database.
View 1 Replies
Aug 3, 2010
I have never used Visual Studio 2010, ASP.NET, or ASP.NET AJAX but I'm doing my best to learn. To that avail, I'm usingProgramming ASP.NET 3.5, a book that Jesse Liberty co-authored. This book was written with Visual Studio 2008 as the programming tool of choice. I'm using VS2010.
As I follow this book line by line and do the given exercises, we have an existing web form project active and he asks for the reader to right-click on the application root in Solution Explorer, click on Add New Item, and then Select AJAX Web Form from the list of templates. The problem is that in my VS 2010 (with the AJAX Control Toolkit installed) there is no option in the list of templates for an AJAX Web Form. There is an option for an AJAX-enabled WCF Service, but no AJAX Web Form.
As I explained, I'm brand new to this and only on page 95 of this book. what I need to do or to add to an ASP.NET web form to make it an AJAX Web Form? And as a follow-up, will I need to add a reference for jQUery along with the AJAX reference?
One final question, I tried to create a blank AJAX Web Site (project) in VS 2010 by clicking on File->New->Web Site-> but there was no AJAX Web Site template for the next selection. I can create an ASP.NET Web Form. So my last question is how does one create a new AJAX Web Form web site in VS 2010.
View 2 Replies
Mar 26, 2011
I have created the Master Page.And now i have created one page and i am not able to create <form tag>.
I have to write some java script and some event on form load event.
View 2 Replies
Aug 3, 2010
iam developing a news web site and iam using xml for storing data i want to know how to create a web form and to store data on it i designed a web form and i want the created forms to be in the same way after that
View 4 Replies
Jul 6, 2010
on the basis of above interact with database i also want some animated output to appear such as "smile should increase if student secure above 90 marks"or if not then "smile should decrease" hough i know it all need a huge knowledge of actionscript and asp.net along with c#...
View 3 Replies
Mar 22, 2011
I would need to create a spread sheet like ASP.NET Form with 8 columns of data input.
View 5 Replies
Jul 9, 2010
It's a multi-model view, and I'm achieving this through an IList<Book>. Each Book has a Title and an Author
So for example if I wanted to make 3 Books:
[code]....
However, I want to be able to generate such a form for any number of Books. I've done this before in Ruby on Rails through JavaScript and rendering partials, but I don't think I can render a partial in this case because the form changes (the index of the book has to increment for it to work)
EDIT: I'm looking for a way to do this in the Create view in particular. So in this case I don't have a list of books, but I'm building it.
A user should be able to click on a link that says "Add another item" and a form for another book should be appended to the bottom.
View 3 Replies
Nov 30, 2010
I have a form that i use to upload a Restaurant with its details etc.
I want to also be able to upload an image at the same time.
At the moment i have text boxes like so:
[Code]....
View 3 Replies
Mar 31, 2011
I am looking for a simple (or best practice) way of pre filling some of the fields in a create form. As an example, say the create view is loaded for a model that has a datetime field. I want the textbox for that field to be filled with DateTime.Now. I don't need a javascript watermark or anything like that, I jsut want to pre fill the text box.
The GET version of my Create method in the controller just returns the view with no model so I am not sure where to set this value.I've beel trying to figure this out for a while and I must be missing something, I expected this to be really easy.
View 3 Replies
Feb 9, 2011
how to create RDLC form dynamically in run time and how to save it in asp.net c# ?
View 1 Replies