Change Dynamic Layout Poll System?
Jul 23, 2010Now i'm developing a poll system which enable change dynamic layout , independance coder and designer.
View 1 RepliesNow i'm developing a poll system which enable change dynamic layout , independance coder and designer.
View 1 Repliesim using a known cms system or maybe old cms system. its a simple ASP.NET application that was hand coded my problem is minor. This cms displays a catalog type website with products from a database. the display looks like its using an html file to house the catalog what i want to do is change that html file to another layout. ive been trying to find the systemdefs and libarary but no luck does anyone have an where these settings may be stored?
View 1 RepliesMy Web App is news application,with each news enabled to insert poll system to evaluate good or bad ...anything.
View 4 RepliesIn other languages (PHP/Python), I am used to creating a class which represents a given HTML page layout. These classes can have an unlimited number of attributes and dynamic features, such as Navigation (multi level), error messages, info messages, footer text, etc... Most of these items have defaults, but may be overridden on a per-page level. For example:
Layout = MainPage()
Layout.Title = "Google Image Search"
Layout.Nav1.Add("Google", "http://www.google.com", Selected=True)
Layout.Nav1.Add("Yahoo", "http://www.yahoo.com")
Layout.Nav1.Add("Bing", "http://www.bing.com")
Layout.Nav2.Add("Google Image Search", "http://......", Selected=True)
Layout.Nav2.Add("Google Shopping Search", "http://......")
Layout.Nav2.Add("Google Video Search", "http://......")
Layout.Nav2.Add("Google Web Search", "http://......")
or, handling errors:
try:
# do something
except ValidationError as e:
Layout.Error.Add(e)
or a php example:
$Layout->Info[] = "Your changes have been saved!";
My question is: how do I implement similar functionality into ASP.Net MVC 3 Razor (VB)?
So far, I have been able to see how you can use ViewData to pass various bits of data to a view. Also, I have been working with strongly typed views.
Frankly, I'm not sure who's job it is to have this logic, the controller or the view (or is there a model that should be in there somewhere).
Here is a summary of what I am shooting for:
A single place to initialize the default values for the layout (like the first layer of navigation, etc...) Strongly typed attributes, such as Public Readonly Property Nav1 as List(of NavElement) And a single place to render these layout elements (I assume _Layout.vbhtml)
I'm trying to figure out the "right way" it's done on a platform that is both new (Razor) and new to me (ASP.Net MVC).
how to change the layout of a web form. I have tried the Tools->Options ->HTML Designer -> CSS Styling ->Change positioning to absolute , but of no use.
View 1 RepliesMe with C#.net, I had intalled a new keybord layout and I want to enter data in the textbox using the new keyboard language but save the details in sql server table in default keyboard layout . So how can I change the keyboard layout only at the time of insertion
View 2 RepliesI have a requirement to design an asp.net website that will allow non-coding staff to be able to change the layout of a page - is there any way this can be done?
View 4 RepliesHow to change just the layout (template) of the CreateUserWizard control programmatically? I would to define another layout (not using the horrid table) but continue to use all the event handling and the creation of the user of the CreateUserWizard control. Just for reference, the following code doesn't work, and produces an unexpected result not representing my Template at all. The "InstantiateIn" method of the ITemplate is not called.
public partial class b : System.Web.UI.Page
{
protected void Page_Init(object sender, EventArgs e)
{
CreateUserWizard createUserWizard = new CreateUserWizard();
createUserWizard.CreateUserStep.ContentTemplate = new Template();
Panel1.Controls.Add(createUserWizard);
}
}
public class Template : ITemplate
{
void ITemplate.InstantiateIn(Control container)
{
container.Controls.Add(new TextBox() { ID = "UserName" });
container.Controls.Add(new TextBox() { ID = "Password" });
container.Controls.Add(new TextBox() { ID = "ConfirmPassword" });
container.Controls.Add(new TextBox() { ID = "Email" });
container.Controls.Add(new PlaceHolder() { ID = "ErrorMessage" });
}
}
}
How to change web site layout dynamically using asp.net? Suppose user wants to select one layout from choice and apply it dynamically.
View 2 Replies I now have a ReportViewer control on asp.net page with datasource select Country, Product, Value from Table1. This reportviewer is associated with Report1.rdlc and currently Report1.rdlc has this matrix layout
Country as row field, Product as column field and value as Calculate field (Sum)
I want on button1click on asp.net, the report change to this layout:
Product as row field, Country as column field, value remains as Calculate field.
How should I proceed with this ? I know pointing to Report2.rdlc would be an option but I have more than 20 scenario and I want to keep doing it in same Report1.rdlc. Is there way to programmatically change the layout of Report1.rdlc when buttonclick is fired ?
I'm trying to change the layout of the home item, but the whole layout section seems like it doesn't do anything. How do I change the layout of something?
View 1 RepliesIs there a way to change the layout of the login control so that it shows username and password side by side instead of the username on top of password?
View 2 RepliesHow can I change the treeview layout to display the data in colums orizontal instead of displaying them in a vertical manner?
View 4 RepliesYou'll have to excuse my ignorance, I'm coming at this from a front-end perspective, and don't really know how to deal with data views in ASP.NET.
Basically, I'm trying to change the layout of some repeated data from a straight table, to something more design-heavy. It's the same data, just re-organised slightly. The current ASP.NET code looks like this:
[Code]....
However, I want to replace all of this, such that each 'row' of data renders like this:
[Code]....
How is this done? Can I just edit the code above, or would I need to do something more advanced in terms of not using a data grid and using some other control instead? Is it something that can be done in just a .aspx file or would it need to be done in C# and compiled?
I've added the Dynamic.cs file to my project and have set it's Build Action = Compile in order to get the System.Linq.Dynamic namespace.
However, when I try to use any of the new code I am getting an ambiguous call error; see below.
[Code]....
Could you elborate how to save it in DB? Because all the users are unauthenticated
View 1 RepliesHow can I do to create a poll without database.
View 1 RepliesHere's what I am trying to do. I have a website that lets users submit requests that are queued up in a Jobs table that the service picks up and processes. I have a status column in the table that denotes whether the request is queued up for processing or being currenty processed by the service or the service has completed processing the request. The entire process takes a few minutes.I have a Status ASP.NET page in which I will need to show the current status of their request on a real time basis. I want to display some kind of animation and denote the current status. One way I could do this is to have a meta http refresh every x seconds that checks the status of the request (I guess this is how sites such as Expedia, Priceline does it?) would like to prevent a complete page refresh is possible and looking for a AJAX/JQuery solution. How would I implement this? Is polling the correct approach?
View 4 RepliesIs it possible to create a Custom Control which inherits from System.Web.UI.WebControls.Login and change its layout and add additional controls such as a DropDownList. I have tried various ways to do this by overriding the Render Contents methods but each time I have to recreate the controls which are already present in the main Login control. Is it possible to somehow get a reference to the controls in the parent class and then override the Render Contents method to render the controls how I need them?I would like if at all possible to use the controls and functionality that already exist in the Login control but just change the layout and add in an additional DropDownList control.
View 1 RepliesI want to implement poll in my website and its a public available website so any one can vote. I want to know which might be the best option for creating poll. In my opinion there is only cookies in which i can store information and check if this user has submit a poll. My website is multi-lingual and im using Asp.net-mvc 2
View 2 RepliesI want to know how to show the results of a poll with graphics using asp.net.
View 4 Repliesim am trying to write a forum using asp.net at the moment i have threads -> topics -> comments i realised that at the moment if users try to go back (from comments to topics and to threads), they can only use the back button in the browsers i am now trying to creat a menu like the one used in this forum (at the top "home >asp.net forums > general asp.net > getting started") as at anytime you can go back to see other topics at the moment i have tried to implement the following :
[Code]....
i thought that if i store get the topic_id from the address bar once, and store it in the session - then when i navigate to ..?comment_id - the topic_id would remain in the seesion i thought that in theory it kind of works, but now that i am trying to explain it here, i know that the session would then = to null. So i wondering is their any way to implement this navigation system
Frameworks like Node.js, Tornado, and Twisted let developers create server-push applications that supports large number of concurrent hanging requests (10k+). From what I understand, they all achieve this by not creating threads to service each hanging request.
Can AsyncController be used to service large number of inactive concurrent requests?If so, are there any reasonably large ASP.NET MVC websites using this approach to create long-poll applications?
heavy operation which takes long time to be completed in my asp.net application. I don't want to run the entire operation in one request which may result in a TimeOut error. Instead I want to invoke the operation in a separate thread and poll for the result every x seconds. How can I do this?If the operation gets completed I need to register a script in the ajax postback to hide the loading panel and show the content. However I'm not able to register new scripts and invoke it during ajax postbacks.
View 2 Repliesi have list box, in that list box have some fields(SQL Table fields) in run time i arrange the fields(based on my requirement order) , based on the list i want to change the columns in data table dynamicaly. how i change the columns in the datatable.
View 6 Replies