.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

dynamic menu control call in login page

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :ASP.Net
 
Hi ,i have declared two control in my master page , how wants to call this menu control in child page ( that is login page)i want to bind the menu control dynamically based on login previlagepublic Menu newMenu = new Menu();  public MenuItem newItem = new MenuItem("Master");


View Complete Post


More Related Resource Links

Dynamic menu control

  

Dear all,

I want to get the names of some folders in my drive and populate my menu control with the names of those folders.

Getting the folder names is not the issue, but how can i populate my menu with the names of getted foldernames.

I tried this:

DirectoryInfo dirInfo = new DirectoryInfo(Server.MapPath("~\\MyFolders\\"));
DirectoryInfo[] dirs = dirInfo.GetDirectories();
Menu1.DataSource = dirs;
Menu1.DataBind();

But im getting the error:

HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.

 

How can i achieve this?

Thanks in advance.


 


How to create a Floating Login Page control ASP.NET

  

I would like to load the login control on the page loaded... like this

 

 

how to do this ? any sample codes?

  


create more than one menu server control on the same page

  

hiya,


i tried to add 2 menu server control on the same page but it was positioned one below the other instead of next to each other...


each of the menu will have several child nodes but it will be display like a drop down list


CarMakers  |  CarModels  |  RegistrationNumber

Citroen             C3                          XPTO  

Renault            Clio                         ABCD


This is how i want the menu to look like


but I only managed to add them like this:

CarMakers 

Citroen                               

Renault           


CarModels

C3

Clio

can someone give me some hint?


Call javascript function on containing page from user control

  

I have a toolbar in a user control.  I would like to wire the toolbar's onclick event to a javascript function on the page that contains the user control.  What's the easiest way to do this?


Css menu control with Sitemap, rollover and dynamic images

  

Hi all

I have been building a site (http://www.leisurepursuits.co.uk) but i am having some trouble.

I built it using a bunch of links with a css rollover style.


However, what i would like to do is a)have sub menu items and b) have it so that the button which relates to the page the user is on is always highlighted.

Now to me, the obvious choice would be to build a sitemap (which i have done) use the menu control (which i have done) apply images to each individual node (i dont know how to do this) create a rollover (i dont know how to do this) and then programatically make it so the button stays highlighted if they are on the relevant page (i dont know how to do this)

So is anyone able to point me in the irght direction for doing the last three at all?

I have been googling for ages and just cannot find a half decent tutorial on the menu control which covers the points i make above.

I would really apreciate your help

Thanks very much



Login Control , LoginView, Page Redirection

  

Hi and thanx for giving your time.

I have Default.aspx page with Login control.

code:

protected void Login2_Authenticate(object sender, System.Web.UI.WebControls.AuthenticateEventArgs e)
        {
            //verify that the username/password is valid
            if (Membership.ValidateUser(Login2.UserName, Login2.Password))
            {
                

                if (Roles.IsUserInRole(Login2.UserName, "Administrator"))
  &

How to handle login control events when using a custom FBA login page?

  

Thanks to Kirk Evans' blog post that is liberally referenced all over the place, I have managed to get a custom login page working on my SP2010 site and it is pretty great.  The problem that I am having is that there doesn't seem to be anyway to respond to the events that are raised by asp.net login control that is in my page.

The page is inherited from Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage and as a result will error out when I attempt to reference a code-behind .cs file.  My question is, how do I respond to the events being raised by the login control that is in the page so that I can do things like logging successful user sign-ins?


Joseph Ackerman, MCSD, MCP.Net

Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

  
In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

Using jQuery to directly call ASP.NET AJAX page methods

  
Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

Building Re-Usable ASP.NET User Control and Page Libraries with VS 2008

  

I am having problems with a user control. I want my solution to have a separate project for holding my user controls.


The main project can get a reference to this user control project and can import this user control dll into my main project. 


Thanks in advance,

Dheeraj Mittal

dhemittal@gmail.com


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend