Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

KennyPatel

@KennyPatel
About
Posts
33
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Message Deleted]
    K KennyPatel

    Or Use .CharAt Thanks

    "Good Thing Goes With Good People..."

    C#

  • Disable pbm
    K KennyPatel

    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..."

    ASP.NET javascript css help

  • how can we add a css tooltip to the grid view
    K KennyPatel

    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..."

    ASP.NET css

  • ajax problem
    K KennyPatel

    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..."

    ASP.NET help tools

  • how to add a javascript designed tool tip to the grid view
    K KennyPatel

    :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..."

    ASP.NET csharp javascript css asp-net tutorial

  • plz help me, create and post form on runtime
    K KennyPatel

    :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..."

    ASP.NET help question

  • DataGridView DeleteRow issue
    K KennyPatel

    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..."

    C# help tutorial question

  • How to find object in DataList While Scrolling
    K KennyPatel

    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..."

    C# css help tutorial

  • XLS import [modified]
    K KennyPatel

    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..."

    C# com xml

  • windows service + crystal report
    K KennyPatel

    Hi,:laugh: Might help this link to you. http://www.arunmicrosystems.netfirms.com/CrystalReports.html Thank you.

    "Good Thing Goes With Good People..."

    C# help tutorial

  • TCP/IP
    K KennyPatel

    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..."

    C#

  • How to disable a ListViewItem?
    K KennyPatel

    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..."

    C# question tutorial

  • fetching the value of a datafield into a textbox
    K KennyPatel

    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..."

    C# tutorial

  • about accounting transaction
    K KennyPatel

    :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..."

    C# question lounge

  • Network path Access problem
    K KennyPatel

    :laugh:Hi, You can use [ Server.Mappath("\\x\\xx.mdb") ] Try this. Thanks

    "Good Thing Goes With Good People..."

    C# csharp database sysadmin help question

  • How to replace very first character only......?
    K KennyPatel

    :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..."

    C# regex tutorial question

  • How to replace very first character only......?
    K KennyPatel

    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..."

    C# regex tutorial question

  • How to replace very first character only......?
    K KennyPatel

    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..."

    C# regex tutorial question

  • How to replace very first character only......?
    K KennyPatel

    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..."

    C# regex tutorial question

  • Gridview
    K KennyPatel

    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..."

    C# help database announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups