Web Service will not Post Data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nodavies

    #1

    Web Service will not Post Data

    Hi all,

    Basically I have a Web Service that pulls data from a SQL Server database
    without a problem when called by itself. However, when I call it from this
    aspx all I get is the title. Anyone have any ideas?

    <%@ Page Language="vb" AutoEventWireup ="false"
    Codebehind="Dis playMaterial.as px.vb" Inherits="Displ ayMaterial.WebF orm1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <script language="VB" runat="server">
    Sub Page_Load(Sourc e As Object, E As EventArgs)
    Dim objMaterialServ ice As New DisplayMaterial .localhost.Mate rial()

    dgrdMaterial.Da taSource = objMaterialServ ice.getMaterial ()
    dgrdMaterial.Da taBind()
    End Sub
    </script>

    <HTML>
    <HEAD>
    <title>Displa y Material</title>
    </HEAD>
    <body>
    <h2>Material</h2>
    <asp:DataGrid ID="dgrdMateria l" Runat="server" />
    </body>
    </HTML>
Working...