I came across a thread on one of my lists today in which somebody was having problems running 2 different versions of the FreeTextBox assembly in the same /bin directory. The answer to this one is pretty simple. You need to install all versions of the assembly with the GAC (Global Assembly Cache). To do so, you need to change to the directory of each assembly using the command prompt and then run the following command:
gacutil /i AssemblyName.dll
, where
AssemblyName.dll
is the name of the assembly. After all versions are installed in the GAC, they are then shared and thus you do not need to keep them in the /bin directory to use them.
R
Another common question I see on forums and lists is how to get the content of a GridView cell when in Edit mode. The following code demonstrates how to get the text of a cell at index position 3 using an OnEditing event.
VB.NET
Private Sub
GridView_RowEditing(
ByVal
sender
As Object
,
ByVal
e
As
GridViewEditEventArgs)
Dim
m_RowIndex
As Integer
m_RowIndex = e.NewEditIndex
Dim
m_ColumnText
As String
m_ColumnText = GridViewID.Rows(m_RowIndex).Cells(3).Text
End Sub
C#
private void
GridView_RowEditing(
object
sender,
GridViewEditEventArgs
e)
{
int
m_RowIndex;
m_RowIndex = e.NewEditIndex;
string
m_ColumnText;
m_ColumnText = GridViewID.Rows[m_RowIndex].Cells[3].Text;
}
R