|
Hi. I want to implement the xml feed from Twitter on my site, but I can't get it working.
I think the problem is related to the XPath, because the datalist doesn’t show any entries at all.
MidText is btw just a function that crops the text to a certain amount of characters, and replaces some characters if necessary.
Any suggestions on what I’m doing wrong would be most appreciated.
<asp:XmlDataSource ID="XmlDataSourceTwitter" XPath="/feed/entry[position() < 9]"
runat="server" DataFile="http://search.twitter.com/search.atom?lang=no&q=mysearch">
</asp:XmlDataSource>
<asp:DataList ID="TwitterFeed" runat="server" DataSourceID="XmlDataSourceTwitter">
<ItemTemplate>
<%#(DateTime.Parse(XPath("published").ToString())).ToString("d", new System.Globalization.CultureInfo("nb-NO", true))%>
<%#MidText(XPath("title").ToString(), 0, 55)%>
</ItemTemplate>
</asp:DataList>
modified on Friday, July 3, 2009 2:27 PM
|
|
|
|
|
well your XPath is broken for sure. do you know anything about XPath ? XPath("//published") may work. The // forces it to search all sub nodes.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi,
I want to display a text, getting from database, into a DropdownList using text property.
My Code::
SqlDataReader drd;
if (drd.Read())
{
drpcompname.Text = drd.GetValue(0).ToString();
}
But It Display an error::
'drpcompname' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
Please help me.
Thanks!
Pankaj Singh
|
|
|
|
|
You should use databinding
ddl.DataTextField = "...";
ddl.DataValueField = "...";
ddl.DataSource = drd;
ddl.DataBind();
only two letters away from being an asset
|
|
|
|
|
|
Muruvet Kaplan wrote: can i use solr in windows application project
This is ASP.Net forum. How is it related to it?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi,
solr search engine is developed from lucene.net(library for windows applications) search engine but it is for asp.net applications. i want to learn whether it can be used in windows application or not.
mkn
|
|
|
|
|
Then go ask at Lucene, not here. Don't ask us to do your work
only two letters away from being an asset
|
|
|
|
|
Hi
Let me know the detailed information about statemanagement..
Provide me the best Site Link...with some good examples...
Thanks in advance..
|
|
|
|
|
katarukoti wrote: Let me know the detailed information about statemanagement..
I googled and found these [^]many articles.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
Yes, but what about setting?
Thanks & Regards:
Himanshu Thawait
|
|
|
|
|
|
Whats the benefit of the Microsoft.Practices.EnterpriseLibrary?
and whats the demerits of these DLL's is this secure more than simple database connectivity
Please help me Thanks..
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: Whats the benefit of the Microsoft.Practices.EnterpriseLibrary?
Enterprise Libarary is a collection of Wrapper around the usual .Net classes.
This allows you to do by writting less piece of code, as many of the core/basic functionalities are handled by EL itself.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
if we are useing EnterpriseLibrary(data base) and not properly close all the object then it create possibility of mummery likes Problem. or effect on the website process and speed.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: not properly close all the object
Have you experienced this?
If you look through the source you can see heavy usage of using statements and implementation of the disposable pattern. If you are experiencing problems with open connections or objects not being disposed it is more likely to be caused by your code than the Enterprise Library.
only two letters away from being an asset
|
|
|
|
|
Manas Bhardwaj wrote: Wrapper around the usual .Net classes.
It is far from a "wrapper" around .NET classes
only two letters away from being an asset
|
|
|
|
|
"The Microsoft Enterprise Library is a collection of reusable software components (application blocks) designed to assist software developers with common enterprise development challenges." http://www.codeplex.com/entlib[^]
As it says, EntLib provides a package of code that covers common scenarios, like exception handling, logging, data access, etc. so you don't have to write it.
only two letters away from being an asset
|
|
|
|
|
It means when your project doesn't work, you can blame Microsoft's practices, not your own
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi,
I am creating a website using visual studio 2008 with framework 3.0 using vb.net,
In my page i have a textbox for which i have written server side textchanged event and the textbox is in updatepanel. In this event i am doing some calculations and setting focus to another textbox.
The Problem is that although it sets the focus to another textbox but does not allow me to type anything there. Cursor blinks in that textbox but i cannot type anything in it.
If anyone can pls tell me what am i doing wrong here and what is the solution for this.
Thanks,
|
|
|
|
|
hozsam wrote: In my page i have a textbox for which i have written server side textchanged event and the textbox is in updatepanel. In this event i am doing some calculations and setting focus to another textbox
You your self answer your question.
As soon as you type in the textbox, the TextChanged event gets fired and the focus is set to another textbox.
I am not sure what you want to achieve by doing this. May be someone can help you if elobrate the scenario.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
oh sorry i think the entire message did not appear....
In my page i have a textbox for which i have written server side textchanged event and the textbox is in updatepanel. In this event i am doing some calculations and setting focus to another textbox.
Although focus is set on another textbox, i am unable to type anything there. The cursor blinks there but it does not allow me to type anything in it.
So if anyone can tell me what can be the problem. I am trying to find this out since a week but no help yet. pls if anyone can tell me what can be the problem and what is the solution to it.
|
|
|
|
|
I am developing an online shopping site......In this there can be many categories with their many sub-categories.......and with products. I have to define specifications at run time through the administrator....at the run time...There can be n number of specifications in a category...........For E.g. A Camera can have these Specifications like:
RESOLUTION, SCREEN, LENS, BATTERY, INTERFACE, METERING.
All i have to do it dynamically....what i need to use to create it.......please guide me.
|
|
|
|
|
Before starting coding, you need to sit with a pen, a paper and start jotting the exact flow of the application(which I think you know the best among the people at CP).
You should than start designing the database schema according to your needs.
For example you should start with a Table called Category
ID
Name
…
Create another table called SubCategory
ID
Name
CategoryID
…
Next step would be to start creating the SQL queries/stored procedures. Test them by inserting the data manually using Management Studio.
Once you are done with this business logic, now proceed to the UI/presentation layer where you can give options to manage the Categories at run time. This would mere be some insert, delete or update stored procedures.
Hope this helps.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|