First Take txtOtherConStr.Text in a string like string st=txtOtherConStr.Text.Trim()
then split it by (;) like
string []st1=st.split(;) then You have st1[0],st1[1],t1[2],st1[3]..Now find string which have database .
i think itis st1[3] now spilt it again by (=).. then u have the databasename