Click here to Skip to main content
15,896,557 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
Eddy Vluggen23-Mar-09 21:47
professionalEddy Vluggen23-Mar-09 21:47 
AnswerRe: Windows CE application and i am using opennetcf. Please help Pin
Alan N23-Mar-09 6:46
Alan N23-Mar-09 6:46 
GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
bheeem23-Mar-09 20:25
bheeem23-Mar-09 20:25 
Questionnavigating through a dataSet loaded via XML Pin
birdofprey0022-Mar-09 12:11
birdofprey0022-Mar-09 12:11 
AnswerRe: navigating through a dataSet loaded via XML Pin
led mike23-Mar-09 7:43
led mike23-Mar-09 7:43 
QuestionUsing Repeater control not giving desired result Pin
priyanshu9021-Mar-09 23:14
priyanshu9021-Mar-09 23:14 
QuestionRe: Using Repeater control not giving desired result Pin
Eddy Vluggen22-Mar-09 1:30
professionalEddy Vluggen22-Mar-09 1:30 
AnswerRe: Using Repeater control not giving desired result Pin
priyanshu9022-Mar-09 2:47
priyanshu9022-Mar-09 2:47 
i m trying 2 get an article written by the user stored in the database... here is it's code

conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\article.mdf;Integrated Security=True;User Instance=True");
        string com;
        com = "insert into articles values('priyanshu','" + TextArea1.Value + "','" + t1.Text + "')";
        comm = new SqlCommand(com, conn);
        try
        {
            conn.Open();
            comm.ExecuteNonQuery();
            conn.Close();
        }
        catch
        {
        }


than in a page where i m showing the data, this is the code:

<asp:Repeater ID="Repeater1" runat="server">
        <HeaderTemplate>
            <table border=0 >
                    <tr><th><font face="stencil" size=7 color=maroon>Articles by the user</th></font></tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr><td><b><hr /><font face="candara" size=4 color="black"><%# Eval("subject") %></font></td></tr>
            <tr><td><font face="candara" size=4 color=silver<%# Eval("article") %><hr /></font></td></tr>
        </ItemTemplate>
        <FooterTemplate>
            
            </table>
        </FooterTemplate>
    </asp:Repeater>


the .cs coding is here:

SqlConnection conn;
        SqlCommand comm;
        SqlDataReader reader;
        conn=new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\article.mdf;Integrated Security=True;User Instance=True");
        comm = new SqlCommand("select * from articles", conn);
        try{
            conn.Open();
            reader=comm.ExecuteReader();
            Repeater1.DataSource=reader;
            Repeater1.DataBind();
            reader.Close();
            conn.Close();
        }


plz. help me out with it!!
GeneralRe: Using Repeater control not giving desired result Pin
Eddy Vluggen22-Mar-09 4:08
professionalEddy Vluggen22-Mar-09 4:08 
GeneralRe: Using Repeater control not giving desired result Pin
priyanshu9022-Mar-09 4:52
priyanshu9022-Mar-09 4:52 
AnswerRe: Using Repeater control not giving desired result Pin
thyrith31-Mar-09 5:28
thyrith31-Mar-09 5:28 
QuestionDoesn't Windows Service respond to Windows Hibernate Event? Pin
Jason_Shen21-Mar-09 5:31
Jason_Shen21-Mar-09 5:31 
GeneralRe: Doesn't Windows Service respond to Windows Hibernate Event? Pin
led mike23-Mar-09 5:57
led mike23-Mar-09 5:57 
Question"Invalid Assembly file" error while registering file to Global Assembly Cache ???? Pin
RA|-|UL PATEL20-Mar-09 20:53
RA|-|UL PATEL20-Mar-09 20:53 
AnswerRe: "Invalid Assembly file" error while registering file to Global Assembly Cache ???? Pin
Ravadre24-Mar-09 10:33
Ravadre24-Mar-09 10:33 
QuestionReusing TCP connection when using HTTPWebRequest Pin
michalJ20-Mar-09 15:13
michalJ20-Mar-09 15:13 
AnswerRe: Reusing TCP connection when using HTTPWebRequest Pin
michalJ21-Mar-09 9:22
michalJ21-Mar-09 9:22 
QuestionCreating cron type job scheduler in asp.net c# (without SQL Server agent) Pin
sanah_asif20-Mar-09 3:24
sanah_asif20-Mar-09 3:24 
AnswerRe: Creating cron type job scheduler in asp.net c# (without SQL Server agent) Pin
damiaan28-Apr-10 4:38
damiaan28-Apr-10 4:38 
QuestionPassing data from a child thread Pin
vikingsimon19-Mar-09 22:23
vikingsimon19-Mar-09 22:23 
AnswerRe: Passing data from a child thread Pin
led mike20-Mar-09 4:43
led mike20-Mar-09 4:43 
GeneralRe: Passing data from a child thread Pin
Mark Churchill20-Mar-09 12:54
Mark Churchill20-Mar-09 12:54 
QuestionIs there any way to convert a legacy MFC dll to managed code in .NET? Pls help!!! Pin
Frank_Q19-Mar-09 16:11
Frank_Q19-Mar-09 16:11 
QuestionIs there a way to get URL of a page from ActtiveX? Pin
budarin19-Mar-09 10:39
budarin19-Mar-09 10:39 
Questionneeded to accept amharic unicode characters using textbox in vb.net Pin
sanchezrafael19-Mar-09 3:09
sanchezrafael19-Mar-09 3:09 

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.