hi all,
in a requirement we need to request the user to enter the PROTOCOL, HOST and pass the value to the server and to check whether the TNS name is correct.
but when we tried to work it out we were encountered with the following error as user inpurted data is not getting populated in the required place provided.
herz the code..
string oradb = "Data Source=(DESCRIP TION=(ADDRESS_L IST="
+ "(ADDRESS=(PROT OCOL="txt_proto col.text")(HOST ="txt_host.text ")(PORT=1521))) "
+ "(CONNECT_DATA= (SERVER=DEDICAT ED)(SERVICE_NAM E=Oracle10)));"
+ "User Id=yyy;Password =xxx";
in a requirement we need to request the user to enter the PROTOCOL, HOST and pass the value to the server and to check whether the TNS name is correct.
but when we tried to work it out we were encountered with the following error as user inpurted data is not getting populated in the required place provided.
herz the code..
string oradb = "Data Source=(DESCRIP TION=(ADDRESS_L IST="
+ "(ADDRESS=(PROT OCOL="txt_proto col.text")(HOST ="txt_host.text ")(PORT=1521))) "
+ "(CONNECT_DATA= (SERVER=DEDICAT ED)(SERVICE_NAM E=Oracle10)));"
+ "User Id=yyy;Password =xxx";
Comment