Click here to Skip to main content
14,923,204 members

Comments by Patel Shweta (Top 14 by date)

Patel Shweta 28-May-14 4:19am View
   
ok sure
Patel Shweta 8-May-14 3:54am View
   
my activity.cs file code is:

using System;

using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using webserviceexample.com.cdy.ws;
using System.Net;
using System.IO;
using System.Text;

namespace webserviceexample
{
[Activity(Label = "webserviceexample", MainLauncher = true, Icon = "@drawable/icon")]
public class Activity1 : Activity
{
int count = 1;

protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);

// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);

// Get our button from the layout resource,
// and attach an event to it
Button button = FindViewById<Button>(Resource.Id.MyButton);
TextView lable = FindViewById<textview>(Resource.Id.lbltxt);
com.cdy.ws.Androidhelloo dd = new com.cdy.ws.Androidhelloo();
lable.Text = dd.HelloWorld();
button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };
}
}
}


My webservice code is

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace AndroidHello
{
///
/// Summary description for Androidhelloo
///

[WebService(Namespace = "http://127.0.0.1:8012/Androidhelloo.asmx")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
[System.Web.Script.Services.ScriptService]

public class Androidhelloo : System.Web.Services.WebService
{
[SoapDocumentMethod(Action = "http://127.0.0.1:8012/Androidhelloo.asmx")]
[WebMethod]
public string HelloWorld()
{

return "Hello World";
}
public string Namespace { get; set; }
}

}
Patel Shweta 8-May-14 3:26am View
   
ya sure
Patel Shweta 10-Mar-14 8:34am View
   
:(
Patel Shweta 10-Mar-14 8:25am View
   
no.I want to Decode generated Captcha
Patel Shweta 22-Jan-14 7:04am View
   
I know your answer is right But I want to Create Image Resize class using Class file. @ Nirav Prabtani
Patel Shweta 13-Nov-13 22:29pm View
   
public void update(propertylayer p)
{
cmd = new SqlCommand("updatedata", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@id", p.id);
cmd.Parameters.AddWithValue("@name", p.name);
cmd.Parameters.AddWithValue("@city", p.city);
cmd.Parameters.AddWithValue("@state", p.state);
cmd.Parameters.AddWithValue("@birthdate", p.birthdate);
cmd.Parameters.AddWithValue("@education", p.education);
cmd.Parameters.AddWithValue("@address", p.address);
cmd.Parameters.AddWithValue("@gender", p.gender);
cmd.Parameters.AddWithValue("@hobby", p.hobby);
con.Open();
cmd.ExecuteNonQuery();
con.Close();


}
Patel Shweta 13-Nov-13 14:19pm View
   
i dont get any error but its not upadating data in my table
i dont why whats the mistake in my code. please give ans.
Patel Shweta 13-Nov-13 14:17pm View
   
Deleted
no i dont get any error.
Patel Shweta 13-Jun-13 13:04pm View
   
Thank you .. its working :)
Patel Shweta 13-Jun-13 9:14am View
   
still not display result in lable
Patel Shweta 26-Apr-13 9:31am View
   
from above coding i can easily edit my profile but when i click on second button (save) to save my updated data in database it gives this error. may be my 2 button click event code is wrong.
Patel Shweta 26-Apr-13 9:28am View
   
Upid is user profile id in my database which is set to auto increment.
Patel Shweta 26-Apr-13 9:27am View
   
updatedata query causing error. In my database Upid is user profile id which is auto increment.