Posted on May 14, 2011 (permalink)
C#.net coding:<br>RadMen RadMenuCls rmc = new RadMenuCls(); protected void Page_Load(object sender, EventArgs e) { DataTable dt = rmc.FillRadMenu("4"); RadMenu1.DataTextField = "text"; RadMenu1.DataNavigateUrlField = "url"; RadMenu1.DataFieldID = "id"; RadMenu1.DataFieldParentID = "pid"; RadMenu1.DataSource = dt; RadMenu1.DataBind(); } ----------------------------------------------- public class RadMenuCls:System.Web.UI.Page { DataTable dtsc = new DataTable(); public RadMenuCls() { // // TODO: Add constructor logic here // } public DataTable FillRadMenu(string role) { try { if (role == "3") ..... else if (role == "4") da = new SqlDataAdapter("select * from MenuAcc", cn); else if (role == "8") ...... da.Fill(dtrad); return (dtrad); } catch (Exception ex) { return (null); } finally { cn.Close(); } }
RadMenuCls rmc = new RadMenuCls();
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = rmc.FillRadMenu("4");
RadMenu1.DataTextField = "text";
RadMenu1.DataNavigateUrlField = "url";
RadMenu1.DataFieldID = "id";
RadMenu1.DataFieldParentID = "pid";
RadMenu1.DataSource = dt;
RadMenu1.DataBind();
} ----------------------------------------------- public class RadMenuCls:System.Web.UI.Page { DataTable dtsc = new DataTable(); public RadMenuCls() { // // TODO: Add constructor logic here // } public DataTable FillRadMenu(string role) { try { if (role == "3") ..... else if (role == "4") da = new SqlDataAdapter("select * from MenuAcc", cn); else if (role == "8") ...... da.Fill(dtrad); return (dtrad); } catch (Exception ex) { return (null); } finally { cn.Close(); } }
Posted on May 19, 2011 (permalink)
Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.
Back to Top
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below