Create Catagories With Unlimitted Subcatagories?
Mar 15, 2010i want to create catagories with unlimitted subcatagories. I am using asp.net 2.0, sql server 2000. How to do this & how to display those with treeview
View 1 Repliesi want to create catagories with unlimitted subcatagories. I am using asp.net 2.0, sql server 2000. How to do this & how to display those with treeview
View 1 RepliesTables:
"Items_table"
item_Key
Item_Name
"CartoryTable"
CatagoryID
CatagoryName
"ItemsINCatagory_Table "
INC_Key
catagoryID
Item_Key
I am using edmx. entities models and the tables are linked correctly.
I just need the code to setup the data to be passed from the controller to the view. I also have a vierwmodel for these tables.
I been looking around the net and having trouble finding a sample code.
I have four categories, which I would like to show up in my breadcrumbs:
ex:
Home > Poems TOC > MyPoem
Home > Songs TOC > MySong
can I structure the xml in the Web.sitemap doc, so that even if the files are in the same directory, they will dispaly as above. (the TOC entries are table of content pages, which call the actual content pages)
How to create create variables/properties in master page, and let sub-pages access them? So my master will have a string property HomeUrl How can any page that uses the master page access this property?
View 2 RepliesI have asp.net button and I want to create a QUnit test that will first create mouseover and then show an alert. How to do this. I tried
test("mouseover",function(){
$("#buttonid").mouseover(function () {
alert('mouseover');
test(true,"Done");
});
});
but it doesnt work.
I am creating a web site through command line. I am able to create a web site with single host address. But i want multiple host address for a website. this is the command I am using iisweb /create D:Test Test.com /d [URL]
View 6 RepliesI'm currently in the process of creating a webshop. This webshop supports theming, but I also want customers to choose a lay-out. I can create multiple masterpages and create a handler to dynamically set the correct master page. But some components, like the shopping cart, are controls which have to be present in the master page and are also used in the aspx pages. The shopping cart control for instance, has an Update method which is called whenever the user adds a product to their cart. So the question is: can I somehow create a default masterpage which has all the components on it, but still be able to create multiple lay-outs. And how should I reference that master page from the aspx pages? I also thought of creating an Interface class which defines the masterpage and it's public components, but I don't know if I can reference an interface from aspx pages.
View 8 RepliesIs 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 RepliesI want to create a module base CMS , witch way is better for create modules ? how can I install new modules after build and upload project ?
View 6 Repliesi want to create a web service which consists of CRUD operations Create, Retrieve, Update and Delete. creating web methods on insert and update operations.
View 2 RepliesI want to create a View to Create a new meeting for an association.I create a view model because I want to be able to choose the members who will participate with a dropdownList displaying a string composed with their Family name and first name.
So I build a property which return a Dictionary and I want to display the value (Family name concatenated with the first name) and be able to processed the Member Id in the Post.
Where It's not clear at all is the code of the view with the => notation.
Here is my code for the ViewModel:
public class DistributionViewModel { public Distribution LaDistribution { get; set; } private Dictionary<int, String> _listeMembres; public Dictionary<int, String> ListeMembres { get {) Membre[] lesMembres = Membre.Search(null, null, null, null, null, null, null); //Search hit the database(I used codeAuthor) foreach (Membre m in lesMembres) //And with null it return all the members not filtered { string nomPrenom = m.Nom + "-" + m.Prenom; _listeMembres.Add((int)m.IdMembre, nomPrenom); } return _listeMembres; } } }But for the View where probably I should be ashamed about what I wrote!:</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <h2> Creation d'une nouvelle distribution </h2> <% using (Html.BeginForm()) {%> <%: Html.ValidationSummary(true) %> <fieldset> <legend>Distribution</legend> <label for="DateDistribution"> Date de distribution:</label><br /> <%: Html.TextBoxFor(Model => Model.LaDistribution.DateDistribution) %> <%: Html.DropDownListFor(m => m.ListeMembres.Values, new SelectList(Model.ListeMembres), "[ None ]")%> <p> <input type="submit" value="Create" /> </p> </fieldset> <% } %> <div> <%: Html.ActionLink("Back to List", "Index") %> </div></asp:Content>If someone could helpRegardsAlain
i want to take sql table .sql extesion in sql server 2008r2
View 1 RepliesShould we create a class for every form we create,that will us to do the validations etc etc?
View 1 RepliesI am trying to create a Linkbutton inside a calendar. Everything works except for the onClick.
Is there a way to make this work?
[code]....
Does anyone know how to disable a create user button in the Create User Wizard if the Terms and Conditions checkbox is not checked?
I have a CUW with additional fields (the data of which is stored in an additional table that I have added to the ordinaty SQL membership database) and I want the user to check the Terms and Conditions checkbox before the user is created.
By any chance, do you also know how to prevent the creation of the user if the additional fields have not been filled?
I triend with Java, code behind and many method but it still dont work: the user is created even if the Terms and Conditions are not checked.
I'm a newbie into MVC and I am like only on chapter 7 in ASP.NET MVC Unleashed so be easy with m
[Code]....
how do I tell Create Button to send to an Action named Create and to Edit to an Action named Edit on the same form?I guess it is possible on ASP.NET MVC if it is possible on ASP.NET Webforms
May i know how i can change postion of Create user button in Create USer Wizard as i want to change according to requirement!
View 4 RepliesI am using a create User Wizard for registering a user and have converted it to a a template to capture additional information. In the CreatedUserEvent handler in Code Behind I am getting the UserName of the new user and their unique GUID key. This is then added to a seperate data table with addditional info captured from the user. The textboxes within the create user Wizard have validation controls. If the user has missed an entry these fire and it shops the process of creating the user.
BUT If I then complete the textboxes and then click submit it says the USER NAME already Exists! This is not what I want as the User just needs to correct the errors in the form and they should be able to keep their iniital User Name choice. Do I need to change the Event handler and if so am I still able to capture the USerName and Key so that I can add the data to the other non membership table.
I got the followig task.Create a website (Profile.aspx) in which the User can create and edit his profile.Well, I know how to write in a database, but how do I get the UserName oder the UserID to make a PrimaryKey?If the user is logged in a session will be started. In this session is the UserName but I don't know how to read out the UserName with ASP.NET to make an PrimaryKey. If I would try to read out the UserName with C# I must save it in an variable and give it somehow to my form.
asp:sqldatasource id="SqlDataSource1" runat="server"
connectionstring="<%$
ConnectionStrings:MyConnectionString %>"[code]....
im creating a multi step create user wizard for new members but I run into a problem. If the create of an account is in step 3 how do I capture the values from step 1 and 2. Should I try to pass the values to sessions or is there some other code. Here is some codebehind I tried so far (did not work).
[Code]....
[Code]....
I want to create a web page that will allow user to create a web page. The admin user should be able to give access rights to the controls which the user will place on his web page.
View 3 Replieshow to create a PDF using .net ? I have a form and I have to show the data entered on the form in a PDF.
Say some thing like
[Code]....
I want to create ads bar like this in my home page,that view all new ads ( ads title ) after specific date, with link to ads page with ad index in the data base I can manage the select statement, but i don't know how to add the bar and link each ad
View 4 RepliesI need a detailed tutorial on how to create a dll in asp.net.
View 3 RepliesI want to learn how to create websites using ASP.net and mySQL database. I have Visual Studio 2008. where can I get information from? so I can start building my first website
View 3 Replies