Or Use .CharAt Thanks
"Good Thing Goes With Good People..."
Or Use .CharAt Thanks
"Good Thing Goes With Good People..."
Dear Friend, Your gridview your Add button is templatefield and given name is "btAdd". you are executing javascript while click on this button which run ok. Now if you want to disable while selecting row you can write bellow code:: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Button bt=(Button)e.Row.Cells[2].FindControl("btAdd"); bt.Enabled = false; } } now let say while editing raw you want to enable Add button than write this code:: protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { GridView1.EditIndex = e.NewEditIndex; bindDataList(); Button bt = (Button)GridView1.Rows[e.NewEditIndex].Cells[2].FindControl("btAdd"); bt.Enabled = true; } I hope this will help you. Thanks :rolleyes:
"Good Thing Goes With Good People..."
Dear Friend,, HI. check bellow link will definately helps you to resolve your tooltip concept. http://javascript.about.com/library/bltip1.htm Nice Example to learn display tooltip through Javascript Thanks :rolleyes:
"Good Thing Goes With Good People..."
Dear Friend, Hi. I think first you should check this your script manager should top of your all the controls in your master.page. It should be immediate after
tag. ; ; Check this if it would help plase. Thanks :-D
"Good Thing Goes With Good People..."
:rose: Dear Friend, http://javascript.about.com/library/bltip1.htm Hope you found productive from this link. Thanks :laugh:
"Good Thing Goes With Good People..."
:rose:Dear Friend, Try this Code into your some button click from where you want to create new aspx page. Some BUTTON_CLICK(sender,event) { StreamWriter sw=new StreamWriter(Server.MapPath("PTells.aspx")); StringBuilder sb = new StringBuilder(); sb.AppendLine("<%@ Page Language='C#' %>"); sb.AppendLine("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>"); sb.AppendLine("<script runat='server'>"); sb.AppendLine("</script>"); sb.AppendLine("<html xmlns='http://www.w3.org/1999/xhtml'>"); sb.AppendLine("<head runat='server'><title>Untitled Page</title></head><body>"); sb.AppendLine("<form id='form1' runat='server'><div>"); sb.AppendLine("<div><asp:TextBox ID='TextBox1' runat='server'></asp:TextBox>"); sb.AppendLine("<asp:Button ID='Button1' runat='server' Text='Button'/></div></div></form></body></html>"); sw.Write(sb.ToString()); sw.Close(); Response.Redirect("PTells.aspx"); } I hope this will helps you. Thanks :laugh:
"Good Thing Goes With Good People..."
hi dear, what u r using to delete in GV. like checkbox or button. could tell me i can do something. if you clear this thanks
"Good Thing Goes With Good People..."
Dear Friends, Hi. I had Datalist in that i had Item group Listing of GridView. I put DataList into Panel for scrolling. After filling GridView my DataList will become long. Now what happen when scroll to some item from gridview it directly go to Top of the GridView in DataList. But I want to stay at that grid from Datalist. I used like: PANEL(Scrolling Purpose) - (DataList(Header of GridView) -> GridView(Fill with Items to Select) ) Is there anybody can help me. Thanks a much
"Good Thing Goes With Good People..."
Dear Friend, Hi. ;P string strFileName = "fileName.xls"; System.Data.OleDb.OleDbConnection excelConn = new System.Data.OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0;data source= '" + strFileName + "'; " + " extended properties=excel 8.0;"); string strsql = "Select * from [Sheet1$]"; System.Data.OleDb.OleDbDataAdapter excelDataAdap = new System.Data.OleDb.OleDbDataAdapter(strsql, excelConn); dsExcel = new DataSet(); if (excelConn.State == ConnectionState.Closed) { excelConn.Open(); } //Select the values from Excel excelDataAdap.Fill(dsExcel); GridView1.DataSource = dsExcel; GridView1.DataBind(); System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand(strsql, excelConn); System.Data.OleDb.OleDbDataReader dr = cmd.ExecuteReader(); string sqlConnectionString = "Data Source=srvr;Initial Catalog=db;User Id=usr;Password=pwd"; // Bulk Copy to SQL Server System.Data.SqlClient.SqlBulkCopy bulkCopy = new System.Data.SqlClient.SqlBulkCopy(sqlConnectionString); bulkCopy.DestinationTableName = "ExcelData"; bulkCopy.WriteToServer(dr); I hope this will helps u.....
"Good Thing Goes With Good People..."
Hi,:laugh: Might help this link to you. http://www.arunmicrosystems.netfirms.com/CrystalReports.html Thank you.
"Good Thing Goes With Good People..."
Hi Dear, Go this Goddysss http://www.w3schools.com/tcpip/default.asp You will find somthing to learn. Thanks:laugh:
"Good Thing Goes With Good People..."
Hi Dear, I don't know ListViewItem control in 2005. But if you had you can do Visible true false only in RowDataBound Events only...... You have to find control by Casting it you can do visible true false; Thanks:laugh:
"Good Thing Goes With Good People..."
Hi Dear.:laugh: TextBox1.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[1].Text; Write this in your GridViewChanging or Some Button Click event will help you....sure... Thanks
"Good Thing Goes With Good People..."
:laugh:Hi. To learn Account follow this link http://highered.mcgraw-hill.com/sites/0072423390/student\_view0/ Helps you to learn accounting basic fundass.... Thanks
"Good Thing Goes With Good People..."
:laugh:Hi, You can use [ Server.Mappath("\\x\\xx.mdb") ] Try this. Thanks
"Good Thing Goes With Good People..."
:laugh:Hi. //Hope this will help you to a Lot for sure..... string xNew=""; int j = 1; for (int i = 0; i < TextBox1.Text.Length; i++) { string x = TextBox1.Text.Substring(i, 1); if (x == "-") { if (j == 1) { xNew = xNew + "."; j++; } else { xNew = xNew + x; } } else { xNew = xNew + x; } } Label1.Text = xNew; }
"Good Thing Goes With Good People..."
Hi, Will Help you lot..... sure string xNew=""; int j = 1; for (int i = 0; i < TextBox1.Text.Length; i++) { string x = TextBox1.Text.Substring(i, 1); if (x == "-") { if (j == 1) { xNew = xNew + "."; j++; } else { xNew = xNew + x; } } else { xNew = xNew + x; } } Label1.Text = xNew;
"Good Thing Goes With Good People..."
Hi. I hope this will help you out.. Write somewhere in button event and test it.... string xNew=""; int j = 1; for (int i = 0; i < TextBox1.Text.Length; i++) { string x = TextBox1.Text.Substring(i, 1); if (x == "-") { if (j == 1) { xNew = xNew + "."; j++; } else { xNew = xNew + x; } } else { xNew = xNew + x; } } Label1.Text = xNew; Thanks for watching it....
"Good Thing Goes With Good People..."
Hi. I hope this work for you. Write this in your some click events. string xNew=""; int j = 1; for (int i = 0; i < TextBox1.Text.Length; i++) { string x = TextBox1.Text.Substring(i, 1); if (x == "-") { if (j == 1) { xNew = xNew + "."; j++; } else { xNew = xNew + x; } } else { xNew = xNew + x; } } Label1.Text = xNew; Small Logic. Thank you.
"Good Thing Goes With Good People..."
Could please tell me you want to update Gridview when you are Editing your OLD ProductID with New Product ID. I mean edit mode.. or what Thanks:-D
"Good Thing Goes With Good People..."