Hi friends, how to develop popup message that should get data from user when i am clicking update button in the gridview.... after getting the data through popup msg, after validating the data...i want to update that data in the gridview ... how to do this??? thanks in advance, sarala.s
sarala s
Posts
-
develop popup message that should get data from user when i am clicking update button in the gridview -
How to insert values in to one table, data from two different tables?Hi, I am having 3 tables... in the third table(Table C) i want to insert the values... which i am having datas( some datas not all) in the first(Table A) and second table(some vales not all) (Table B), by single insert.... how to do this??..
-
how to insert a row in the datagrid while clikcing a buttonI have a button outside the grid....datagrid has 4 columns named "Empid,Empname,designation and DOJ"....if user clicks the button i wanto create an empty row in the datagrid and using edit option update command i like to update of entry in to the database, means it should update in the grid as well as database...how to do this..
-
how to call javascript function from ascx page??Hi friends, i am fine and hope u so... I am having commom.js file which contains all the validations.... i like to call one of the function from ascx page while i am clicking the button in ascx page....for validation.... i have tried with Page.RegisterClientScriptBlock,but i couldn;t..can anyone explain the way to do it?? thanks in advance... sarala.s
-
how to xhtml pgm in netbean IDE???hi, fine and hope u so..... i am very new to netbeans....i want to run xhtml,javascript,cgi pgms... so i installed..jdk and Netbeans IDE 6.7 bundle from internet... but.. i don;t know how to open web project in netbean IDE.. and how to run the xhtml pgm..... wht i have done is ..i have created java application project...and created one xhtml file.....and compiled the pgm...but i am not getting the output... can u plz.. help me to solve the starting problem with netbeans????
-
edit a row in gridviewthanks..sosyopat... i solved that issue... bye
-
edit a row in gridviewNo,.... but how to make it???....in gridview???...i didn;t fine that control...
-
edit a row in gridviewhi friends,, i am trying to do edit the row in GridView .... this is the coding for updating System.Web.UI.WebControls.TextBox cName = new System.Web.UI.WebControls.TextBox(); cName = (TextBox)myDataGrid.Rows[e.RowIndex].FindControl("Contactname"); SqlConnection myConnection = new SqlConnection("Data Source=DAYAKAR\\sqlexpress; Initial Catalog=hospital;Integrated Security=true"); SqlCommand myCommand = new SqlCommand("SP_UpdatePerson", myConnection); myCommand.CommandType = CommandType.StoredProcedure; myCommand.Parameters.Add(new SqlParameter("@Contactname", SqlDbType.VarChar, 50)); myCommand.Parameters["@Contactname"].Value = cName.Text; myConnection.Open(); myCommand.ExecuteNonQuery(); myConnection.Close(); myDataGrid.EditIndex = -1; BindData(); in this i got error in cName = (TextBox)myDataGrid.Rows[e.RowIndex].FindControl("Contactname"); so i modified as TextBox txtName = (TextBox)CustomerGrid.Rows[e.RowIndex].FindControl("txtContactName"); even i am not getting the updated value... in the textbox.... so that i can update that value in the DB... kindly help me soooon...
-
how to access .cs page values in aspx page????This is my first.cs page..... namespace testvalueobject { /// <summary> /// Summary description for first /// </summary> [Serializable] public class first { int a, b, c; public first() { a = 10; b = 20; } [XmlAttribute] public int add() { c = a + b; return c; } } } this is my default.aspx.cs page.... using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using App_Data.testvalueobject; using App_Data.testvalueobject.first; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } i can't access the methods of cs page in aspx.cs page...... kindly help me soon sarala.s
-
help to access different cs(class) files using the concept of inheritenceyes.. exactly i tried as u said...but getting probs.... can u suggest to include .. namespace and include the class?? or any gud website to refer???
-
help to access different cs(class) files using the concept of inheritencehi friends, i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class...... and also... kindly give me idea to include..values objects... to acces the diffent page controls... bye, forever friend, sarala.s
-
how to get the grid items???hi friends, fine and hope u so.. i am trying to include checkbox in the datagrid... this is my coding CheckBox chkbox = new CheckBox(); TextBox txtbox= new TextBox(); foreach(DataGridItem item in DGSample.items ) { chkbox=(CheckBox)item.FindControl("chkbox"); txtbox=(TextBox)item.FindControl("txtbox"); if(chkbox.Checked) { Response.Write(item.Cells[0].Text); } } in this coding i am getting probs...in the for loop..... initially i got error like this... Error:'System.Web.UI.WebControls.GridView' does not contain a definition for 'items' so ... i tried with foreach(DataGridItem item in DGSample.rows ) even i am getting error like Unable to cast object of type 'System.Web.UI.WebControls.GridViewRow' to type 'System.Web.UI.WebControls.DataGridItem'. can u anyone help me to solve this prob???
-
how to retain the value of the html textbox control when server side dropdownlist changes??hi Manas Bhardwaj, i tried as u said.... i got the value of html textbox in the code behind page with the help of the following code... Request.Params["ComapanyName"]; how to populated back this value to the html textbox without using runat="server"...