VS 2008 Creating Dynamic Menus With C1Menu?

Mar 18, 2010

Does anyone out there use ComponentOne's C1Menu and create a menu with subitems at runtime? I have went through their forums and help and anything at runtime is done with C1WebMenu which was replaced with this version.I need to create the whole menu with subitems. Can you show code for this if you have?

View 1 Replies


Similar Messages:

Creating Menus Dynamically In Web Application?

Sep 2, 2010

Im creating a web application in asp.net visual studio 2008.. in my application, i have manually created a menu control.. since, the menus changes by needs, i wish to load it dynamically from sql table..simple application which loads a menu control dynamically and i can develop mine using those concepts.

View 1 Replies

Web Forms :: Creating Two Cascading Dropdown Menus?

Apr 30, 2010

I need to create 2 cascading dropdown menus for a website. I am really new to ASP so don't understand a lot of it yet.. now is that the website pulls the list items from a SQL database and I don't want to use this method. I need to use either JavaScript or just hard code the items. Here are the directions for what I need to do:

Drop down list box for selecting a state (populate it with names of five states)

View 7 Replies

Web Forms :: Dynamic Menus Not Being Refreshed Between Users?

Oct 18, 2010

I have an ASP.Net 3.5 application with a menu. The menu is set to an xmlDataSource. The xmlDataSource is given the menus for the user as a dataset. The xmlDataSource uses an xsl transform file.Here is the code behind:

[Code]....

My problem is, when another user logs into the system, he/she gets the previous user's menus. This is based on time somehow, because if you wait long enough after another user has left a page, you'll get the proper menus.Could it have something to do with page caching? Is there something I'm missing with menus?

View 1 Replies

Web Forms :: How To Create Dynamic Link Button As Menus

Jan 12, 2010

I want to create dynamic link buttons in the asp.net code based on who logged in. For e.g. if the salespesron logged in , he should see "Customer List" and "Item Search" as menu options.

If customer logged in , it should be able to see "Customer Details" and "Item Search" as menu options.

I'm not sure how to create this dynamically in html code.

I try to serach and found the code below on this forum but it doesn't appears to create any dynamic button menu.

[Code]....

View 7 Replies

Web Forms :: Display N-Hierarchical Menus Using Dynamic Repeater Control?

Sep 27, 2010

I want to Display N-Heirarchical Menu using Dynamic Repeater Control along with CheckBoxes.

If Suppose i am having 3 level Menus i need to create 3 Repeaters Dynamically along with CheckBoxes beside of that sub Menus

View 3 Replies

Web Forms :: IE8, Firefox 3.6.8 Renders The Dynamic Menus Without The White Background?

Sep 2, 2010

Ok, everyone knows that the z-index is messed up in IE8 and that requires patches or workarounds...

What I can't seem to find a solution to is the white background on the DynamicMenu parts of a Menu control. Setting the background color to transparent or not setting it all doesn't seem to have any effect. This is only a problem in IE8, Firefox 3.6.8 renders the dynamic menus without the white background.

View 2 Replies

Web Forms :: Create Dynamic DropDown HoverMenu With Multiple Child Menus?

Sep 13, 2012

I want to create a menu similar to the following site

[URL]

View 1 Replies

VS 2008 - Showing Menus According To Assigned Rights Of User

Sep 2, 2011

I m developing a Web Based Inventory System Using ASP.NET which have a menu containing 16 options overall. I have created a menu using <ul> <li> tags. When I open my project in browser, it shows all the 16 options even i logged in with Administrator or Purchaser or Seller or Accountant etc.

I have a form to assign the Form Access Rights to every user. For example Administrator can use all the options but Seller can use only 3 options (Sales / Sales Return / Today's Sale Report). Purchaser can use 3 options (Purchase / Purchase Returns / Today's Purchase Report) Accountant can use 2 options (Payment / Receipts) etc.How can i show the menus to the users according to the rights assigned.

View 7 Replies

MVC - Find Controllers With (Authorize) Attributes Using Reflection In C# Or Build Dynamic Site.Master Menus?

Jun 8, 2010

I'm currently writing a web app in ASP.NET MVC 1.0 (although I do have MVC 2.0 installed on my PC, so I'm not exactly restricted to 1.0) -- I've started with the standard MVC project which has your basic "Welcome to ASP.NET MVC" and shows both the [Home] tab and [About] tab in the upper-right corner. Pretty standard, right? I've added 4 new Controller classes, let's call them "Astronomer", "Biologist", "Chemist", and "Physicist". Attached to each new controller class is the [Authorize] attribute. For example, for the BiologistController.cs

[Authorize(Roles = "Biologist,Admin")]
public class BiologistController : Controller
{
public ActionResult Index() { return View(); }
}

