Thank you AspDotNetDev for your help. it sure helped me.
Farraj
Posts
-
GMAP search -
GMAP searchHello, I'm planning to build a tourguide search website, i looked around and found the api of google "GMAP". What i need to do is a form where you can fill some fields (city, availablity dates and other things) and it should show you available registered tour guides in the map where you can click on some icon and it shows you a small window of the available tour guide profile. Something like that: http://tourguides.viator.com/Map.aspx Any ideas? i would appreciate any help. thank you
-
ListView selected item problemHello, im trying to build a gallery using C#. Ii've made a Listview showing photos from database as thumbnails in a "kind of a film strip", including a pager. What i need is that when i click on a thumbnail inside the ListView, to show the large photo in a image control outside the listview. this should work using the selectedIndexChanged event, i have no idea what to do in there, i will appreciate any help since i searched a lot online and didnt find anything helpful. thank you, Basil
-
Dynamic Div Creation?Thanks for the links, its useful. is there any way i can open it under the row at the same way im trying to do with a gridview?
-
Dynamic Div Creation?Hi Mark, i've reached this point, which is close but not what i want The JS code is :
function toggleDivVisibility(id) { var divcontrol = document.getElementById(id); if (divcontrol.style.display == 'block') divcontrol.style.display = 'none'; else divcontrol.style.display = 'block'; }
And Inside the ItemTemplate of the GridView, there is this code:
< ItemTemplate >
< a onclick = 'return void(0);' href="<%# DataBinder.Eval(Container,"RowIndex","javascript:toggleDivVisibility('Div{0}')") %>">More..
// The code i wanted to show inside the div//
< /div >This really does open a Div but the problem is that it opens it under the ItemTemplate(column) and not under the ROW. any ideas? Thanks
-
Dynamic Div Creation?Hello, I need some advices please. I'm trying to build a website for real estate listing. now the data would look like a datagrid. and while clicking on a row, it should open under it the dynamic data related to the specific row. (like an AJAX accordion). I will try to explain myself in a better way. this website for example ( ignore the language, couldnt find any better example LOL) http://www.yad2.co.il/Nadlan/rent.php Now, i've been told that this works by using "Dynamic Div Creation" which i have no idea how it should work this way. Is it possible to make it work by using an Accordion inside a datagrid? or what?!! If anybody can advice me or give me a sample code of doing such a thing i would be REALLY grateful.
-
MasterPages and Flash menuhello? any help? please?
-
MasterPages and Flash menuim trying this. but at the Triggers i cant point it to the Menu, i only can point it to the content placeholder ..?
-
MasterPages and Flash menuupdate panel: masterpage cs code
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ScriptManager1.RegisterAsyncPostBackControl(ContentPlaceHolder1);
}
}aspx code:
<form id="form1" runat="server"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <uc2:menu1 ID="menu11" runat="server" /> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="ContentPlaceHolder1" /> </Triggers> </asp:UpdatePanel> </form>
hmm...?
-
MasterPages and Flash menui used the UpdatePanel by draging it to the masterpage and inside of it i draged my flash control, and pointed a trigger to the contentplaceholder. but that didnt work for me about the Iframe.. im not sure if i did it the right way.
-
MasterPages and Flash menuHello, I have a flash menu that includes category links to my aspx pages(and sub-categories). This flash menu is located on a MasterPage, and all of my content is inside a content place holder. Whenever i click an item in the flash menu, the flash reloads itself while entering the page, which is absolutely normal. I tried using Frameset in .Net it didnt work for me. tried also the UpdatePanel also didnt work, maybe I've done something wrong in there or whatsoever. Can anybody tell me please how to do this so the flash menu wont reload each time i click an item? Thanks.
-
Accordion not expandingi solved the problem by adding
lol thanks :-)
-
Accordion not expandingHi, i've made a page with Ajax accordion, but its not expanding or collapsing this is the code i've made:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:AccessDataSource ID="AccessDataSource2" runat="server"
DataFile="~/App_Data/Data2.mdb"SelectCommand="SELECT \[id\], \[day\], \[desc\] FROM \[days\] WHERE (\[id\] = ?)"> <SelectParameters> <asp:QueryStringParameter Name="id" QueryStringField="id" Type="String" /> </SelectParameters> </asp:AccessDataSource> <cc1:Accordion ID="Accordion1" runat="server" SelectedIndex="0" ContentCssClass="Content" HeaderCssClass="HEADER" HeaderSelectedCssClass="accordionHeaderSelected" AutoSize="None" FadeTransitions="true" RequireOpenedPane="false" TransitionDuration="100" SuppressHeaderPostbacks = "true" DataSourceID="AccessDataSource2" > <HeaderTemplate> <%#DataBinder.Eval(Container.DataItem, "day")%> </HeaderTemplate> <ContentTemplate>
<%#DataBinder.Eval(Container.DataItem, "desc")%>
</ContentTemplate></cc1:Accordion>
any ideas?
-
help needed with passing parametersthanks. sorry for the lack of knowledge in this issue. how can i load the details for this ID in the detailsview control i have on the second page showtour.aspx?
-
help needed with passing parametersThanks for your reply Do you mean to join the both tables or the both ID columns? if so how do i do that? and how can i the id from query string to get the tour details in the other page (which there i have a datagrid)? Thanks for your help
-
help needed with passing parametersHi, i need help in passing parameters from a datalist to another page. this is how my app works: i have a database ( access) a table with the following columns: id,title,desc,photo. another table with the following columns: (startsin, endsin,price,tId) on the first page (tourpack.aspx) i have a datalist, when user clicks on a button that is in the templateitem of the datalist, he will be transfered to another page called (showtour.aspx). what im trying to do is passing the ID parameter from the first page (table 1) to the second page (showtour.aspx) with the id number so he can see the specific details of that "tour" that are located In the second table. any idea how it works? i would appreciate any kind of help. Thanks, Farraj.
-
writing to xml filei tried that also but it opens the last node and inserts the node i wanted and closes the last node that was opened. any idea? i would love if you write me the suitable code. thanks a lot
-
writing to xml filethank you for your reply im using C#. ive tried building such a file using linq
XDocument doc = XDocument.Load(Server.MapPath(@"file.xml"));
var temp = (from element in doc.Root.Elements("photo") where element.Attribute("filename").Value == txtBoxFileName.Text && element.Attribute("thumbnail").Value == txtBoxThumbname.Text && element.Attribute("description").Value == txtBoxDesc.Text select element); XElement result = null; if (temp.Count() == 0) { result = doc.Root.Elements().Last(); result.AddAfterSelf(new XElement("photo", new XAttribute("filename", txtBoxFileName.Text), new XAttribute("thumbnail", txtBoxThumbname.Text), new XAttribute("description", txtBoxDesc.Text))); result = doc.Root.Elements().Last(); } else { result = temp.First(); } result.Add(new XElement("photo", new XAttribute("filename", txtBoxFileName.Text), new XAttribute("thumbnail", txtBoxThumbname.Text), new XAttribute("description", txtBoxDesc.Text))); doc.Save(Server.MapPath(@"file.xml")); this.lblxml.Text = "done";
this cool code was made for searching a specific node and add the data inside it. it helps. it adds! but, not the way i need it. i only need to add one node of ((< photo a="1" b="2" c="3" / >)) which i think its pretty simple, im just not good enough at it appreciating any help. thanks, Farraj
-
writing to xml fileHi, I need help writing to an xml file. this is the XML file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<photos>
<photo filename="5.jpg" thumbnail="11.jpg" description="jime" />
<photo filename="6.jpg" thumbnail="121.jpg" description="Water Drops (800x600)" />
<photo filename="8.jpg" thumbnail="22.jpg" description="Fireworks (640x480)" /></photos>
any ideas how to do that? Thanks, Farraj
-
Gallery AlbumHi, I'm trying to create an album gallery, which works this way: First, i have the album photos with description on each album under the photo, with a pager. ( that was done) Second, when you click on a certain album, you see all photos related to this album only. I am using ACCESS DB. i just cant figure it out how to connect those data correctly, and how clicking an album will take me to the photos related only to it. I would appreciate any help or samples for such a thing. Thanks, Basil