View Complete Post
I am having trouble finding out where and how to HTML Encode a cell's data on the Dynamic Data (v4.0) gridview of List.aspx. As a simple case, suppose I have formatted cell data that is A<br/>B in the DB. Obviously, I want A stacked on B in the cell.
It seems gridView1.HtmlEncode = true has gone away.
So maybe I'll try to catch it on the RowDataBound event:
protected void GridView1_RowDataBound(Object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { // Html Encode the cells } }
but this event never fires?
Has anyone figured out how to properly render HTML tags data in the List.aspx's GridView1?
If I figure this out, then I can add a MetaAttribute called something like [EncodeAsHtml(true)] and be on my way. Thanks!
Hello,
I have write the code for deleting the data in excel sheet. but we have got the error" Deleting data in a linked table is not supported by this ISAM."
below I paste some code snippest.
string strDelete = "Delete from [" + strSheetName + "$]"; cmdExcel.Connection = con; cmdExcel.CommandType = CommandType.Text; cmdExcel.CommandText = strDelete; cmdExcel.ExecuteNonQuery();
Please can anybody this answer.It is urgent
This month John Papa fields some of his favorite questions regarding data manipulation with ADO.NET.
John Papa
MSDN Magazine January 2007
Hi, I've a database table contains survey questions and answers. But the problem is both 'question' and 'answer' are saved in the same column(like below).
SubmissionDate Submission
2010-02-15 14:53:59.657 ***What's your pet's name?*** Lili ***Tell us about yourself*** I'm a teacher
2010-02-15 14:53:59.657 ***What's your pet's name?*** Lucy ***Tell us about yourself*** I'm a five star cook
I'd like to use a simple datagrid to display the survey result, but I need to separate the submission column into multiple columns ('question' as column name, 'answer' as data)
the number of questions or questions being asked are different for each survey so they are not fixed.
Is it even possible to get something like this below in a gridview?
SubmissionDate
Good afternoon, I would like to know if is possible to have two business data columns linked to each other. This is the scenario that I want:
BD Column 1 called State with all US states
BD Column 2 called City with all the cities based on the state selected on BD Column 1
I have a sharepoint list[Managers] with groupby sector column. like below
1)Sector1 a)Dep1 b)Dep2
2)Sector2 a)Dep3
3)Sector3 a)Dep4 b)Dep4 c)Dep4
Each Sector group by column data i want to display in label or panel control.
How to do that ? how to write the logic?
REgards mansoor
Hi All,
I have a document library that contains a Category column that is a lookup field. This is a default column that is a required field when uploading documents to the document library. The Category column is empty and I am unable to amend, hide, make it not required or delete it.
I have gone to Modify settings and columns -> clicked on the Category field to edit, but there is no option to amend the content or delete it. I am only able to amend the Column name and Description.
Since then, I have amended the column name to eg. Category1 and created a new Category field as a lookup and linked it to the correct list.
The problem I am facing now, is that I cannot hide, delete or make the Category1 (old Category) field NOT required. Either I would like to update the original field to display the correct values or alternately hide, delete or make the column not required.
Please help.
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend