Blog ( Of Ryan Olshan)

Recent Posts

News

About Ryan Olshan

LinkedIn Profile

Follow Ryan via twitter

Join StrongTypes - Free Generics Help By Email
Join StrongTypes

Community Credit Winner

View my MVP profile

The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are my own personal opinions and do not represent my employer's view in any way.

Subscribe to Rolog via My AOL
Subscribe to Rolog via Bloglines


Subscribe to Rolog via Feedburner

Furl Rolog




Subscribe to Rolog via Newsburst


Subscribe to Rolog via Pluck

Add Rolog to Technorati Favorites




Thycotic Secret Server

Receive Email Updates


.NET Websites

  • => StrongTypes.com <=
  • Community Credit
  • DotNetCharity.com
  • DotNetSlackers
  • EasyListBox
  • LearnAsp.com
  • SystemNetMail.com
  • SystemWebMail.com

Blogroll

  • Alex Campbell
  • Carlos Magalhaes
  • Charles Carroll
  • Chris Taylor
  • Darren Neimke
  • David Betz
  • Eric Smith
  • Rob Caron
  • Rob Howard
  • Sam Gentile
  • Scott Guthrie
  • Scott Mitchell
  • Tess
  • Wesner Moise
  • Jason Alexander
  • Bill Ryan
  • Steve Smith
  • Sahil Malik
  • David Silverlight

Other Websites

  • 911 Pigeon Alert
  • Pacific Wildlife Project

Strong Coder Bloggers

  • Dean Fiala
  • Doug Nelson
  • Kevin Jones

Yahoo! Groups

  • => StrongTypes <=
  • AspNet2
  • AspNet20GridView
  • PayPalDevDotNet
  • RubyOnRails
  • VSTS

Monday, December 19, 2005 - Posts

Running different versions of the same assembly

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

Share this post: | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: Dec 19 2005, 08:02 PM by Ryan Olshan | with no comments
Filed under:
Getting the content of a GridView cell on edit

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

Share this post: | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: Dec 19 2005, 09:01 AM by Ryan Olshan | with 6 comment(s)
Filed under: ,
More Posts