Click here to Skip to main content
15,922,419 members
Home / Discussions / C#
   

C#

 
QuestionObject combobox in HTML Pin
trinm19875-Jan-09 6:34
trinm19875-Jan-09 6:34 
Questionhow to clear screen when i draw to screen? Pin
ping_jacob5-Jan-09 6:31
ping_jacob5-Jan-09 6:31 
AnswerRe: how to clear screen when i draw to screen? Pin
Tony Richards5-Jan-09 10:35
Tony Richards5-Jan-09 10:35 
GeneralRe: how to clear screen when i draw to screen? Pin
Dragonfly_Lee5-Jan-09 17:02
Dragonfly_Lee5-Jan-09 17:02 
GeneralRe: how to clear screen when i draw to screen? Pin
ping_jacob6-Jan-09 3:04
ping_jacob6-Jan-09 3:04 
GeneralRe: how to clear screen when i draw to screen? Pin
Tony Richards6-Jan-09 3:17
Tony Richards6-Jan-09 3:17 
GeneralRe: how to clear screen when i draw to screen? Pin
ping_jacob6-Jan-09 7:19
ping_jacob6-Jan-09 7:19 
Questionlog4net and nhibernate: app.config - conn string pwd in clear? Pin
devvvy5-Jan-09 5:13
devvvy5-Jan-09 5:13 
hello

How not to hardcode conn string username/pwd in plaintext for log4net ADO.NET appender?

<appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
<bufferSize value="0" />
<connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

<!-- How not to have username/pwd in plaintext? -->
<connectionString value="data source=LAPPC2;initial catalog=SomeDB;integrated security=false;persist security info=True;User ID=dev;Password=somepwd" />
...
</appender>

See above, username "dev" and password are in plaintext.

Same question for nhibernate - see example below:

<configuration>
<configSections>
<section
name="nhibernate_SomeDB"
type="System.Configuration.NameValueSectionHandler, System,Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b77a5c561934e089" />
<section
name="nhibernate_AuditTrail"
type="System.Configuration.NameValueSectionHandler, System,Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b77a5c561934e089" />
</configSections>

<nhibernate_SomeDB>
<add
key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider" />
<add
key="hibernate.dialect"
value="NHibernate.Dialect.MsSql2000Dialect" />
<add
key="hibernate.connection.driver_class"
value="NHibernate.Driver.SqlClientDriver" />
<add
key="hibernate.connection.connection_string"
value="Server=localhost;initial catalog=SomeDB;User Id=dev;Password=somepwd;Min Pool Size=2" />
</nhibernate_SomeDB>

<nhibernate_AuditTrail>
<add
key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider" />
<add
key="hibernate.dialect"
value="NHibernate.Dialect.MsSql2000Dialect" />
<add
key="hibernate.connection.driver_class"
value="NHibernate.Driver.SqlClientDriver" />
<add
key="hibernate.connection.connection_string"
value="Server=localhost;initial catalog=SomeOtherDB;User Id=dev;Password=somepwd;Min Pool Size=2" />
</nhibernate_AuditTrail>
</configuration>

dev
AnswerRe: log4net and nhibernate: app.config - conn string pwd in clear? Pin
#realJSOP5-Jan-09 5:34
professional#realJSOP5-Jan-09 5:34 
GeneralRe: log4net and nhibernate: app.config - conn string pwd in clear? Pin
devvvy5-Jan-09 14:49
devvvy5-Jan-09 14:49 
QuestionHow to declare an use a struct containing an array? Pin
scjsb5-Jan-09 5:13
scjsb5-Jan-09 5:13 
AnswerRe: How to declare an use a struct containing an array? Pin
Christian Graus5-Jan-09 5:17
protectorChristian Graus5-Jan-09 5:17 
AnswerRe: How to declare an use a struct containing an array? Pin
moon_stick5-Jan-09 5:25
moon_stick5-Jan-09 5:25 
GeneralRe: How to declare an use a struct containing an array? Pin
Not Active5-Jan-09 5:53
mentorNot Active5-Jan-09 5:53 
GeneralRe: How to declare an use a struct containing an array? Pin
moon_stick5-Jan-09 6:25
moon_stick5-Jan-09 6:25 
GeneralRe: How to declare an use a struct containing an array? Pin
Not Active5-Jan-09 6:52
mentorNot Active5-Jan-09 6:52 
AnswerRe: How to declare an use a struct containing an array? [modified] Pin
#realJSOP5-Jan-09 5:36
professional#realJSOP5-Jan-09 5:36 
AnswerRe: How to declare an use a struct containing an array? Pin
Russell Jones5-Jan-09 5:42
Russell Jones5-Jan-09 5:42 
AnswerRe: How to declare an use a struct containing an array? Pin
Dragonfly_Lee5-Jan-09 17:39
Dragonfly_Lee5-Jan-09 17:39 
AnswerRe: How to declare an use a struct containing an array? Pin
Jon Rista6-Jan-09 10:41
Jon Rista6-Jan-09 10:41 
GeneralRe: How to declare an use a struct containing an array? Pin
scjsb7-Jan-09 1:45
scjsb7-Jan-09 1:45 
Questioncan you get rid of data members in a class after inheritance? Pin
bfis1081375-Jan-09 4:38
bfis1081375-Jan-09 4:38 
AnswerRe: can you get rid of data members in a class after inheritance? Pin
Christian Graus5-Jan-09 5:14
protectorChristian Graus5-Jan-09 5:14 
Questionhow to use XPath to parse the XML file? Pin
George_George5-Jan-09 3:18
George_George5-Jan-09 3:18 
AnswerRe: how to use XPath to parse the XML file? Pin
Le centriste5-Jan-09 3:22
Le centriste5-Jan-09 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.