Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi someone sent me this, what is it?

 

string strDataSource="";

strDataSource +=

System.Configuration.ConfigurationSettings.AppSett

ings["DSN"];

SqlConnection

sddbConnection = new SqlConnection(strDataSource);

sddbConnection.Open();

 

// string strCategoryInfo

= "";

string strSqlCategoryInfo

= "select * from tblcategory where id = 1";

SqlCommand myCommandClone

= new SqlCommand(strSqlCategoryInfo,

sddbConnection);

SqlDataReader

drCategoryInfo = myCommandClone.ExecuteReader();

 

while (drCategoryInfo.Read

() == true)

{

strCodebehind +=

drCategoryInfo["categoryurl"] + ".cs" ;

strInherits +=

strNamespace + "." +drCategoryInfo["inherits"];

}

MariaMessage.Close();

Posted

hahaaaaaaaaa - it looks that way doesn't it?

oh well - my fault. i meant to tell the person i knew c++ but he read it as c#. This is c# right? can you at least answer that?!?!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...