Skip to main content

Posts

Showing posts with the label asp.net

Dynamic Menu in asp.net using Listview

 1.    public DataTable LoadMenu()         {             MenuBal MenuBal = new MenuBal();             DataSet ds = this.GetData(0);             PopulateMenu(ds);             return ds.Tables[2];         }     private DataSet GetData(int parentMenuId)         {             MenuBal objmenu = new MenuBal();             string Mode = "";             if (Session["Mode"] != null)             {                 Mode = Session["Mode"].ToString();             }             DataSet ds = objmenu.GetData(parentMenuId, Convert.ToInt32(SessionHelper.CurrentUserId), Mode, SessionHelper...

fetchresourec file data in javascrip t

var lang = '<%=Session["Lang"].ToString()%>';  resource file name = Langpt_PT   if (lang=="pt-PT")                                            errMsg += "\n <%=Resources.Langpt_PT.PleaseselectGenderForRow%>" + id;                                            else                                           errMsg += "\n Please select Gender For Row " + id;