|
I found the reason of the problem and solved it.
Problem was in class ResponseCode . It's properties ErrorCode and ErrorDescription has ONLY get accessor while set accessor is needed to be shown in XML. I just added set accessor and result was as expected.
Regards
Aftab Sindhi
.NET Application Developer
U.A.E
|
|
|
|
|
Hello Friends,
I want to develop a news section on the site, this section will collect the latest news from some of web servise or like resource in XML or related format and will display in my developed news section.
How can I do this using C# & ASP.Net 2.0 ? If anyone of you have any idea, please answer me. I will be much thankful to you.
Many thanks in advance.
Navin C Pandit
E-Mail: navin2k6@gmail.com
|
|
|
|
|
Navin C. Pandit wrote: E-Mail: navin2k6@gmail.com
Bad idea. Expect loads of spam.
Navin C. Pandit wrote: this section will collect the latest news from some of web servise
Have a look at the various news providers, most have rss feeds which you can use.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Thanks lot for your nice responce n quick answer
|
|
|
|
|
|
This is by far the easiest method.
Anyone trying to implement this must be aware that directory on the server the application wants to use must have it's asp.net trust levels lowered to 'medium' - most server administrators will have this set to 'high' - which is probably default.
This was a stumbling block I came across when I tried using this.
|
|
|
|
|
John Bracey wrote: This is by far the easiest method.
And the most smartest one... As one dont need to find latest news as there are already tons of RSS / ATOM feeds available for free.
John Bracey wrote: application wants to use must have it's asp.net trust levels lowered to 'medium'
Yes .. good addition. Thanks.
|
|
|
|
|
Thanks lot for your nice responce n quick answer
|
|
|
|
|
You are most welcome...
Dont forget to click "Good Answer" if you like the solution.
|
|
|
|
|
Hii,
I am getting this error while using RSS feed on my application:
Error: "The remote server returned an error: (407) Proxy Authentication Required"
I am using yahoo rss feed, the XPath link is : http://rss.news.yahoo.com/rss/topstories
Plz suggest me, if you ahve any answer.
Thanks.
|
|
|
|
|
|
Navin C. Pandit wrote: How can I do this using C# & ASP.Net 2.0 ?
You can do it using RSS Feed as all suggested or you can read content from web sites using HTTPRequest and HTTPResponse. Now how to display them in your web sites depends on you.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Thanks a lot for your nice answer.
|
|
|
|
|
I have searched in google to get information about "forgot password ?". but didn't satisfy.i need help for this code. i want code for forgot password. I have no idea how to send mail to the user email account to get new password. plz any one send me code and suggest me how to do it.
|
|
|
|
|
|
vinci007 wrote: i want code for forgot password.
No one here is going to provide the code to you.
Let's talk about the very basic implementation logic:
1. Create a module which will verify the existence of the user email which was used by him while registering with your website.
2. If email address exists, generate a random alphanumeric password (I hope you are not storing the user password in readable format) and send it to user's email.
3. Also, update the user's existing password with the new one just created in step 2.
4. User will receive his new password in his mail and can use the same for logging in.
|
|
|
|
|
I got the idea...I need to know the way to send the email to the user who forgot his password .......is it thru System.Web.Mail ,...if yes ...then how to do it......?
plz help
|
|
|
|
|
You can refer the link provided by Abhishek Sur.
|
|
|
|
|
|
You Can Go with The above Answers ..!
If You are using Forms authentication ,There is inbuilt control forget password control .You can make use of it..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
could anyone explain how we can display data horizontally in repeater control
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Just use proper html in the ItemTemplate.
Say you write like :
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
NAME : <%# Eval("NAME") %></td>
<td>
PASSWORD: <%# Eval("PASSWORD") %> </td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
Here we display data horizontally using table.
|
|
|
|
|
A bit of modification in your code:
<HeaderTemplate>
<table>
<tr>
</HeaderTemplate>
<ItemTemplate>
<td>
NAME : <%# Eval("NAME") %></td>
<td>
PASSWORD: <%# Eval("PASSWORD") %> </td>
</ItemTemplate>
<FooterTemplate>
</tr>
</table>
</FooterTemplate>
|
|
|
|
|
Hii,
This may help you. If you want to bind data horizontally:
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<%#Eval("Name") %>
</ItemTemplate>
</asp:Repeater>
and this will bind vertically:
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div>
<%#Eval("Name") %>
</div>
</ItemTemplate>
</asp:Repeater>
|
|
|
|
|
Hi All
I need to implement voice module in my existing ASP.NET application.
Like when the page will open user will get the voice command instructions to use the application. (I don't want to use Microsoft agents for this because as per my knowledge microsoft has removed this technology in Windows7 OS and its later OS versions.)
Can anyone tell me what should I do?
Please also give me some idea about Voice XML and any other way to implement this feature.
Note: My web application is in ASP.NET 3.5 and C#.
|
|
|
|