|
I have placed a menu control in my master page (see definition below) but the formatting is being ignored. The submenu is displayed when the page is first loaded and is not indented. If I place the same menu definition in a normal page it is formatted correctly. Both appear correctly in design view. I've tried playing around with various properties but anything I set is ignored in the master page.
Can anyone tell me what I'm doing wrong please?
This is the menu definition:
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal">
<StaticMenuItemStyle ItemSpacing="10px" />
</asp:Menu>
And this is web.sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Main.aspx" title="Home " description="Home">
<siteMapNode url="Environment.aspx" title="Environment " description="Switch environment"/>
<siteMapNode title="Reports" description="Generate and view reports">
<siteMapNode title="Report1" url="Reports/Report1.aspx"/>
<siteMapNode title ="Report2" url="Reports/Report2.aspx" />
</siteMapNode>
</siteMapNode>
</siteMap>
|
|
|
|
|
I've just tried this in Firefox and it displays as expected so it appears to be an IE problem (version 6). Not that I'm any the wiser as to how to solve it!
|
|
|
|
|
Hi,
Would someone be able to tell me how to go about doing the following (at least conceptually)....
I am building an ecommerce store and want to have current stock levels showing on the site. When a customer puts an item in his basket - the stock levels should be reduced by the quantity he has chosen temporarily. If he completes the purcahse the stock levels are reduced permeantly. If he does not compelte the purchase or closes the browser the stock levels return to the original amount. But while he has it in his basket - the stock levels should show the total less the one he has. Eg If there is only one left and he puts it in his basket - the stock level shows zero until he either buys it or does not. If he does not then the stock levels return to 1. Also, how do i deal with the situation where he just closes his browser with the item in the basket - how do i reset the stock level? Apologies for the long post but i wanted to try to get all the questions out!
Thanks
rdhon
|
|
|
|
|
You should put a timer on how long the product is in his basket
e.g
Customer puts product in basket(table) record time and date
Set a timer for say 20 minutes and 20 mintues from the time the item was added delete it from the basket
This way you solve the problem of not knowing when a user closes their browser.
We are not a Code Charity
|
|
|
|
|
Hi
In my web application i want to allow access to my web application only those user whose entry exsist in web.config file
<identity impersonate="true" userName="s717369" password="pa$$w0rd"/>
Note there is no any domain exsist, i want to give access in my application to only those user who is giving this userid and password same as web.config during windows login.
Sajid A.
|
|
|
|
|
It would be much better if your ID and password were being compared to a database login but if you want a solution for the above check this out:
http://msdn.microsoft.com/en-us/library/aa292118(VS.71).aspx
We are not a Code Charity
|
|
|
|
|
hi all! I have an issue and I really don't know how to solve. I am building a web app, and I am loading a XML Document. After I am loading the document, I want on the web site to display a data table with the data from the xml document. I want the data to be populated depending from the data what I have in the xml document. For example:
<Employees>
<Employee ID="1">
<Name>John</Name>
<Status>ProjectManager</Status>
</Employee>
<Employee ID="2">
<Name>Samantha</Name>
<Status>SoftwareDeveloper</Status>
</Employee>
</Employees></code>
then from that xmldocument I want to populate a datatable. Is that possible? Thanks ahead
|
|
|
|
|
Simply read the xml data to dataset.
Dataset ds = new dataset();
ds.readxml('xmlfilepath');
Datatable dt = new Datatable();
dt = ds.tables[0];
G. Satish
|
|
|
|
|
The thins is that I am receiving the xml from web service like a string, and not like a xml document. Any help in that case?
|
|
|
|
|
DataSet.ReadXML(TextReader reader,XMLReaderMode mode) use this overload. StringReader is an implementation of TextReader class, which you can use to read from a string.
|
|
|
|
|
can you give me example how should I use in my case. I am getting the string from the web service:
string test = Status.GetXMLDocument(ID, Name, Status);
DataSet ds = new DataSet(TextReader reader, XmlReadMode mode);
and when I am trying like this, it gives me errors expecting ')' and ';' after reader and after mode. Thanks ahead
|
|
|
|
|
laziale wrote: DataSet ds = new DataSet(TextReader reader, XmlReadMode mode);
string test = Status.GetXMLDocument(ID, Name, Status);
DataSet ds = new DataSet();
ds.ReadXML(new StringReader(test),XmlReadMode.Auto);
|
|
|
|
|
Thx, it works, but I cannot populate the gridview with the dataset, simply remains empty, any idea how can I populate with data from the dataset? Thanks
|
|
|
|
|
Hi all,
I have a requirement to drag a control in a web page from one place in to another place and at the same time, i need to change the width and height of the controls in web page..(similarly as we do in vs2005 designer).
How can we achieve this
G. Satish
|
|
|
|
|
I think the AJAX tookitt comes with a similar type of panel. Have you checked that ?
|
|
|
|
|
Check this out:
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/DragPanel/DragPanel.aspx
We are not a Code Charity
|
|
|
|
|
Hi all, I have an interest to attend for online classes with free of cost regarding asp.net, c#, vs2005, sqlserver. which are conducted by Microsoft in weekends in various cities. But i dont know the source how to attend for this?
Where i have to register for this?
Can any one knows, let me know.
I am staying at Hyderabad, Andhra Pradesh, India.
I am not knowing whether this is a correct Place to post this Message or Not ? if Not, Sorry for this post.
G. Satish
G. Satish
|
|
|
|
|
|
ya, exactly like this i wanted. But this session is already completed in march. I need upcoming sessions regarding .net. Just now, i logged in to this site, all the posts and etc are before 2006. No latest things are there.
If other than this, any thing is there..just give the links.
Thanking you greatfully
G. Satish
|
|
|
|
|
http://msdn.microsoft.com/en-us/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/aspnet-createrssw-aspnet.asp
We are not a Code Charity
|
|
|
|
|
You may like to check out the regional UserGroup website (http://groups.msn.com/dotnetusergrouphyd/[^])
Not sure who has voted a '1' for this. Since I didn't find anything harmful or hurting, I am just trying to make it balanced.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi People,
I have an ACE placed on a user control.
If no matching results are found for the criteria supplied I display --> No match found. Please select the item that matches your field of expertise.
This is a bit late and maybe less intuitive.
What I would like is to place a non selectable item in the result list at the very bottom. It would say --> Please select the item that matches your field of expertise.
The result list would then look like this below.
Finance
Clerk
Developer
Trader
Retail
etc
--------------------
Please select the item that matches your field of expertise
The last 2 lines would have some javascript that would prevent them from being selected. The webservice current does this ...
<br />
<br />
If Not (tblOccupations.hasRows) Then Return New String() {"Not found. Please try again for the closest match"}<br />
Dim items As List(Of String) = New List(Of String)(tblOccupations.totalRows - 1)<br />
While (tblOccupations.nextRecord)<br />
items.Add(tblOccupations.OCCUPATION_NAME)<br />
End While<br />
'--- Add Text To Inform User To Select The Closest Match<br />
items.Add("-------------------------------")<br />
items.Add("Please select the item that matches your field of expertise")<br />
Return items.ToArray()<br />
<br />
Is it at all possible to add any javascript here?
Many thanks
|
|
|
|
|
How to show ModalPopupExtender on page load?
Help on this really appreciated!
|
|
|
|
|
Hi,
Can u pls explan excatly the scenario.
|
|
|
|
|
Just wanted to show a popup on page load.
|
|
|
|