These [Authorize] tags naturally limit which user can access different controllers depending on Roles, but I want to dynamically build a Menu at the top of my website in the Site.Master Page based on the Roles the user is a part of. So for example, if "JoeUser" was a member of Roles "Astronomer" and "Physicist", the navigation menu would say:

[Home] [Astronomer] [Physicist]
[About]

And naturally, it would not list links to "Biologist" or "Chemist" controller Index page. Or if "JohnAdmin" was a member of Role "Admin", links to all 4 controllers would show up in the navigation bar. Ok, you prolly get the idea... Now for the real question... Starting with the answer from this StackOverflow topic about Dynamic Menu building in ASP.NET, I'm trying to understand how I would fully implement this. (I'm a newbie and need a little more guidance, so please bare with me.) The answer proposes Extending the Controller class (call it "ExtController") and then have each new WhateverController inherit from ExtController.

My conclusion is that I would need to use Reflection in this ExtController Constructor to determine which Classes and Methods have [Authorize] attributes attached to them to determine the Roles. Then using a Static Dictionary, store the Roles and Controllers/Methods in key-value pairs. I imagine it something like this:

public class ExtController : Controller
{
protected static Dictionary<Type,List<string>> ControllerRolesDictionary;
protected override void OnActionExecuted(ActionExecutedContext filterContext)
{
// build list of menu items based on user's permissions, and add it to ViewData
IEnumerable<MenuItem> menu = BuildMenu();
ViewData["Menu"] = menu;
}
private IEnumerable<MenuItem> BuildMenu()
{
// Code to build a menu
SomeRoleProvider rp = new SomeRoleProvider();
foreach (var role in rp.GetRolesForUser(HttpContext.User.Identity.Name))
{
}
}
public ExtController()
{
// Use this.GetType() to determine if this Controller is already in the Dictionary
if (!ControllerRolesDictionary.ContainsKey(this.GetType()))
{
// If not, use Reflection to add List of Roles to Dictionary
// associating with Controller
}
}
}

Is this doable? If so, how do I perform Reflection in the ExtController constructor to discover the [Authorize] attribute and related Roles (if any) ALSO! Feel free to go out-of-scope on this question and suggest an alternate way of solving this "Dynamic Site.Master Menu based on Roles" problem. I'm the first to admit that this may not be the best approach.

View 2 Replies

Web Forms :: Some Samples For Designing The Menus And Sub Menus In Html With Styles

Jun 16, 2010

some samples for designing the menus and sub menus in html with styles and hover etc

View 8 Replies

Web Forms :: Website Built In Visual Web Developer 2008 Express - Menus Not Working In IE 8 Or Google Chrome

Jul 9, 2010

I am a complete novice at this stuff, but i have been asked to investigate why the menus on our web site might not be working properly when vied in IE8 or Google Chrome. The site was built in Visual Web Developer 2008 Express edition, could this be the problem? If so is there a way around it without having to upgrade to VWD 2010?

View 2 Replies

Web Forms :: How To Display The Menus & Sub Menus Dynamically

Sep 24, 2010

in one of my page i need to display the menus & sub menus dynamically,for this i have a menu table called colleges & one more table called branchs 1] ABC
Science ArtsCommarce2] EFG mathszoology historylike thissome times the menus are 3some times they may be 4,5,6 may randommy incresesfor this i have the two table one is menu & sub-menus

View 2 Replies

Web Forms :: How To Display Menus With Sub Menus Using C#

Feb 27, 2011

am new for learning asp.net using c

View 2 Replies

Web Forms :: Creating Dynamic Web Config

Feb 12, 2012

I am going to deploy my Application on server but instead of specifying connection string (servername .server userid , password) in web.config manually is their any way of entering the server details in the web.confi file dynamically from client side when i first run the application.

in the starting page the user must specify the server details and database name from which  he want the data to be loaded .And once i enter the server details it should bepermanently stored in the web.config file instead of dataabse.

View 1 Replies

SQL Server :: Creating A Dynamic Select Statement?

Sep 1, 2010

creating a dynamic select statement, so far my SP look like below

[code]....

View 4 Replies

Configuration :: Creating Dynamic Site Map Page

Oct 5, 2010

I have created a ASP.Net application which basically serves as a content management site. I need to create a Sitemap for our website which should be dynamic. I've tried Telerik's Sitemap control for ASP.net Ajax and found it useful. I want to know which is the best way to create a dynamic site map page in an ASP.net application before i proceed with the telerik control.

View 1 Replies

Web Forms :: Creating Dynamic Input Page In ASP.NET

Oct 21, 2010

