Click here to Skip to main content
15,914,165 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionUser define right click menu Pin
nannapanenikamalnath29-Jan-07 19:43
nannapanenikamalnath29-Jan-07 19:43 
AnswerRe: User define right click menu Pin
Sylvester george29-Jan-07 20:02
Sylvester george29-Jan-07 20:02 
AnswerRe: User define right click menu Pin
Artem Kustikov29-Jan-07 21:29
Artem Kustikov29-Jan-07 21:29 
AnswerRe: User define right click menu Pin
Vasudevan Deepak Kumar29-Jan-07 21:49
Vasudevan Deepak Kumar29-Jan-07 21:49 
Questiontreeview + drag and drop using asp.net and c# Pin
ritu432129-Jan-07 19:41
ritu432129-Jan-07 19:41 
AnswerRe: treeview + drag and drop using asp.net and c# Pin
blue_arc30-Jan-07 0:20
blue_arc30-Jan-07 0:20 
QuestionUnable to retrieve the Column value of a datagrid Pin
MissionSuccess29-Jan-07 19:34
MissionSuccess29-Jan-07 19:34 
AnswerRe: Unable to retrieve the Column value of a datagrid Pin
Sylvester george29-Jan-07 19:43
Sylvester george29-Jan-07 19:43 
<form id="Form1" method="post" runat="server">
<asp:textbox id="TextBox1" style="Z-INDEX: 101; LEFT: 264px; POSITION: absolute; TOP: 104px"
runat="server"></asp:textbox><asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundColumn DataField="Name"></asp:BoundColumn>
<asp:BoundColumn DataField="Id" Visible="False"></asp:BoundColumn>
</Columns>
</asp:datagrid>
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 160px; POSITION: absolute; TOP: 224px" runat="server"
Text="Button"></asp:Button></form>




private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Name"));
dt.Columns.Add(new DataColumn("Id"));

DataRow dr = dt.NewRow();

dr["Name"] = "Abccbdfejkerhjerjje";
dr["Id"] = "324";

dt.Rows.Add(dr);

dr = dt.NewRow();

dr["Name"] = "Abc cbd fejkerhj erj je";
dr["Id"] = "325";

dt.Rows.Add(dr);

dr = dt.NewRow();

dr["Name"] = "Abc cbd fejkerhj erj je";
dr["Id"] = "326";

dt.Rows.Add(dr);

DataGrid1.DataSource = dt;
DataGrid1.DataBind();
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void Button1_Click(object sender, System.EventArgs e)
{
string ids = string.Empty;
for(int i=0;i<DataGrid1.Items.Count;i++)
ids += DataGrid1.Items[i].Cells[1].Text + ",";

Response.Write(ids);

}
}

just check it in button click, I am taking all the ids




Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
GeneralRe: Unable to retrieve the Column value of a datagrid Pin
MissionSuccess29-Jan-07 22:12
MissionSuccess29-Jan-07 22:12 
QuestionHow do I exit a file jscript Pin
quangnd280229-Jan-07 19:30
quangnd280229-Jan-07 19:30 
AnswerRe: How do I exit a file jscript Pin
Vasudevan Deepak Kumar29-Jan-07 21:49
Vasudevan Deepak Kumar29-Jan-07 21:49 
QuestionDeploying the application without creating deployment Pin
indian14329-Jan-07 18:29
indian14329-Jan-07 18:29 
AnswerRe: Deploying the application without creating deployment Pin
Sylvester george29-Jan-07 18:39
Sylvester george29-Jan-07 18:39 
GeneralRe: Deploying the application without creating deployment Pin
indian14329-Jan-07 18:51
indian14329-Jan-07 18:51 
GeneralRe: Deploying the application without creating deployment Pin
Sylvester george29-Jan-07 18:55
Sylvester george29-Jan-07 18:55 
GeneralRe: Deploying the application without creating deployment Pin
indian14329-Jan-07 19:38
indian14329-Jan-07 19:38 
GeneralRe: Deploying the application without creating deployment Pin
indian14330-Jan-07 4:59
indian14330-Jan-07 4:59 
QuestionHow can I get the IP address of server Pin
indian14329-Jan-07 18:25
indian14329-Jan-07 18:25 
AnswerRe: How can I get the IP address of server Pin
Sylvester george29-Jan-07 18:49
Sylvester george29-Jan-07 18:49 
GeneralRe: How can I get the IP address of server Pin
indian14329-Jan-07 18:52
indian14329-Jan-07 18:52 
AnswerRe: How can I get the IP address of server Pin
Vasudevan Deepak Kumar29-Jan-07 21:51
Vasudevan Deepak Kumar29-Jan-07 21:51 
Questioncreated deployment and put a folder named Pics. Pin
indian14329-Jan-07 18:22
indian14329-Jan-07 18:22 
QuestionWhat is the use of REsx file or resource file in .Net Pin
indian14329-Jan-07 18:08
indian14329-Jan-07 18:08 
AnswerRe: What is the use of REsx file or resource file in .Net Pin
Parwej Ahamad29-Jan-07 18:18
professionalParwej Ahamad29-Jan-07 18:18 
GeneralRe: What is the use of REsx file or resource file in .Net Pin
indian14329-Jan-07 19:30
indian14329-Jan-07 19:30 

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.