Showing posts with label display. Show all posts
Showing posts with label display. Show all posts

Wednesday, March 28, 2012

Web service

I am wanting to display the following:

http://www.nraila.org/Services/Legi...dates.asmx?WSDL

in a datagrid on a website.

Any good place to start in figuring out how to do this? I've found some
RSS stuff on the web, but it doesnt allow you to adjust the content like
loading it into a datagrid would do.

BCGoober:
I got it up and running in about 2 minutes, bet you can do the same.

In VS.Net, open a web project (new or existing), right click on "References"
and select "Add Web reference" enter that URL in the box and hit "go".
Click "Add Referenc"

in your page, drop a datagrid, set the AutoGenerateColumns to true ala:
<asp:DataGrid AutoGenerateColumns="True" Runat="server" ID="grid" /
in your codebehind, just do:
Protected grid As System.Web.UI.WebControls.DataGrid

Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Dim nraila As New org.nraila.www.NRAILANewsandUpdatesSyndication
grid.DataSource = nraila.GetLegislativeUpdates()
grid.DataBind()
End Sub

and you should be all go :)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"Goober" <goober@.christian.net> wrote in message
news:e6EKBrJCFHA.612@.TK2MSFTNGP09.phx.gbl...
> I am wanting to display the following:
> http://www.nraila.org/Services/Legi...dates.asmx?WSDL
> in a datagrid on a website.
> Any good place to start in figuring out how to do this? I've found some
> RSS stuff on the web, but it doesnt allow you to adjust the content like
> loading it into a datagrid would do.
> BC
Karl :
how to add a web reference when there is a proxy ??

"Karl Seguin" wrote:

> Goober:
> I got it up and running in about 2 minutes, bet you can do the same.
> In VS.Net, open a web project (new or existing), right click on "References"
> and select "Add Web reference" enter that URL in the box and hit "go".
> Click "Add Referenc"
> in your page, drop a datagrid, set the AutoGenerateColumns to true ala:
> <asp:DataGrid AutoGenerateColumns="True" Runat="server" ID="grid" />
> in your codebehind, just do:
> Protected grid As System.Web.UI.WebControls.DataGrid
> Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
> Handles MyBase.Load
> Dim nraila As New org.nraila.www.NRAILANewsandUpdatesSyndication
> grid.DataSource = nraila.GetLegislativeUpdates()
> grid.DataBind()
> End Sub
> and you should be all go :)
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
> "Goober" <goober@.christian.net> wrote in message
> news:e6EKBrJCFHA.612@.TK2MSFTNGP09.phx.gbl...
> > I am wanting to display the following:
> > http://www.nraila.org/Services/Legi...dates.asmx?WSDL
> > in a datagrid on a website.
> > Any good place to start in figuring out how to do this? I've found some
> > RSS stuff on the web, but it doesnt allow you to adjust the content like
> > loading it into a datagrid would do.
> > BC
>
Vinay:
To be honest I didn't know...but a google search turned up a couple results
you might find handy:
http://www.devx.com/tips/Tip/17401?trk=DXRSS_DOTNET
and
http://www.codeproject.com/vb/net/w...ce_by_proxy.asp

Hope this helps,
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/

"vinay" <vinay@.discussions.microsoft.com> wrote in message
news:8A4764EA-CFA0-41F3-8B76-C9FB38307CAA@.microsoft.com...
> Karl :
> how to add a web reference when there is a proxy ??
> "Karl Seguin" wrote:
> > Goober:
> > I got it up and running in about 2 minutes, bet you can do the same.
> > In VS.Net, open a web project (new or existing), right click on
"References"
> > and select "Add Web reference" enter that URL in the box and hit "go".
> > Click "Add Referenc"
> > in your page, drop a datagrid, set the AutoGenerateColumns to true ala:
> > <asp:DataGrid AutoGenerateColumns="True" Runat="server" ID="grid" />
> > in your codebehind, just do:
> > Protected grid As System.Web.UI.WebControls.DataGrid
> > Private Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs)
> > Handles MyBase.Load
> > Dim nraila As New org.nraila.www.NRAILANewsandUpdatesSyndication
> > grid.DataSource = nraila.GetLegislativeUpdates()
> > grid.DataBind()
> > End Sub
> > and you should be all go :)
> > Karl
> > --
> > MY ASP.Net tutorials
> > http://www.openmymind.net/
> > "Goober" <goober@.christian.net> wrote in message
> > news:e6EKBrJCFHA.612@.TK2MSFTNGP09.phx.gbl...
> > > I am wanting to display the following:
> > > > http://www.nraila.org/Services/Legi...dates.asmx?WSDL
> > > > in a datagrid on a website.
> > > > Any good place to start in figuring out how to do this? I've found
some
> > > RSS stuff on the web, but it doesnt allow you to adjust the content
like
> > > loading it into a datagrid would do.
> > > > BC

Web service

