couldn´t get it to work with XPath like i retrieve alla the rest information, any ideas?
Thommie h
Posts
-
xmldatasource + rss + retrieve image -
xmldatasource + rss + retrieve imageHi, I use a xmldatasource to display news from another site on mine. But in the description there is an image that i dont know how to retrieve? I get a "empty" image icon. Can anyone help out? I use, XPath="rss/channel/item" and the image is under description i think.. thanks in advance Thommie
-
dont really know the title..for one of the sites there is a rss feed
-
dont really know the title..ok, should i search for scrap data?
-
dont really know the title..Hi, If i want to show newly released products from one site on my site without manually add it, how do i do this? What should i search after?
-
Help with viewstate and gridviewand you cant write a understanding answear
-
Help with viewstate and gridviewyou are not helping me here, if you can explain a little as i asked from the beginning it would have helped or hint me somewhere.
-
Help with viewstate and gridviewyes i use a textbox, how do i retrieve it´s value? i said that i have no knowledge of the use of viewstate. SO i need 2 queries against the database? one to populate the gv with all content and then one under pageindexchanging where i use the search criteria?
-
Help with viewstate and gridviewHi, I have a problem, i have a gridview populated with items and in the pager i have controls for previous and next and a dropdownlist that shows the total number of pages. I also have a search function to search for item. if i for exemple search for *egg* i get a number of results and the ddl is populated with total number of pages for the searchterm. but if i click on the button for "next" the search result disapear and i get all the pages back (because of the postback) but how do i do to keep the state of the ´search so that i can use the next and previous buttons and the ddl listing of pages, depending on the search? I have never used viewstate so if someone can explain it well for me i would appreciate it very much! How to write the code and implement it. I use nhibernate and custom binding/paging
-
Parse the selected value from ddl and fill another ddl with information + NHibernate + C#Hi, My code looks like this and it doesnt work: This is with NHibernate. The error code : fetchQ.ParamName = "Region.Id"; The error text: NHibernate.QueryException: Type mismatch in NHibernate.Expression.EqExpression: Region.Id expected type System.Int32, actual type System.String RegionId in database is int. And the hbm file is mapped Int32
private void BindMunicipalities(int regionId) { try { string municipalityHql = "SELECT count(municipality.Id) from Municipality municipality WHERE municipality.Region.Id = :regionId"; IList queries = new List(); Query q = new Query(); q.ParamInt = regionId; q.ParamName = "regionId"; queries.Add(q); int municipalityCount = DataManagement.CoreRepository.RunCountStatement(municipalityHql, queries); if (municipalityCount > 0) { IList fetchQueries = new List(); Query fetchQ = new Query(); fetchQ.ParamName = "region.Id"; fetchQ.ParamInt = regionId; fetchQ.ParamEvaluationType = EvaluationType.Equals; fetchQ.ParamString = string.Empty; fetchQueries.Add(fetchQ); IList municipalities = DataManagement.CoreRepository.GetAll(fetchQueries, 0, 0, true, "Name"); ddlMunicipality.DataValueField = "Id"; ddlMunicipality.DataTextField = "Name"; ddlMunicipality.DataSource = municipalities; ddlMunicipality.DataBind(); } } catch (Exception ex) { logger.Error("Failed to load municipalities.", ex); this.lblError.Visible = true; } } protected void ddlRegions_SelectedIndexChanged(object sender, EventArgs e) { this.BindMunicipalities(int.Parse(this.ddlRegions.SelectedValue)); }
modified on Thursday, March 20, 2008 5:16 PM
-
Parse the selected value from ddl and fill another ddl with information + NHibernate + C#Hi Marco, Whats "= Retrieve_Municipalities( region)"? is that a method to bind the data from the database? can you please show me? Thanks for the answear Thommie
-
Parse the selected value from ddl and fill another ddl with information + NHibernate + C#Hi, I hope someone can help with with my problem, i have searched the Internet for information but i couldnt find any examples neither the answear. I use NHibernate and c# for my asp.net site. I have the "classic" problem. I have a dropdownlist with "Regions" and another one "Municipalities". When I choose an item in the ddlRegions the appropiate municipalites should be shown in ddlMunicipalties. I cant get this to work, do anyone have a code that does this and could share it with me? I have tried for a few evenings but i cant get it to work. Thanks Thommie
-
Listbox + get queryi have a listbox and when i select a item in the listbox i want this selected item to get information from the db and then show this data (that is related to the selected item) shown in seperated textboxes. an example: i choose a building from the listbox, when i select a building i want to retrieve the name of the building, adress, city and so on.. to be shown in their textboxes that is read only. How can i do this? i have the db ready but dont know how to retrieve the data that is related to the selected item to be shown in their txtBoxes. I really hope that someone could help me with this, i use C# as language and ms sql server.