|
I guess you intend on consuming a number of web services and then showing the data from those services in your page ? I would imagine then what you need to do, is define the webservices you want to get data from, then look at the format of their data. A collection of nodes, as you'd get by taking a piece of XML, putting it in an XMLDocument and calling SelectNodes on it with some XPath, is a valid data source for a control such as a grid view or data grid, so I'd imagine you could get a list of items, show it and have pages you link to that show the details of a specific item.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello Christian,
That is correct...I am consuming a number of web services and showing it all in one project.
At the moment I am experimenting with the Flickr API, and i can wire the web service up to my application, authenticate it , that is fine. However in this one instance I have the urls of the flickr results defined by a search engine.
For example i type in "food" in the textbox and click search and the urls come up.
My problem i guess is trying to wire up the urls into a datalist/repeater so that I can display the images. I have thought of creating an xml file each time a search is generated so that the urls can be stored , which in turn can be used as the datasource by the repeater. Is there a better way of doing this? Many thanks for your response.
Best Regards
|
|
|
|
|
Hi
I am new to ASP and have the following code on my html page. It is basically an invitation to a google group. You type in your email and then hit subscribe. How do I port this to asp?
<table align="center" border="0" cellspacing="0" style="padding-right: 5px; padding-left: 5px;
padding-bottom: 5px; padding-top: 5px; background-color: #fff; color: #000000;">
<tr>
<td>
<img alt="Google Groups" height="26" src="http://groups.google.com/groups/img/3nb/groups_bar.gif"
width="132" />
</td>
</tr>
<tr>
<td style="padding-left: 5px">
<b>Subscribe to OkaloosaRugby</b>
</td>
</tr>
<form action="http://groups.google.com/group/okaloosarugby/boxsubscribe">
<tr>
<td style="padding-left: 5px">
Email:
<input name="email" type="text" />
<input name="sub" type="submit" value="Subscribe" />
</td>
</tr>
</form>
<tr>
<td align="right">
<a href="http://groups.google.com/group/okaloosarugby">Visit this group</a>
</td>
</tr>
</table>
|
|
|
|
|
Are you doing ASP, or ASP.NET ? They are different.
You can just type this in directly, the form will submit with the info just as you want it. ASP.NET just emits HTML, if you want to use HTML directly, you always can, there's actually nothing else your browser understands.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I can't figure out why I'm getting this error, any ideas? I also get 'Virtual Directory does not allow content to be listed' until I restart VS2008 SP1.
Has anyone encountered similar issues?
Error:
Cannot find ContentPlaceHolder 'ContentPlaceHolder1' in the master page '/TestWebSite/WroxMozilla.master', verify content control's ContentPlaceHolderID attribute in the content page.
Wrox.master
<![CDATA[<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Wrox.master.cs" Inherits="Wrox" %>]]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:contentplaceholder id="head" runat="server" xmlns:asp="#unknown">
</asp:contentplaceholder>
</head>
<body>
<form id="form1" runat="server">
<div>
<table cellpadding="3" border="1">
<tr bgcolor="silver">
<td colspan="2">
<h1>My Company Home Page</h1>
</td>
</tr>
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1" xmlns:asp="#unknown">
runat="server">
</asp:contentplaceholder>
</td>
<td>
<asp:contentplaceholder id="ContentPlaceHolder2" xmlns:asp="#unknown">
runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td colspan="2">
Copyright 2008 - My Company
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
WroxMozilla.Master
<![CDATA[<%@ Master Language="C#" MasterPageFile="~/Wrox.master" AutoEventWireup="true" CodeFile="WroxMozilla.master.cs" Inherits="WroxMozilla" %>]]>
<asp:content id="Content1" contentplaceholderid="head" runat="Server" xmlns:asp="#unknown">
Mozilla!!
</asp:content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="server" xmlns:asp="#unknown">
</asp:content>
<asp:content id="Content3" contentplaceholderid="ContentPlaceHolder2" runat="server" xmlns:asp="#unknown">
</asp:content>
Default.aspx
<![CDATA[<%@ Page Title="" Language="C#" MasterPageFile="~/Wrox.master" Mozilla:MasterPageFile="~/WroxMozilla.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>]]>
<asp:content id="Content1" contentplaceholderid="head" runat="Server" xmlns:asp="#unknown">
</asp:content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="Server" xmlns:asp="#unknown">
</asp:content>
<asp:content id="Content3" contentplaceholderid="ContentPlaceHolder2" runat="Server" xmlns:asp="#unknown">
</asp:content>
Jon
|
|
|
|
|
Use the "Ignore HTML" option when you post markup code. Now I can't tell exactly which markup is yours, which was added by the forum, and what it is that isn't visible.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
GIVE 3 TIER ARCHITECTURE INTRODUCTION WITH SMALL EXAMPLE PROGRAM IN ASP.NET
|
|
|
|
|
Do your own homework. Try google.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Wow - they teach 3 tier ASP.NET projects in schools now ? Too bad you're going to fail.
Your caps lock key is stuck, too.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
GIVE ME ALL YOUR PATHETIC PAYCHECKS FOR THE REST OF YOUR LIFE.
Sounds unreasonable, doesn't it?
|
|
|
|
|
Unreasonable? No, not a chance! Standard compensation for answering a dumb question or demand.
|
|
|
|
|
leckey wrote: GIVE ME ALL YOUR PATHETIC PAYCHECKS FOR THE REST OF YOUR LIFE.
Hey, I could spot you a $50 if you need it. That's about all we're talking about, right ? :P
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
http://www.linuxjournal.com/article/3508
|
|
|
|
|
HELLO!
I WANT TO KNOW THAT HOW TO INTIGRATE WITH PAY PAL IN OUR SITE?
PLZ REPLY WITH SMALL EXAMPLE
|
|
|
|
|
Well, have you considered visiting the Payal site? Tey tell you exactly what to do
AND TURN YOUR CAPS LOCK OFF
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Surely this means you're not doing homework. Contact your client, tell them that the downside of outsourcing is that they will pick a low bid and end up dealing with someone who is totally clueless. Admit you lied, and give them their deposit back. Then, perhaps you won't go to hell when you die.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
YOU ARE A GREAT EXAMPLE OF AN IDIOT WHO WON'T DO THEIR OWN WORK.
I read your past posts. Take on another career.
|
|
|
|
|
I don't know if this is the correct place to post this or even if this is to much to ask. If so sorry and I will not do it again. Below is the HTML output from an ASP gridview. I am using the css friendly browser. I have searched every where and can only find basic css articles. Can anyone either help me or point me in the right direction on making a proper css file for this gridview?
class="AspNet-GridView" id="ctl00_ContentPlaceHolder1_GridViewCMInformation">
<table cellpadding="0" cellspacing="0" summary="">
<thead>
<tr>
<th scope="col"> </th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col">UserID</th>
<th scope="col">Password</th>
</tr>
</thead>
<tbody>
<tr>
<td>
</td>
<td>
<input name="ctl00$ContentPlaceHolder1$GridViewCMInformation$ctl02$FirstName" type="text" value="test" id="ctl00_ContentPlaceHolder1_GridViewCMInformation_ctl02_FirstName" style="width:200px;" />
</td>
<td>
<input name="ctl00$ContentPlaceHolder1$GridViewCMInformation$ctl02$LastName" type="text" value="test1" id="ctl00_ContentPlaceHolder1_GridViewCMInformation_ctl02_LastName" style="width:200px;" />
</td>
<td>
<input name="ctl00$ContentPlaceHolder1$GridViewCMInformation$ctl02$Email" type="text" value="test2" id="ctl00_ContentPlaceHolder1_GridViewCMInformation_ctl02_Email" style="width:200px;" />
</td>
<td>
<input name="ctl00$ContentPlaceHolder1$GridViewCMInformation$ctl02$UserID" type="text" value="test3" id="ctl00_ContentPlaceHolder1_GridViewCMInformation_ctl02_UserID" style="width:200px;" />
</td>
<td>
<input name="ctl00$ContentPlaceHolder1$GridViewCMInformation$ctl02$Password" type="text" value="test4" id="ctl00_ContentPlaceHolder1_GridViewCMInformation_ctl02_Password" style="width:200px;" />
</td>
</tr>
<tr class="AspNet-GridView-Alternate">
lt;/tr>
|
|
|
|
|
The following code is not running, somehow, any idea why?
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack) {
Label1.Text = System.Guid.NewGuid().ToString();
}
}
2. I'm also getting 'This Virtual Directory does not allow contents to be listed.' When I run the solution. The solution includes a MasterPage and a webform named default.aspx that uses the MasterPage:
<![CDATA[<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>]]>
Ref:
Code listing in a reference guide.
Jon
|
|
|
|
|
Which line is throwing error? Object reference not set to an instance of an object will come only when the object is not initialized. Step into the code and see which object is becoming NULL.
|
|
|
|
|
Dear All, I am new to ASP.Net, i want to develop simple application in vs 2005 using ASP.Net with c#.
I have a datagrid view in my Page. How can i get the cell value of datagrid.
this is becuase i want to do update and i dont know how to get the cell value in datagrid while updating.
second how can i create a website in vs 2003?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Abdul Rahman Hamidy wrote: How can i get the cell value of datagrid.
Loop through the data grid rows and get the values.
Abdul Rahman Hamidy wrote: second how can i create a website in vs 2003?
Are you not seeing an option in File menu?
|
|
|
|
|
When u using VS.net 2005 its better to use GridView rather than DataGrid, anyway i hope u have set value DataKeyNames (May be ID) in the GridView, by setting that value u can access particular object.
This answer is for question..
In the RowCommand of GridView
string _value=GridView1.Rows[int.Parse(e.CommandArgument.ToString())].Cells[1].Text.ToString();
i hope this will help u.
|
|
|
|
|
My problem is kind of javascript related thing I guess. I have this datalist stuff and On it there are some titles being read from database. its ok so far. But I have this link for each title so when a user clicks on that link (READ MORE link) there opens a new window above all windows and the news show up there.
I've used the code below in the OnClientClick event of my READ MORE link :
<asp:LinkButton ID="LinkButton4" runat="server"
CausesValidation="False" OnClientClick="windows.showModalDialog('news.aspx, titlebar="no", fullscreen="false", width="300", height="300", toolbar="no", resizable="false", menubar="no"');">read more</asp:LinkButton>
The qoueted part is a little problamatic I guess. I mean I used qouets, i removed them, I changed the captial letters and ... but no result.
If possible please give me the proper solution
Proper Prepration Prevents Poor Performance! h
|
|
|
|
|
The second argument to showModalDialog should be like this:
OnClientClick="windows.showModalDialog('news.aspx, 'menubar=0, scrollbars=1, resizable=1, toolbar =0, width = 390, height = 500');"
Rules biler
modified on Sunday, February 15, 2009 2:35 PM
|
|
|
|