C# .NET - How to fetch value of hidden filed from selected row in gridview.

Asked By s p
05-Sep-10 11:33 PM

How to fetch value of hidden filed from selected row in gridview.
Scenario:
I have a grid view.. the grid view contains hidden field.
I want when a particular row of the gridview is selected then the value of the hidden field should be retained in viewstate and then when Update button is clicked i want to pass this value as a query string . How to do this. Will using viewstate be good in this case???

  Amanda K replied to s p
05-Sep-10 11:57 PM
Hello !
I am also a new member. Would a newcomer be warmly welcome here? Good day you guy !





__________________
http://moviesonlineworld.com
  s p replied to Amanda K
06-Sep-10 01:06 AM
Surely will. Good day Amanda.
Create New Account
help
in another webpart. Please give me solutin if any. Many thanks Narendra Exploring the Data View Web Part Companies typically use a multitude of repository types to store and manage their Instead, for a range of scenarios, you will want to try to use the Data View Web Part first. The Data View Web Part is an advanced tool that allows you to create solutions for viewing and it would take you to build a similar solution in Visual Studio.NET. The Data View Web Part lets you view and manage data coming from different data sources, like Web services, SharePoint lists and server-side scripts. Data View Web Parts are able to retrieve data from various data sources in the form of used for transforming the structure of an XML document. The XML data within a Data View Web Part can be formatted using the Microsoft Office SharePoint Designer’s Design view. The next procedure explains how to open a SharePoint page in design view using a
Unable to add new row by custom grid column using System; using System.Collections.Generic; using System.Linq; using System.Text; using System RowIndex].Cells[e.ColumnIndex]).EditingComboBox.Text = dt.Rows[0][obj.DisplayMember.ToString()].ToString(); } } } } #region Export Grid To Excel / / The error code of the COM exception raised when creating Excel application object 2147221164; private System.Web.UI.WebControls. DataGrid AddColInWebGrid( DGVExtended dgvGrid, System.Web.UI.WebControls. DataGrid grid) { for ( int i = 0; i < dgvGrid.ColumnCount; i++) { System.Web.UI.WebControls. BoundColumn newCol = new Text columns that may be numeric like AccountNo if (IsExcelColNumericText(colName)) { newCol.ItemStyle.CssClass = "enf" ; } grid.Columns.Add(newCol); } return grid; } private string GetFileName( string name) { string tempfolderpath = Path .GetTempPath(); return tempfolderpath + name + "_" + DateTime .Now ToString().Replace( ' / ' , '-' ).Replace( ':' , '.' ) + ".xls" ; } private void SetGridHeaderStyle(System.Web.UI.WebControls. DataGrid grid, string reportName) { grid.HeaderStyle.Font.Bold = true ; grid.Caption = "<b / > " + reportName + "<b / > " ; grid.CaptionAlign = System.Web.UI.WebControls. TableCaptionAlign .Left; } / / / <Author> Mayank Mehta
is NameSpace? (B) What is Difference between NameSpace and Assembly? (A) If you want to view an Assembly how do you go about it? (A) What is Manifest? (B) Where is the other ways you can maintain state? (B) What are benefits and Limitation of using Hidden fields? (B) What is ViewState? (A) Does the performance for viewstate vary according to User are benefits and Limitation of using Viewstate for state management? (B) How can you use Hidden frames to cache client data ? (I) What are benefits and limitations of using Hidden frames? (I) What are benefits and limitations of using Cookies? (I) What is Query String viewstate value of this page in the next page ? (I) Can we post and access view state in another application? (I) What is SQL Cache Dependency in ASP.NET 2.0 Smart Navigation property? (B) What is AppSetting Section in “Web.Config” file? (B) Where is View State information stored? (I) what is the use of @ Output Cache directive in ASP.NET NET? (B) Can you explain “AutoPostBack”? (B) How can you enable automatic paging in Data Grid? (B) What is the use of “GLOBAL.ASAX” file? (B) What is the difference between NET? (A)How does authorization work in ASP.NET? (B)What is difference between Data grid, Datalist, and repeater? (A)From performance point of view, how do they rate? (B)What
System.Web.UI.WebControls.Label Label1; Line 19: Line 20: #line default Line 21: #line hidden Line 22: Line 23: Line 24: #line 14 "E: \ project \ station_info.aspx" Line 25: protected System.Web.UI.WebControls.TextBox TextBox1; Line 26: Line 27: #line default Line 28: #line hidden Line 29: Line 30: Line 31: #line 17 "E: \ project \ station_info.aspx" Line 32: protected System.Web.UI.WebControls.Label Label2; Line 33: Line 34: #line default Line 35: #line hidden Line 36: Line 37: Line 38: #line 18 "E: \ project \ station_info.aspx" Line 39: protected System.Web.UI.WebControls.TextBox TextBox2; Line 40: Line 41: #line default Line 42: #line hidden Line 43: Line 44: Line 45: #line 21 "E: \ project \ station_info.aspx" Line 46: protected System.Web.UI.WebControls.Label Label3; Line 47: Line 48: #line default Line 49: #line hidden Line 50: Line 51: Line 52: #line 22 "E: \ project \ station_info.aspx" Line 53: protected System.Web.UI.WebControls.TextBox TextBox3; Line 54: Line 55: #line default Line 56: #line hidden Line 57: Line 58: Line 59: #line 25 "E: \ project \ station_info.aspx" Line 60: protected System.Web.UI.WebControls.Label Label4; Line 61: Line 62: #line default Line 63: #line hidden Line 64: Line 65: Line 66: #line 26 "E: \ project \ station_info.aspx" Line 67: protected System.Web.UI.WebControls.TextBox TextBox4; Line 68: Line 69: #line default Line 70: #line hidden Line 71: Line 72: Line 73: #line 29 "E: \ project \ station_info.aspx" Line 74: protected