i'm trying to create a mini-forum (like facebook or twitter ...), so the user logs in and enters a message, that gets stored on sql server and im now trying to display it in the page, by looping through all the relevent records the code that is corrects is:
[Code]....
so here i created a container, now i need to add other content within that div i tryed the samething
[Code]....
but of course that did not work,does anyone know of this (elements within element) can be achieved.
I have...a dynamic populated select box several input boxes a submit button form fields are loaded initially using cookies several dynamic populated divs
I want... start loading the content of my DIVs after all FORM elements have been loaded completely (= filled with data, select boxes are populated)
i have a problem with creating dovs based on the data in the xml file. What i need to do is to create a page where the xml file is loaded and if the give Node has childnodes it should be displayed as a link and after clicking a span or a div with childnode's value should appear under it and afte a second click it should "fold" back. I van use the __postback function from js but the problem is in the dymanic creation of the "child" divs. A portion of the xml file:
<Car name = "Ford"> <Type Name = "Escort"> <Description>Some description of the car</Description> </Type> <Type Name = "Puma"> </Type> </Car>
Given the sample above the value "Escort" should be displayed on page as a link and after clicking a div containing value of the Description node should appear but value "Puma" should appear in normal text as it doesn't have children.
In my Page_Load() event, I'm calling a Sub (in a module UserMenu.vb) that reads an XML file which has the user menu entries. The final menu should be an <ul> with several <li>, some of them with anidated <ul> within. As I understand, I may use a asp:Panel in my page to position a container for this elements I read and in this sub I try to add them using new BulletedList and new ListElement BList.Items.Add(LItem)), but when I get to Panel.Controls.Add(BList) it throws an error that says BList should be inserted in a Form. Why? Aren't they just <ul> and <li>? What other alternative I have to create <ul> and <li> in a specific part of my page?
I am dynamically creating a table of checkboxes on my test.aspx page. The dimensions (row and column count) of the table are determined by querying the database. In test.aspx page, I do the following:
<script language="C#" runat="server"> protected void Page_Load ( object src, EventArgs e ) { //Query the database to get the data for rows and columns CheckBox[] chkBox = new CheckBox[rows * columns]; //creates a collection of checkboxes //Iterate over the query set in a double for loop to create dynamic checkboxes } </script>
Right now I have the number of rows=20 and columns=10, but it can increase (with the columns more likely). I used the Net tab in Firebug to ascertain the time taken by different events and found that GetTest.aspx is taking close to 4 minutes, which is too long a time to wait. Is there a way to being down the page load time? Is my approach to create dynamic check boxes correct?
I have relates to how we update using a view model. I am trying to pin down whether a viewmodel is disposed once a View is rendered to the browser or whether the viewmodel continues to exist even after the View has been rendered.
Essentially I have in my viewmodel the following code:
[Code]....
This is used to bind html elements in my view so if I need to make a modification to a Item contained in the list can I simply access this and post the VM back to the controller or do I need to post a Item object back to the controller in the singular. Secondly where is the best place to build a gui control such as a table. If in the view I have a foreach loop and write out table fields is this the most appropriate way of achieving this or should I deal with this in the Controller or Model and pass it to the gui in the View Model?
I need to initiate an Array to hold 100 integers. Then, by user click, a random number 1-100 is generated, and subtracted from the list. In the next call, the next random number will be subtracted from the 99 numbers left, next from the 98 numbers and so on. I need to do this with AJAX and if needed a webservice. The reason I am asking here is because I am confused...Where shall I instanciate the array and how do I keep track of the removed numbers?
im creating dynamic buttons on page load and on the click event of button1 handlere iam creating more buttons this is going fine but on click event of button 2 work is not done so how to maintain a chain of creation of button on click events
I have a project where I need to create menu buttons from a list in SQL Server. The problem I am having is that I need to add code to the text of those buttons. So there would be a birthday button and it should display the number of birthdays within the next two weeks or a button with the number of upcoming events.
Clarification:
There is no code yet, just some requirements. What I am doing is querying a table to get the list of buttons to display. Now each of these buttons may have dynamic text, for things like count of birthdays, events,etc... I am trying to see what the best way would be to handle this. Should I embed a snippet of code to go along with the menu item to execute when I iterate over the menu items? Maybe I should build a javascript file to go along with the code, which I add code to query a service for certain menu items?
I'm working on an ASP.NET page where I've got 10 entities. I'll call them Items. An Item can be displayed in one of two modes: Featured or Thumbnail. At any given time there is one Featured Item at the top of the page, and the rest are Thumbnails arranged in a 3x3 grid underneath the featured Item Each item is an ASP usercontrol that contains two divs: one div for Featured and one for Thumbnail -- when the item is Featured, the Thumbnail div is set as invisible and vice versa.
I know how to create a dynamic ddl. but I can't keep it! It want to have 1 ddl and after selection create another one and with selection ofthe second, third is created and so on. I can create second ddl and addhandler. but when I change the second ddl it disappears!
i am creating a website and now i want to make this site search engine friendly thats why, i want to create dynamic 0r user friendly URL's for all site.
I want to create adynamic number of panels inside td in atable depending on number of items in dropdownlist ex (if dropdownlist have 5 items i want to create 5 panels)Each panel contans :Table that consist of 1- Fist row will be header that will be the title2- Second row will consist of number of cells depending on text for a label (ex 3,4,5 ,...)
I want to pass each panel with its table to its selected value from dropdownlistand when change dropdownlist value to the second value for example the first panel still show and the second panel apperand when change to the 3rd value in dropdownlist the 2 other panels still showed and the third apper and so on...
i have dataset with a table that fill by database with link of youtube. i have a datagridview, that fill by the table with the link.
above the datagrideview in the same page, i want to create dynamic video player, so when i click a call in the datagridview he will start in the video player above.
I want to create aspx or html page dynamicallly. what should i do.
I have a New Page Button on the page i want when user will click this button i want to open a popup window where user will enter the title and content of the page, i want to use Ajax Html Editor for enter the content in the page. and also he can upload any image.
I have a problem which i can not figure it out on my own, because i do not know where to look. Here's a brief description of my problem;
I have a treeview on my aspx page, when user clicks on one node, i read an html code ( such as <html> <body> sample page</html> ) from database and i just want to show this html content on the same page, say that on the right side of the treeview.
I have used freetextbox control for letting the user to input some html enabled articles.
A treeview on the right side -> (Users selects one node) -> HTML content created on the right side.