Click here to Skip to main content
       

C#

 
GeneralRe: Socket programming- Response to all client Pinmembermohammadkaab17-Jan-13 22:14 
GeneralRe: Socket programming- Response to all client Pinmembermohammadkaab19-Jan-13 7:36 
GeneralRe: Socket programming- Response to all client Pinmemberpt140119-Jan-13 8:05 
Questionerror An unhandled exception has occured (XAML Designer in wpf PinmemberMohamad Shahmardan12-Jan-13 3:10 
AnswerRe: error An unhandled exception has occured (XAML Designer in wpf Pinmember ProgramFOX12-Jan-13 3:33 
GeneralRe: error An unhandled exception has occured (XAML Designer in wpf PinmemberMohamad Shahmardan16-Jan-13 3:40 
GeneralRe: error An unhandled exception has occured (XAML Designer in wpf Pinmember ProgramFOX16-Jan-13 5:06 
Questioni cant fill table with data i pull from sql Pinmembera1_shay12-Jan-13 0: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 PinmvpRichard MacCutchan12-Jan-13 3:38 
GeneralRe: i cant fill table with data i pull from sql Pinmembera1_shay12-Jan-13 10:08 
GeneralRe: i cant fill table with data i pull from sql Pinmembermicke.andersson28-Jan-13 4:07 
QuestionInt32rect not found Pinmemberz3ngew11-Jan-13 23:34 
AnswerRe: Int32rect not found Pinmemberz3ngew11-Jan-13 23:45 
AnswerRe: Int32rect not found PinmvpFlorian Rappl11-Jan-13 23:46 
AnswerRe: Int32rect not found PinmvpRichard MacCutchan12-Jan-13 0:07 
GeneralRe: Int32rect not found Pinmemberz3ngew13-Jan-13 6:12 
QuestionProblem With User Controls [modified] PinmemberMah boubeh11-Jan-13 18:58 
AnswerRe: Problem With User Controls PinmvpDave Kreskowiak11-Jan-13 19:00 
GeneralRe: Problem With User Controls PinmemberMah boubeh11-Jan-13 19:09 
AnswerRe: Problem With User Controls PinmvpOriginalGriff11-Jan-13 22:13 
Questionsingle log file for two classes. Pinmembervanikanc11-Jan-13 10:27 
AnswerRe: single log file for two classes. Pinmembermark merrens11-Jan-13 10:58 
GeneralRe: single log file for two classes. PinmemberGarth J Lancaster11-Jan-13 12:56 
GeneralRe: single log file for two classes. Pinmembervanikanc14-Jan-13 3:00 
AnswerRe: single log file for two classes. PinmemberPIEBALDconsult11-Jan-13 13:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.140916.1 | Last Updated 17 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid