Posts

Convert Any video to flv in asp.net c#

Here this code is used to convert any format video to .flv format. Here call ReturnVideo method and pass the parameters. here u want to add some files. those are 1)ffmpeg.exe 2)ffplay.exe 3)pthreadGC2.dll these files are root folder files.  private bool ReturnVideo(string fileName,string TargetName)         {             string html = string.Empty;             //rename if file already exists             int j = 0;             string AppPath;             string inputPath;             string outputPath;             string imgpath;      ...

play flv video in asp.net

to play flv video here you want some files. those are 1)player_flv_maxi.swf string url = "VideoGallery/" + objPage.VideoURL.ToString() + ".flv";                     string imageurl = "VideoGallery/" + objPage.VideoURL.ToString() + ".jpg";                     //string plyr = "<object type='application/x-shockwave-flash' data='/CMS/Controls/player_flv_maxi.swf' width=" + (int.Parse(objPage.ControlWidth.ToString())-50) + " height=" + (int.Parse(objPage.ControlHeight.ToString())-50) + ">" +                     //   startimage=imageurl&amp;    skin=player_flv_skin001.jpg&amp;                 ...

Create gridview from Codebehind (C#)

Create gridview from C# with boundfields BFixturePlayer obj = new BFixturePlayer();                                     obj.FixtureKey = int.Parse(DR["Fixture_Key"].ToString());                                     DataTable dt = obj.TeamSheet_SelectTeamPlayers();                                     if (dt != null && dt.Rows != null && dt.Rows.Count > 0)                 ...

Create dynamic table from C#

Create Dynamic table,rows,cell and assign data to those cell from Asp.net c# Table tbl = new Table();                     DataTable Dt = BSupport.DisplayRequestDetails(int.Parse(drv["Ticket_Key"].ToString()));                     if (Dt != null && Dt.Rows != null && Dt.Rows.Count != 0)                     {                         foreach (DataRow dr in Dt.Rows)                         {             ...

Column span in gridview Edit mode

 if (e.Row.RowState.ToString().Contains("Edit"))                 {                     GridView editGrid = sender as GridView;                     DataRowView drv = (DataRowView)e.Row.DataItem;                     int colSpan = editGrid.Columns.Count;                     for (int i = 1; i < colSpan -1; i++)                     {                   ...

Get userprofile properties in SharePoint 2013 object model

using Microsoft.Office.Server.Social; using Microsoft.Office.Server.Administration; using Microsoft.Office.Server.UserProfiles; using Microsoft.SharePoint.Portal.UserProfiles; void GetUserProfileProperties() { SPWeb web = SPContext.Current.Web; SPUser currentUser = SPContext.Current.Web.CurrentUser; SPServiceContext serverContext = SPServiceContext.GetContext(web.Site); UserProfileManager profileManager = new UserProfileManager(serverContext); UserProfile profile = profileManager.GetUserProfile(currentUser.LoginName); if (profile != null) { string displayName = profile.DisplayName; } }

Click event for Dynamically created buttons or fields

Here am using class files to find the control and firing the click event $ ( document ). ready ( function () { $ ( '#contaner_wrapper' ). css ( "height" , "100%" ); $ ( document ). on ( 'click' , '.fc-button-prev a span' , function () { alert ( $ ( "#calendar" ). fullCalendar ( 'getView' ). start . toString ()); var abc = $ ( "#calendar" ). fullCalendar ( 'getView' ). start . toString (); var ab = $ ( "#calendar" ). fullCalendar ( 'getView' ). end . toString (); // Displaymonthevents(); }); $ ( document ). on ( 'click' , '.fc-button-next a span' , function () { // Displaymonthevents(); alert ( $ ( "#calendar" ). fullCalendar ( 'getView' ). start . toString ()); var abc = $ ( "#calendar" ). fullCalendar ( 'getView' ). start . toString (...