Click here to Skip to main content
12,635,132 members (23,936 online)
   

C#

 
GeneralRe: Socket programming- Response to all client Pin
mohammadkaab17-Jan-13 23:14
membermohammadkaab17-Jan-13 23:14 
GeneralRe: Socket programming- Response to all client Pin
mohammadkaab19-Jan-13 8:36
membermohammadkaab19-Jan-13 8:36 
GeneralRe: Socket programming- Response to all client Pin
pt140119-Jan-13 9:05
memberpt140119-Jan-13 9:05 
Questionerror An unhandled exception has occured (XAML Designer in wpf Pin
Mohamad Shahmardan12-Jan-13 4:10
memberMohamad Shahmardan12-Jan-13 4:10 
AnswerRe: error An unhandled exception has occured (XAML Designer in wpf Pin
ProgramFOX12-Jan-13 4:33
member ProgramFOX12-Jan-13 4:33 
GeneralRe: error An unhandled exception has occured (XAML Designer in wpf Pin
Mohamad Shahmardan16-Jan-13 4:40
memberMohamad Shahmardan16-Jan-13 4:40 
GeneralRe: error An unhandled exception has occured (XAML Designer in wpf Pin
ProgramFOX16-Jan-13 6:06
member ProgramFOX16-Jan-13 6:06 
Questioni cant fill table with data i pull from sql Pin
a1_shay12-Jan-13 1:23
membera1_shay12-Jan-13 1:23 
in the code i know for shure that i did get the data to my string sqlCity.but when the code come to adap.Fill(dt); it just jump to the catch.i try to do debugging but i did not find the reason why it not fill my dt datatable.can someone tell my what is the problem ?
public partial class test1 : System.Web.UI.Page
{
    public SqlConnection myConn;
    sqlDataAdapter adap;
    public DataTable dt;

    protected void Page_Load(object sender, EventArgs e)
    {
        string conn = @"Data Source=.\SQLEXPRESS;AttachDbFilename='"
       + Server.MapPath(@"App_Data\Database.mdf") + "';Integrated Security=True;User Instance=True";
        myConn = new SqlConnection(conn);
        try
        {
            myConn.Open();
            string sqlCity = "select * from common";
            adap = new sqlDataAdapter(sqlCity, myConn);
            dt = new DataTable();
            adap.Fill(dt);
        }
        catch
        {
            MessageBox.Show("Error.....");
        }
        finally
        {
            myConn.Close();
        }

    }
}

AnswerRe: i cant fill table with data i pull from sql Pin
Richard MacCutchan12-Jan-13 4:38
mvpRichard MacCutchan12-Jan-13 4:38 
GeneralRe: i cant fill table with data i pull from sql Pin
a1_shay12-Jan-13 11:08
membera1_shay12-Jan-13 11:08 
GeneralRe: i cant fill table with data i pull from sql Pin
micke.andersson28-Jan-13 5:07
membermicke.andersson28-Jan-13 5:07 
QuestionInt32rect not found Pin
z3ngew12-Jan-13 0:34
memberz3ngew12-Jan-13 0:34 
AnswerRe: Int32rect not found Pin
z3ngew12-Jan-13 0:45
memberz3ngew12-Jan-13 0:45 
AnswerRe: Int32rect not found Pin
Florian Rappl12-Jan-13 0:46
mvpFlorian Rappl12-Jan-13 0:46 
AnswerRe: Int32rect not found Pin
Richard MacCutchan12-Jan-13 1:07
mvpRichard MacCutchan12-Jan-13 1:07 
GeneralRe: Int32rect not found Pin
z3ngew13-Jan-13 7:12
memberz3ngew13-Jan-13 7:12 
QuestionProblem With User Controls Pin
Mah boubeh11-Jan-13 19:58
memberMah boubeh11-Jan-13 19:58 
AnswerRe: Problem With User Controls Pin
Dave Kreskowiak11-Jan-13 20:00
mvpDave Kreskowiak11-Jan-13 20:00 
GeneralRe: Problem With User Controls Pin
Mah boubeh11-Jan-13 20:09
memberMah boubeh11-Jan-13 20:09 
AnswerRe: Problem With User Controls Pin
OriginalGriff11-Jan-13 23:13
mvpOriginalGriff11-Jan-13 23:13 
Questionsingle log file for two classes. Pin
vanikanc11-Jan-13 11:27
membervanikanc11-Jan-13 11:27 
AnswerRe: single log file for two classes. Pin
mark merrens11-Jan-13 11:58
membermark merrens11-Jan-13 11:58 
GeneralRe: single log file for two classes. Pin
Garth J Lancaster11-Jan-13 13:56
memberGarth J Lancaster11-Jan-13 13:56 
GeneralRe: single log file for two classes. Pin
vanikanc14-Jan-13 4:00
membervanikanc14-Jan-13 4:00 
AnswerRe: single log file for two classes. Pin
PIEBALDconsult11-Jan-13 14:26
memberPIEBALDconsult11-Jan-13 14:26 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 10 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid