Click here to Skip to main content
15,904,416 members

Comments by Mohammed Aarif Shaikh (Top 2 by date)

Mohammed Aarif Shaikh 17-Oct-23 11:01am View    
isnt this is code -

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;

public partial class Home : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
DisplayLink();
DisplayNews();
DisplayPrayerTimeTable();
}
}
public void DisplayLink()
{
string link = string.Empty;
ImperoIT.ManagePrayerTime ObjAdd = new ImperoIT.ManagePrayerTime();
DataSet ds = new DataSet();
ds = ObjAdd.DisplayLink();
GV_Link.DataSource = ds;
GV_Link.DataBind();
}
public void DisplayNews()
{
string News = string.Empty;
ImperoIT.ManagePrayerTime ObjAdd = new ImperoIT.ManagePrayerTime();
DataSet ds = new DataSet();
ds = ObjAdd.DisplayNewsTitel();
NewsRepeater.DataSource = ds;
NewsRepeater.DataBind();
ObjAdd = null;
ds.Dispose();
}
public void DisplayPrayerTimeTable()
{
string News = string.Empty;
ImperoIT.ManagePrayerTime ObjAdd = new ImperoIT.ManagePrayerTime();
DataSet ds = new DataSet();
ds = ObjAdd.DisplayPrayerTime();
lblPrayerTime.Text = ds.Tables[0].Rows[0][0].ToString();
}

}
Mohammed Aarif Shaikh 17-Oct-23 9:19am View    
Thanks for you reply...

Please guide what I have to action here... as am not from developer background...

DO you want me to change/update anything in index.aspx.cs file ? please let me know what to update.

index.aspx.cs file content copied above in main question.