Click here to Skip to main content
       

Mobile

 
AnswerRe: remove selected row in Listview android PinmemberPrasad Khandekar30-Apr-13 5:46 
QuestionANDROID+Sqlserver 2008 Pinmemberkuldeep vatsal13-Mar-13 21:39 
AnswerRe: ANDROID+Sqlserver 2008 PinmvpRichard MacCutchan13-Mar-13 23:33 
AnswerRe: ANDROID+Sqlserver 2008 Pinmemberaamir rafiq29-Mar-13 1:15 
QuestionAndroid Socket Client PinmemberKumar Himanshu13-Mar-13 2:58 
AnswerRe: Android Socket Client PinprofessionalPrasad Khandekar2-May-13 6:25 
QuestionPhoneGap Applications PinmemberSRSHINDE12-Mar-13 23:06 
QuestionPIC-32 UART Receives Only Ten Bytes Then No More PinmemberC-P-User-38-Mar-13 12:16 
Questionhow the android mobile can fetch a voice from application on it and send it by calling Pinmembersaad20005-Mar-13 10:24 
QuestionAPP Demographics Pinmembermauricemcse1-Mar-13 8:28 
Questionopen layout (Main.axml) in disigner in VS2010 Pinmemberjojoba201126-Feb-13 0:25 
QuestionAndroid renderscript. PinmemberBupeChombaDerrick25-Feb-13 4:48 
NewsSolved: PinmemberBupeChombaDerrick26-Feb-13 23:26 
Questionandroid + C# + SQL Server 2008 Pinmemberjojoba201124-Feb-13 22:52 
Hi world,
i am using this code to get info from my sql server 2008.
this is working well in "Debug" mode but cannot run app in mobile(only release work for mobile) SO when i wanna to (Release mode) release it (.apk) and send to my samsung android mobile ,and when i run the app and click on button i get error :
Unhandled Exception CODEPAGE=”1256″ not supported
 
i think it doesnt support
IDbConnection
in Release !
 

and my code is :
 
 void button_Click(object sender, EventArgs e)
        {
           
                TextView txts = FindViewById<TextView>(Resource.Id.txt);
                txts.Text = "Salam Ali Joon !";
                string namess = "";
                string connectionString = "Server=217.66.216.77,1633;" +
                     
                    "Database=testinDB;" + "User ID=testing;" + "Password=arew;";
                try
                {    
            IDbConnection dbcon;
                using (dbcon = new SqlConnection(connectionString))
                {
                    dbcon.Open();  
                    using (IDbCommand dbcmd = dbcon.CreateCommand())
                    {
                        string sql = " SELECT * " +
                                     " FROM persons.[user] ";
                        dbcmd.CommandText = sql;
                        using (IDataReader reader = dbcmd.ExecuteReader())
                        {
                            while (reader.Read())
                            {
                                string FirstName = (string)reader["UserName"];
                                namess = "user name is : " + FirstName;
                                //string LastName = (string)reader["LastName"];
                                //namess += "Name: " +FirstName + " " + LastName;
                            }
                            reader.Close();
                            dbcon.Close();
                        }
                    }
                }
                txts.Text = namess;
            }
            catch (Exception ex)
            {
                txts.Text = ex.Message;
            }
        }
 
HELP Please !
NewsSolved ! Pinmemberjojoba201125-Feb-13 21:04 
Questionwanna Email Address Hossein Khalaj Pinmemberjojoba201118-Feb-13 1:04 
AnswerRe: wanna Email Address Hossein Khalaj PinprotectorPete O'Hanlon18-Feb-13 1:14 
QuestionUse MessageBox In the Mono for Android in the Visual Studio 2010 PinmemberRafael Soares de Almeida13-Feb-13 10:52 
AnswerRe: Use MessageBox In the Mono for Android in the Visual Studio 2010 PinprofessionalPrasad Khandekar2-May-13 20:35 
QuestionWhich tablet platform is most secure? Pinmemberoleg638-Feb-13 9:00 
AnswerRe: Which tablet platform is most secure? PinmvpRichard MacCutchan8-Feb-13 23:45 
GeneralRe: Which tablet platform is most secure? Pinmemberoleg6311-Feb-13 5:50 
GeneralRe: Which tablet platform is most secure? PinmvpRichard MacCutchan11-Feb-13 6:06 
GeneralRe: Which tablet platform is most secure? Pinmemberoleg6311-Feb-13 6:09 
GeneralRe: Which tablet platform is most secure? PinmvpRichard MacCutchan11-Feb-13 6:12 
GeneralRe: Which tablet platform is most secure? PinmvpRichard MacCutchan11-Feb-13 6:13 
GeneralRe: Which tablet platform is most secure? Pinmemberoleg6311-Feb-13 6:49 
GeneralRe: Which tablet platform is most secure? PinmvpRichard MacCutchan11-Feb-13 6:59 
GeneralRe: Which tablet platform is most secure? Pinmemberoleg6311-Feb-13 7:01 
Questionc# mobile tcp connection to printer Pinmemberkubi0813-Feb-13 23:56 
AnswerRe: c# mobile tcp connection to printer Pinmemberkubi0814-Feb-13 2:00 
QuestionGraphic library for WM6 Pinmembereduardods29-Jan-13 6:55 
QuestionIs Mono for Android worth the cost? PinmemberMarc Merritt28-Jan-13 6:16 
AnswerRe: Is Mono for Android worth the cost? PinmemberAlbert Holguin5-Feb-13 15:39 
GeneralRe: Is Mono for Android worth the cost? PinmemberMarc Merritt6-Feb-13 4:00 
GeneralRe: Is Mono for Android worth the cost? PinmemberAlbert Holguin6-Feb-13 5:47 
Questionmonodroid Pinmembernika200826-Jan-13 8:07 
AnswerRe: monodroid Pinmembernika200826-Jan-13 11:45 
Questionmonodroid Pinmembernika200826-Jan-13 2:44 
QuestionBackup SMS on Android PinmemberSwinkaran25-Jan-13 15:28 
QuestionMobile Pingroupjackson kumar17-Jan-13 20:57 
AnswerRe: Mobile PinprotectorPete O'Hanlon17-Jan-13 22:19 
AnswerRe: Mobile PinmvpRichard MacCutchan18-Jan-13 0:22 
AnswerRe: Mobile PinmemberSwinkaran25-Jan-13 15:26 
QuestionAbout mobile web debugger Pinmembertidelgl13-Jan-13 20:20 
QuestionAlameda Locksmith PinmemberAntoneRichmond8-Jan-13 22:54 
QuestionProblem in serializing a class when calling wsdl of webservice using ksoap2 - ANDROID Pinmemberjinshadb6-Jan-13 20:10 
QuestionHTML5 mobile development Query PinmemberNitin Superbyte23-Dec-12 21:46 
AnswerRe: HTML5 mobile development Query PinmemberSRSHINDE13-Mar-13 21:11 
QuestionEncoding PinmemberFreaKyboard23-Dec-12 21:23 

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.1411023.1 | Last Updated 24 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid