My web.config gives error ‘Unrecognized attribute ‘verb’.’
Probably you have mispelled the attribute. It should be verbs not verb
When I Debug ASP.NET Applications I get error message ‘Access Is Denied. Check the DCOM Configuration Settings for the Machine Debug Manager’
You can get this error if you are user who is trying to remotely debug and you are not a member of the Debugger Users group on the Microsoft Internet Information Server (IIS) server. To add the appropriate user to the Debugger Users group, follow these steps on the Web server: From the Windows Start menu, point to Programs, point to Administrative Tools, and then click Computer Management. In the left pane, click to expand the Computer Management, System Tools, and Local Users and Groups nodes. Click Groups, and then double-click Debugger Users. In the Debugger Users Properties dialog box, click Add. In the Select Users or Groups dialog box, select the appropriate user, and then click OK. Click OK to exit the Debugger Users Properties dialog box. Close the Computer Management explorer.
How to find the null fields in the datareader
VB.NET If dbReader(‘fieldname’).Tostring= DBnull.Value.ToString() ’Empty field value Else ’Display value End if C# if (dbReader[‘fieldname’).ToString() == DBNull.Value.ToString() ) { //Empty field value } else { //display Value }
How to filter the data in the DataView and display it in some DataControl
VB.NET Dim thefilter as string = ‘fieldname=’’ ‘ dbDataView.RowFilter = thefilter Repeater1.DataSource = dbDataView Repeater.DataBind() C# string thefilter = ‘fieldname=’’ ‘; dbDataView.RowFilter = thefilter; Repeater1.DataSource = dbDataView; Repeater.DataBind();
How to retrieve value of a field in a dataset
VB.NET ds.Tables(‘TableName’).Rows(0)(‘ColumnName’) C# ds.Tables[‘TableName’].Rows[0][‘ColumnName’]; where TableName and ColumnName could be also integer (not in quotes then) to indicate you refer to the table’s or column’s index position. Rows(0) indicates the first and only row in DataTable’s Rows collection