I am wanting to display the following:
http://www.nraila.org/Services/Legi...dates.asmx?WSDL
in a datagrid on a website.
Any good place to start in figuring out how to do this? I've found some
RSS stuff on the web, but it doesnt allow you to adjust the content like
loading it into a datagrid would do.
BCGoober:
I got it up and running in about 2 minutes, bet you can do the same.
In VS.Net, open a web project (new or existing), right click on "References"
and select "Add Web reference" enter that URL in the box and hit "go".
Click "Add Referenc"
in your page, drop a datagrid, set the AutoGenerateColumns to true ala:
<asp:DataGrid AutoGenerateColumns="True" Runat="server" ID="grid" />
in your codebehind, just do:
Protected grid As System.Web.UI.WebControls.DataGrid
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Dim nraila As New org.nraila.www.NRAILANewsandUpdatesSyndication
grid.DataSource = nraila.GetLegislativeUpdates()
grid.DataBind()
End Sub
and you should be all go :)
Karl
MY ASP.Net tutorials
http://www.openmymind.net/
"Goober" <goober@.christian.net> wrote in message
news:e6EKBrJCFHA.612@.TK2MSFTNGP09.phx.gbl...
> I am wanting to display the following:
> http://www.nraila.org/Services/Legi...dates.asmx?WSDL
> in a datagrid on a website.
> Any good place to start in figuring out how to do this? I've found some
> RSS stuff on the web, but it doesnt allow you to adjust the content like
> loading it into a datagrid would do.
> BC
Karl :
how to add a web reference when there is a proxy '
"Karl Seguin" wrote:

> Goober:
> I got it up and running in about 2 minutes, bet you can do the same.
> In VS.Net, open a web project (new or existing), right click on "Reference
s"
> and select "Add Web reference" enter that URL in the box and hit "go".
> Click "Add Referenc"
> in your page, drop a datagrid, set the AutoGenerateColumns to true ala:
> <asp:DataGrid AutoGenerateColumns="True" Runat="server" ID="grid" />
> in your codebehind, just do:
> Protected grid As System.Web.UI.WebControls.DataGrid
> Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
> Handles MyBase.Load
> Dim nraila As New org.nraila.www.NRAILANewsandUpdatesSyndication
> grid.DataSource = nraila.GetLegislativeUpdates()
> grid.DataBind()
> End Sub
> and you should be all go :)
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
> "Goober" <goober@.christian.net> wrote in message
> news:e6EKBrJCFHA.612@.TK2MSFTNGP09.phx.gbl...
>
>
Vinay:
To be honest I didn't know...but a google search turned up a couple results
you might find handy:
http://www.devx.com/tips/Tip/17401?trk=DXRSS_DOTNET
and
http://www.codeproject.com/vb/net/w...ce_by_proxy.asp
Hope this helps,
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"vinay" <vinay@.discussions.microsoft.com> wrote in message
news:8A4764EA-CFA0-41F3-8B76-C9FB38307CAA@.microsoft.com...
> Karl :
> how to add a web reference when there is a proxy '
> "Karl Seguin" wrote:
>
"References"
System.EventArgs)
some
like

Monday, March 26, 2012

web service dataset

I have a web service that calls SP's and returning a dataset. At times the
data is coming back as 0 and if that is the case i need to display nothing
just leaving it blank. With accessing data like this how can I check to see
if the data is 0?

example:

<Books>
<computers>
<type>Programming</type>
<ISDN>0</ISDN>
</computer>
</Books
if ISDN is 0 i need to display nothing. how can i do that?
I'm using a datalist to display the output. and calling the web method in
the web service.
vb.net code to all the web service

public GetAllBooks()
dim me as getbooks.book = new getbooks.book
dim ds as new dataset
dim dvBook as new dataview

ds = me.GetBooks()
dvBook = ds.table(0).defaultView
dlBooks.datasource = dbBook
dlBook.databind

end subHi Mike,

As for the DataSet's checking problem you mentioned, I think Shailesh's
suggestion that use the select method of the datatable is considerable if
the the <ISDN> is just a simple column in the DAtaTable. Also, since the
DataSet has GetXml method which can help return the dataset's xml
representation, you can use the APIS under the System.Xml namespace to
query this <ISDN> element (such as using the SelectSingleNode with
specified xpath). Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

web service dataset

I have a web service that calls SP's and returning a dataset. At times the
data is coming back as 0 and if that is the case i need to display nothing
just leaving it blank. With accessing data like this how can I check to see
if the data is 0?
example:
<Books>
<computers>
<type>Programming</type>
<ISDN>0</ISDN>
</computer>
</Books>
if ISDN is 0 i need to display nothing. how can i do that?
I'm using a datalist to display the output. and calling the web method in
the web service.
vb.net code to all the web service
public GetAllBooks()
dim me as getbooks.book = new getbooks.book
dim ds as new dataset
dim dvBook as new dataview
ds = me.GetBooks()
dvBook = ds.table(0).defaultView
dlBooks.datasource = dbBook
dlBook.databind
end subFrom what I understand you want have to filter the rows returned from the
webservice. Why don;t you try using ds.Tables[0].Select ("ISBN !=0")
and bind the returns rows array.
Thanks
"Mike" wrote:

> I have a web service that calls SP's and returning a dataset. At times the
> data is coming back as 0 and if that is the case i need to display nothing
> just leaving it blank. With accessing data like this how can I check to se
e
> if the data is 0?
> example:
> <Books>
> <computers>
> <type>Programming</type>
> <ISDN>0</ISDN>
> </computer>
> </Books>
> if ISDN is 0 i need to display nothing. how can i do that?
> I'm using a datalist to display the output. and calling the web method in
> the web service.
> vb.net code to all the web service
> public GetAllBooks()
> dim me as getbooks.book = new getbooks.book
> dim ds as new dataset
> dim dvBook as new dataview
> ds = me.GetBooks()
> dvBook = ds.table(0).defaultView
> dlBooks.datasource = dbBook
> dlBook.databind
> end sub
>
>
>
Hi Mike,
As for the DataSet's checking problem you mentioned, I think Shailesh's
suggestion that use the select method of the datatable is considerable if
the the <ISDN> is just a simple column in the DAtaTable. Also, since the
DataSet has GetXml method which can help return the dataset's xml
representation, you can use the APIS under the System.Xml namespace to
query this <ISDN> element (such as using the SelectSingleNode with
specified xpath). Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx