Click here to Skip to main content
15,906,816 members
Home / Discussions / C#
   

C#

 
GeneralRe: Learn SQL to LINQ ( Visual Representation ) Pin
Hiren solanki15-Dec-10 0:03
Hiren solanki15-Dec-10 0:03 
GeneralRe: Learn SQL to LINQ ( Visual Representation ) Pin
Pranay Rana15-Dec-10 0:42
professionalPranay Rana15-Dec-10 0:42 
GeneralRe: Learn SQL to LINQ ( Visual Representation ) Pin
thatraja15-Dec-10 0:29
professionalthatraja15-Dec-10 0:29 
GeneralRe: Learn SQL to LINQ ( Visual Representation ) Pin
Pranay Rana15-Dec-10 0:42
professionalPranay Rana15-Dec-10 0:42 
GeneralRe: Learn SQL to LINQ ( Visual Representation ) Pin
Pete O'Hanlon15-Dec-10 0:45
mvePete O'Hanlon15-Dec-10 0:45 
QuestionBulk insert data Pin
anishkannan14-Dec-10 18:31
anishkannan14-Dec-10 18:31 
AnswerRe: Bulk insert data Pin
Abhinav S14-Dec-10 18:39
Abhinav S14-Dec-10 18:39 
AnswerRe: Bulk insert data Pin
RaviRanjanKr14-Dec-10 18:51
professionalRaviRanjanKr14-Dec-10 18:51 
GeneralRe: Bulk insert data Pin
anishkannan14-Dec-10 19:18
anishkannan14-Dec-10 19:18 
Questionhow to capture the event when the monitor close [modified] Pin
scoket14-Dec-10 15:49
scoket14-Dec-10 15:49 
AnswerRe: how to capture the event when the monitor close Pin
Hiren solanki14-Dec-10 19:35
Hiren solanki14-Dec-10 19:35 
GeneralRe: how to capture the event when the monitor close Pin
scoket14-Dec-10 20:35
scoket14-Dec-10 20:35 
GeneralRe: how to capture the event when the monitor close Pin
Dave Kreskowiak15-Dec-10 2:09
mveDave Kreskowiak15-Dec-10 2:09 
GeneralRe: how to capture the event when the monitor close Pin
scoket15-Dec-10 15:00
scoket15-Dec-10 15:00 
GeneralRe: how to capture the event when the monitor close Pin
Dave Kreskowiak15-Dec-10 16:18
mveDave Kreskowiak15-Dec-10 16:18 
AnswerRe: how to capture the event when the monitor close Pin
Pete O'Hanlon15-Dec-10 2:54
mvePete O'Hanlon15-Dec-10 2:54 
Questionarray [modified] Pin
jim haras14-Dec-10 15:33
jim haras14-Dec-10 15:33 
AnswerRe: array Pin
PIEBALDconsult14-Dec-10 18:09
mvePIEBALDconsult14-Dec-10 18:09 
AnswerRe: array Pin
Abhinav S14-Dec-10 18:47
Abhinav S14-Dec-10 18:47 
AnswerRe: array Pin
Hiren solanki14-Dec-10 19:42
Hiren solanki14-Dec-10 19:42 
GeneralRe: array Pin
jim haras15-Dec-10 5:47
jim haras15-Dec-10 5:47 
GeneralRe: array Pin
jim haras16-Dec-10 16:05
jim haras16-Dec-10 16:05 
Let me make it easier for you to understand what i want to do. in my web page i use a dropdown list which contains the customer id column of the customer data table as input and i try to call the web service that i posted above. i want the array that the web service returns to be displayed in a grid view( or any other way for that matter but i prefer the grid view ). this is what i wrote:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;


public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{

Array getinfo = new Array[6];

try
{


localhost.WebService1 myserv1 = new localhost.WebService1();
getinfo = myserv1.GetCustomer(DropDownList1.Text);

GridView1.DataSource = getinfo;
GridView1.DataBind();
}
catch (Exception ex)
{

Label8.Text = ("Unable to find user because" + ex.Message);
}


}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{

}
}


and it returns nothing.Thanks in advance
QuestionAction keyword question Pin
SciGama14-Dec-10 11:24
SciGama14-Dec-10 11:24 
AnswerRe: Action keyword question Pin
Manfred Rudolf Bihy14-Dec-10 12:35
professionalManfred Rudolf Bihy14-Dec-10 12:35 
GeneralRe: Action keyword question Pin
Henry Minute14-Dec-10 12:36
Henry Minute14-Dec-10 12:36 

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.