Click here to Skip to main content
15,917,862 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: How to get mac address of a client system in asp.net Pin
mithun narayanan17-Jan-10 16:43
mithun narayanan17-Jan-10 16:43 
AnswerRe: How to get mac address of a client system in asp.net Pin
April Fans14-Jan-10 22:24
April Fans14-Jan-10 22:24 
GeneralRe: How to get mac address of a client system in asp.net Pin
mithun narayanan17-Jan-10 16:52
mithun narayanan17-Jan-10 16:52 
GeneralRe: How to get mac address of a client system in asp.net Pin
Abhishek Sur17-Jan-10 21:23
professionalAbhishek Sur17-Jan-10 21:23 
GeneralRe: How to get mac address of a client system in asp.net Pin
mithun narayanan18-Jan-10 7:03
mithun narayanan18-Jan-10 7:03 
AnswerRe: How to get mac address of a client system in asp.net Pin
April Fans17-Jan-10 16:36
April Fans17-Jan-10 16:36 
GeneralRe: How to get mac address of a client system in asp.net Pin
mithun narayanan17-Jan-10 16:53
mithun narayanan17-Jan-10 16:53 
QuestionAdd multiple values from the textbox into one cell (column) in Gridview Pin
Nopo14-Jan-10 3:57
Nopo14-Jan-10 3:57 
Hi all,

I need to add more data separated by commas in one cell in a Gridview. I capture the data from the textboxes and save into the Gridview but for Cas No textbox, I need to add more than one value.I have another Add button next to this textbox to add more data. I don't know how to do achieve this. I'd appreciate any help/advice.


Here is my Code:

private void DataBindGridCases()
{
try
{

DateTime date = new DateTime();

//Create DataTable.
DataTable dt = (DataTable)Session["dtCaseDetails"];

if (dt == null)
{
//Create DataTable.
dt = new DataTable();

//Assign Columns to it.
dt.Columns.Add(new DataColumn("Province"));
dt.Columns.Add(new DataColumn("City"));
dt.Columns.Add(new DataColumn("Station"));
dt.Columns.Add(new DataColumn("Cas No"));
dt.Columns.Add(new DataColumn("Investigating Officer"));
dt.Columns.Add(new DataColumn("Name of Court"));
dt.Columns.Add(new DataColumn("Date"));
}

//Create a DataRow by dt.NewRow().
DataRow dr = dt.NewRow();

if (chkCourtDate.Checked)
{
//Fill that row and add it to datatable.

dr["Province"] = txtProvince2.Text;
dr["City"] = txtCity.Text;
dr["Station"] = txtStation.Text;
dr["Cas No"] = txtCasNo.Text;
dr["Investigating Officer"] = txtInvestOfficer.Text;
dr["Name of Court"] = txtNameOfCourt.Text;
DateControl.PopulateEntity(ref date);
dr["Date"] = date;
dt.Rows.Add(dr);
}
else
{
dr["Province"] = txtProvince2.Text;
dr["City"] = txtCity.Text;
dr["Station"] = txtStation.Text;
dr["Cas No"] = txtCasNo.Text;
dt.Rows.Add(dr);
}

Session["dtCaseDetails"] = dt;

//Bind GridView Here with this Table
this.BindDataCase();

//clear the textboxes
this.ClearTextboxes();

//Rename the button
btnSave.Text = "Add Another Case";

}
catch (Exception ex)
{
Response.Write(ex.Message);
}

}

private void BindDataCase()
{
//Bind GridView Here with this Table
this.dgCaseDetails.DataSource = Session["dtCaseDetails"];
this.dgCaseDetails.DataBind();
}

Thank you in advanced.
AnswerRe: Add multiple values from the textbox into one cell (column) in Gridview Pin
Not Active14-Jan-10 4:46
mentorNot Active14-Jan-10 4:46 
QuestionDoes anyone use the gsoap Pin
Fired.Fish.Gmail14-Jan-10 2:39
Fired.Fish.Gmail14-Jan-10 2:39 
AnswerRe: Does anyone use the gsoap Pin
Fired.Fish.Gmail14-Jan-10 15:01
Fired.Fish.Gmail14-Jan-10 15:01 
QuestionDynamic Template control and value persistence Pin
Shivan Nandan14-Jan-10 1:43
Shivan Nandan14-Jan-10 1:43 
AnswerRe: Dynamic Template control and value persistence Pin
Shivan Nandan14-Jan-10 19:05
Shivan Nandan14-Jan-10 19:05 
GeneralRe: Dynamic Template control and value persistence Pin
Ashfield14-Jan-10 21:32
Ashfield14-Jan-10 21:32 
AnswerRe: Dynamic Template control and value persistence Pin
April Fans14-Jan-10 22:19
April Fans14-Jan-10 22:19 
GeneralRe: Dynamic Template control and value persistence Pin
Shivan Nandan14-Jan-10 22:28
Shivan Nandan14-Jan-10 22:28 
Question32 bit dll issue on 64 bit Production Server Pin
Jeneesh K. Velayudhan13-Jan-10 23:01
Jeneesh K. Velayudhan13-Jan-10 23:01 
AnswerRe: 32 bit dll issue on 64 bit Production Server Pin
Brij13-Jan-10 23:24
mentorBrij13-Jan-10 23:24 
GeneralRe: 32 bit dll issue on 64 bit Production Server Pin
Jeneesh K. Velayudhan17-Jan-10 18:18
Jeneesh K. Velayudhan17-Jan-10 18:18 
AnswerRe: 32 bit dll issue on 64 bit Production Server Pin
The Man from U.N.C.L.E.14-Jan-10 4:12
The Man from U.N.C.L.E.14-Jan-10 4:12 
GeneralRe: 32 bit dll issue on 64 bit Production Server Pin
Jeneesh K. Velayudhan17-Jan-10 18:23
Jeneesh K. Velayudhan17-Jan-10 18:23 
QuestionDeploy web application in to IIS 7 Pin
Sagar.H.Mistry13-Jan-10 20:08
Sagar.H.Mistry13-Jan-10 20:08 
AnswerRe: Deploy web application in to IIS 7 Pin
Sathesh Sakthivel13-Jan-10 21:37
Sathesh Sakthivel13-Jan-10 21:37 
AnswerRe: Deploy web application in to IIS 7 Pin
Brij13-Jan-10 23:08
mentorBrij13-Jan-10 23:08 
QuestionHow to make label's text H1 by setting up a font property Pin
Tina P13-Jan-10 16:01
Tina P13-Jan-10 16:01 

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.