Click here to Skip to main content
15,886,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Application object + logged in users Pin
T M Gray17-Jun-10 11:09
T M Gray17-Jun-10 11:09 
Questionneed Intiligant algorithm Pin
eslam soliman17-Jun-10 2:00
eslam soliman17-Jun-10 2:00 
AnswerRe: need Intiligant algorithm Pin
R. Giskard Reventlov17-Jun-10 2:07
R. Giskard Reventlov17-Jun-10 2:07 
Questionhow to enter dataset value into the combobox as Selected Text Pin
Amit Spadez17-Jun-10 1:43
professionalAmit Spadez17-Jun-10 1:43 
AnswerRe: how to enter dataset value into the combobox as Selected Text Pin
shreekar17-Jun-10 1:59
shreekar17-Jun-10 1:59 
GeneralRe: how to enter dataset value into the combobox as Selected Text Pin
Amit Spadez17-Jun-10 2:05
professionalAmit Spadez17-Jun-10 2:05 
GeneralRe: how to enter dataset value into the combobox as Selected Text Pin
shreekar17-Jun-10 3:30
shreekar17-Jun-10 3:30 
QuestionDynamic grid problem Pin
Amit Patel198517-Jun-10 1:19
Amit Patel198517-Jun-10 1:19 
Hi All i m creating the grid using the following way
<pre>
private void loadDynamicGrid(Int32 startTime, Int32 endTime, String firstTime)
{
//Create an instance of DataTable
//Create an ID column for adding to the Datatable
dt = new DataTable();
DataColumn dcol = new DataColumn(ID, typeof(System.Int32));
dcol.AutoIncrement = true;
dt.Columns.Add(dcol);
DataRow drow = null;
drow = dt.NewRow();
//Add the row to the datatable.
dt.Rows.Add(drow);

BoundField bfield = new BoundField();

if (String.Compare(firstTime, "firstTime") != 0)
{
GrdDynamic.Columns.Clear();
bfield.HeaderText = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + "MODALITY" + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
bfield.HeaderStyle.BackColor = Color.LightGray;
bfield.HtmlEncode = false;
GrdDynamic.Columns.Add(bfield);
}

foreach (DataColumn col in dt.Columns)
{

for (Int32 index = startTime; index < endTime; index++)
{
Int32 hour = index;

for (Int32 minute = 0; minute <= 3; minute++)
{
//BoundField bfield = new BoundField();
bfield = new BoundField();
String headertext1 = ((hour.ToString()) + ":" + (15 * minute));
String[] headerText = headertext1.Split(':');

if (headerText[0].Length == 1)
{
bfield.HeaderText = "&nbsp;0" + headerText[0] + ":" + headerText[1];
}
else
{
bfield.HeaderText = "&nbsp;" + headerText[0] + ":" + headerText[1];
}

if (headerText[1].Length == 1)
{
bfield.HeaderText = bfield.HeaderText + "0&nbsp;";
}
else
{
bfield.HeaderText = bfield.HeaderText + "&nbsp;";
}
bfield.HtmlEncode = false;

GrdDynamic.Columns.Add(bfield);
//GrdDynamic.CellSpacing = 1;
}
}
}

//Initialize the DataSource
GrdDynamic.DataSource = dt;
//Bind the datatable with the GridView.
GrdDynamic.DataBind();

}

</pre>

i want to add link button in grid cell based on some condition.

how to do this
<pre>

calling function using following call.

</pre>
QuestionHttpContext.Current.Server.MapPath Pin
KishoreT17-Jun-10 0:03
KishoreT17-Jun-10 0:03 
AnswerRe: HttpContext.Current.Server.MapPath Pin
Jens Meyer17-Jun-10 1:18
Jens Meyer17-Jun-10 1:18 
AnswerRe: HttpContext.Current.Server.MapPath Pin
KishoreT17-Jun-10 2:02
KishoreT17-Jun-10 2:02 
QuestionAjaxPro and Actionchart issue? Pin
Jeneesh K. Velayudhan16-Jun-10 23:17
Jeneesh K. Velayudhan16-Jun-10 23:17 
QuestionASP.Net MVC 2.0 Sample Project Required Pin
Member 401661616-Jun-10 22:46
Member 401661616-Jun-10 22:46 
AnswerRe: ASP.Net MVC 2.0 Sample Project Required Pin
R. Giskard Reventlov16-Jun-10 23:12
R. Giskard Reventlov16-Jun-10 23:12 
Questionreturning null value from procedure Pin
developerit16-Jun-10 22:05
developerit16-Jun-10 22:05 
AnswerRe: returning null value from procedure Pin
Tej Aj17-Jun-10 0:52
Tej Aj17-Jun-10 0:52 
QuestionRe: returning null value from procedure Pin
shreekar17-Jun-10 1:54
shreekar17-Jun-10 1:54 
AnswerRe: returning null value from procedure Pin
T M Gray17-Jun-10 10:13
T M Gray17-Jun-10 10:13 
QuestionUpdateprogress bar Pin
sjs4u16-Jun-10 21:39
sjs4u16-Jun-10 21:39 
AnswerRe: Updateprogress bar Pin
saini arun16-Jun-10 22:51
saini arun16-Jun-10 22:51 
QuestionGridview sorting Pin
Abbas_here16-Jun-10 21:13
Abbas_here16-Jun-10 21:13 
AnswerRe: Gridview sorting Pin
Manas Bhardwaj16-Jun-10 21:33
professionalManas Bhardwaj16-Jun-10 21:33 
GeneralRe: Gridview sorting Pin
Abbas_here17-Jun-10 0:53
Abbas_here17-Jun-10 0:53 
AnswerRe: Gridview sorting Pin
shreekar17-Jun-10 1:51
shreekar17-Jun-10 1:51 
GeneralRe: Gridview sorting Pin
Abbas_here17-Jun-10 3:33
Abbas_here17-Jun-10 3:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.