We have a requirement of creating an input page which might be different for different users, changing will be in terms of number and type of fields. How should I architect this page. Should i create page using "XML and XSLT" or "XML and database fields" or is there any more flexible way to create this type of page. I couldn't visualise the flow in which this should be implemented.

View 2 Replies

Creating Dynamic Http Response From Component

May 14, 2010

I've developed a component which processes online payments. At a specific point the user must be redirected to the selected acquirer web site for authentication. The acquirer itself suggests that there should be a web page which does it. Something such as the following,

<!--TakeOff.aspx-->
<html xmlns="[URL]">
<head id="Head1" runat="server">
<title>@</title>
<script type="text/javascript">
function Go() {
form1.submit();
}
</script>
</head>
<body onload="Go();">
<form id="form1" runat="server" method="post" action="/...">
<div>
<asp:HiddenField ID="MID" runat="server" />
<asp:HiddenField ID="Amount" runat="server" />
<asp:HiddenField ID="ResNum" runat="server" />
<asp:HiddenField ID="RedirectURL" runat="server" />
</div>
</form>
</body>
</html>

This page redirects the user and posts required arguments to the acquirer's web site. Prior to this page there is another page with a payment button (for example). In the click event of the payment button my component is instantiated and required calculation is done. Something such as the following,

protected void btnPayment_Click(object sender, EventArgs e)
{
try
{
var paymentProcessor = new NS.PaymentProcessor(/*required arguments*/);
/*...*/
NS.Result result = paymentProcessor.Calc();
Session.Add("PaymentProcessResult", result);
Response.Redirect("TakeOff.aspx");
}
catch (Exception p)
{
throw p;
}
}

What I'm going to do is to generate [TakeOff.aspx] page at run-time by the payment processor component instead of having static page (I mean aspx pages that are generated during development phase). The reason why is that we may have different acquirers and each acquirer requires its own arguments to be posted. So if the payment processor component generates aspx or even html pages at run-time we do not need recompile and redeploy the web application.

My problem is that I do not know how to generate aspx pages at run-time. I'm not an ASP.NET guru and all efforts that I've made using HttpResponse were in vain as the original page does not transfer the control to the generated page.

View 1 Replies

Web Forms :: Creating And Retrieving Dynamic Controls?

Jan 19, 2011

I have an xml feed that contains a list of form fields that I need to create and then submit to the server once a user has filled it out. Below is a snippet of the xml I am working with. how I should go about creating these controls and retrieving their values on postback?

[Code]....

View 2 Replies

Creating Dynamic Text For A Literal Control?

May 26, 2010

On the ListView1_ItemDataBound of a list view event, i create the literal.text like so...

<span style="position:relative;">
style="position:relative">
<span id="term1" class="popup">This id="term1" class="popup">This is the answer!</span>

[code]...

View 1 Replies

Web Forms :: Creating Dynamic Connection String

Apr 12, 2012

currently i have db name , server name & coonection credentials for sql daTAbase hardcoded in webconfig but i need to create a dynamic connection string in which db name will change currenly i have a main .aspx  with a button & on its click event i get the connection string frm webconfig and move on to next page

wht i need is in the main page i need to populate all the db of a particullar server in a dropdown the user will first select the db frm drpdown & click the button & with the db name frm dropdown connection string shld be formed

View 1 Replies

Web Forms :: Creating Layouts With Templates And Dynamic Content?

Jan 7, 2011

i am working on a project in which i have to create newsletters. We wish to give user functionality of editing the complete layout ( drag and drop if possible) I am able to achieve drag and drop with web parts but can't customise them much like adding richtext box and saving multiple copies of same page with different layouts. I then wish to enable user to send the html only part of page which contains dynamic layout.

View 1 Replies

Creating Dynamic Buttons To Call A CodeBehind Function?

Mar 29, 2011

So I have a page that is rendering data from an MSSQL instance into an HTML table. The last cell has a button to download an uploaded file from the database which is created manually during the table creation so I can enter the recordid as a parameter of the button.

The upload and download functions work perfectly fine. The problem is that I cannot get my dynamically created button to work . All it does is post back but I never get the actual file to send from the server. (Although I verified it works through other means). Any suggestions would be great, I've litterally spent all day on this. below are a few code snippets of the different methods i've tried.

RenderControl. This is great but it loses the onclick method

c# Code:

[code]....

View 2 Replies

Web Forms :: Creating Dynamic Buttons That Pass Value And Have OnServerClick

Jan 28, 2011

I've created some dynamic buttons on page load but the buttons need to have an onserverclick event and pass a value. I used buttons because they can pass a value. My code below so far, just outputs onserverlick to the html page, which is obviously not what I want. Would it be possible to use some other method, I originally used hyperlinks until I needed to pass a value (I didn't want to use querystrings).
[Code]....

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved