Click here to Skip to main content
16,016,562 members
Home / Discussions / C#
   

C#

 
QuestionMessage Removed Pin
21-Dec-10 16:45
Aseem Sharma21-Dec-10 16:45 
AnswerRe: Register a 32 bit ATL service on Windows7-64 bit? Pin
Dave Kreskowiak21-Dec-10 18:21
mveDave Kreskowiak21-Dec-10 18:21 
GeneralRe: Register a 32 bit ATL service on Windows7-64 bit? Pin
Aseem Sharma21-Dec-10 19:12
Aseem Sharma21-Dec-10 19:12 
QuestionI'm looking for ideas or examples on programmatically reading the contents inside of a remote desktop window Pin
turbosupramk321-Dec-10 11:22
turbosupramk321-Dec-10 11:22 
AnswerRe: I'm looking for ideas or examples on programmatically reading the contents inside of a remote desktop window Pin
PIEBALDconsult21-Dec-10 15:59
mvePIEBALDconsult21-Dec-10 15:59 
GeneralRe: I'm looking for ideas or examples on programmatically reading the contents inside of a remote desktop window Pin
turbosupramk321-Dec-10 16:24
turbosupramk321-Dec-10 16:24 
GeneralRe: I'm looking for ideas or examples on programmatically reading the contents inside of a remote desktop window Pin
turbosupramk321-Dec-10 16:31
turbosupramk321-Dec-10 16:31 
QuestionASP.NET C# set GridView Column htmlencode to false from C# Pin
al3xutzu0021-Dec-10 9:29
al3xutzu0021-Dec-10 9:29 
Hi Experts,

I have an issue with the GridView for wich I want to set a column htmlencode property to false.


Here is the data source. I have no databound columns because I'm not using SQLDataSource.
public void LoadStories()
       {
           SqlConnection con = new SqlConnection("Data Source=dpeta-ro;Initial Catalog=MINTPRINT;Integrated Security=True");
           SqlCommand cmdSelect = new SqlCommand("select news_id \"id\", title \"title\",  news_text \"story\", created_date \"created on\", active from news", con);
           SqlDataReader rd;

           try
           {
               con.Open();
               rd = cmdSelect.ExecuteReader();
               gwNews.DataSource = rd;
               gwNews.DataBind();
               con.Close();
           }
           catch (Exception err)
           {
               lblError.Text = err.Message;
               con.Close();
           }

       }


The news_text column has HTML code that i want the GridView to render as HTML code, without encoding it. Because the GW has the Encode set to true by default i need to change it dynamically.


Any ideas?


Thank you,
Alex
“Be the change you want to see in the world.”

Questionc# and sql recursive data query Pin
peropata21-Dec-10 5:45
peropata21-Dec-10 5:45 
AnswerRe: c# and sql recursive data query Pin
J4amieC21-Dec-10 6:01
J4amieC21-Dec-10 6:01 
AnswerRe: c# and sql recursive data query Pin
Not Active21-Dec-10 8:21
mentorNot Active21-Dec-10 8:21 
AnswerRe: c# and sql recursive data query Pin
PIEBALDconsult21-Dec-10 8:58
mvePIEBALDconsult21-Dec-10 8:58 
GeneralRe: c# and sql recursive data query Pin
peropata21-Dec-10 9:19
peropata21-Dec-10 9:19 
GeneralRe: c# and sql recursive data query Pin
PIEBALDconsult21-Dec-10 10:10
mvePIEBALDconsult21-Dec-10 10:10 
AnswerRe: c# and sql recursive data query Pin
Mycroft Holmes21-Dec-10 12:05
professionalMycroft Holmes21-Dec-10 12:05 
GeneralRe: c# and sql recursive data query Pin
peropata21-Dec-10 22:08
peropata21-Dec-10 22:08 
Questiondesable a menustrip item Pin
mabrahao21-Dec-10 4:11
mabrahao21-Dec-10 4:11 
AnswerRe: desable a menustrip item Pin
fjdiewornncalwe21-Dec-10 4:16
professionalfjdiewornncalwe21-Dec-10 4:16 
GeneralRe: desable a menustrip item Pin
mabrahao21-Dec-10 4:37
mabrahao21-Dec-10 4:37 
GeneralRe: desable a menustrip item Pin
fjdiewornncalwe21-Dec-10 5:07
professionalfjdiewornncalwe21-Dec-10 5:07 
GeneralRe: desable a menustrip item Pin
mabrahao21-Dec-10 6:07
mabrahao21-Dec-10 6:07 
AnswerRe: desable a menustrip item Pin
phil.o21-Dec-10 4:52
professionalphil.o21-Dec-10 4:52 
GeneralRe: desable a menustrip item Pin
mabrahao21-Dec-10 4:57
mabrahao21-Dec-10 4:57 
GeneralRe: desable a menustrip item Pin
phil.o21-Dec-10 5:02
professionalphil.o21-Dec-10 5:02 
GeneralRe: desable a menustrip item Pin
fjdiewornncalwe21-Dec-10 5:10
professionalfjdiewornncalwe21-Dec-10 5:10 

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.