|
Hello,
I have an Asp.Net 2.0 Web.Sitemap file as follows:
...
<siteMap
xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode>
<siteMapNode
url = "~/default.aspx"
description = "Jaqueline Roxo Atelier"
title = "Página Inicial"
footer = "true" />
...
I want to loop through all 'siteMapNode' nodes and check if 'footer' attribute is true.
If 'footer' is true I want to add the 'url' and 'title' values to a data table or to a data view.
Is this possible?
Can someone suggest a way to do this?
Thanks,
Miguel
|
|
|
|
|
Yes, this is possible, look into the XmlDocument, XmlNode, XmlNodeList classes, then look for simple xpath queries... something like (//sitemapnode[@footer='true']/) of just query all sitemapnodes and then look for the attribute in the XmlNode...
Brandon
braber
|
|
|
|
|
Is it possible to intercept keystrokes in asp.net? i have someone who wants a specific button that wants to be the enter button to fire that event. I know in vb.net for windows applications that you can basically choose which button you want. If someone out there has something, it would be very useful.
|
|
|
|
|
Javascript events will be your best bet. OnKeyDown and the like.
|
|
|
|
|
How would i be able to fire a method in code behind if im using javascipt?
|
|
|
|
|
By making a postback.
---
b { font-weight: normal; }
|
|
|
|
|
Don't use the code behind for this. Otherwise you will have to do a post back on each key stroke and you user will hate you. Use Javascript. Then you can do a form.submit to fire the post back or some other mechinisum.
|
|
|
|
|
i am openning a link using a window.open when the page loads with IE7 but popup blocker is blocking it when the 'Use pop-up blocker'is enable(in Privacy tab of internet option).I want to bypass it means while the pop up blocker is enabled the window should open with the link.
any suggestion wud be appreciable...
thanks,
|
|
|
|
|
target="_blank" in anchor tag will open new window every time a link is clicked and won't have problems with popup blockers.
If you need to resize the window, you can do it with javascript. However, if you want to hide addressbars, scrollbars etc in the opened window, maybe it's better just to use DHTML window instead.
For this I would suggest using Ferant DHTML Studio Lite which is way cool!
|
|
|
|
|
Hii,
I have DNN setup alright. I have developed a separate Web Application and now I need to make my application workable with the DNN Users, means all the existing DNN users can use my site with the same credentials.
How do I go about doing this??
Please help me out
thanx
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
Make a module out of the separate web application you developed.
One of the key ideas in DNN and modules IS that you don't need to force your users to log in multiple times to access different sections of your site.
|
|
|
|
|
I think I was not able to explain my question properly.
Actually I have some users in DNN. Now I want to make those users workable with my separate AST.NET web application. I can see the username and password in the DNN Database, but password is decrypted
Any suggestion
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
How can I delete Items from database using datagrid. Can any one help me by giving code for delete event handler.
|
|
|
|
|
|
I have a domain where queries will be in form www.domain.com/demo12345
demo12345 being a code I need to grab & process.
I need to have a single page to process these requests and the only thing this domain does, is that it reads the code and processes it.
Can I do this on that domain itself or do I need to configure a redirection in IIS and grab the code from the referrer url?
|
|
|
|
|
use this function
Request.RawUrl()
it returns a string so u do string manipulation to get the part u want from it
hope this would help ...
Best Regards
3ala2
|
|
|
|
|
The only problem being that how do I pass the request to the asp.net without having .aspx in the url and how do I prevent the server considering the code as folder and returning HTTP 404 when the URI is requested?
Any references?
|
|
|
|
|
Now if u keep the class name the same and change the aspx page name to "Default"
if u have a folder called "ABC123" and the "Default.aspx" page is saved in it this link will work
http://localhost/YourProject/ABC123
and will redirect u to the "Default.aspx" page
if this isn't helpful please post more detailed scenario ...
Best Regards
3ala2
|
|
|
|
|
I'll answer this myself:
Installing Wildcard Application Mappings (IIS 6.0) will configure a Web site or virtual directory to run an Internet Server API (ISAPI) application at the beginning of every request to that Web site or virtual directory, regardless of the extension of the requested file.
This effectively means that no matter what was requested, it's first handled by aspnet_isapi.dll (as I configured it)
After this, it's only a matter of Url Rewriting with ASP.NET
Thanks for attention
|
|
|
|
|
That's great man
Best Regards
3ala2
|
|
|
|
|
Dears Hi,
Im using VS 2005 and Instead of using SELECT in GridView I need to use on of GridView column as link to anther page and pass values to second page
I use template column but how I can pass parameter and specify the link
I use the following but is not working
<br />
href ="~/xyz/page2.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ID") %>"><br />
thanks....
|
|
|
|
|
You can put Label in Template column.
In event RowDataBound of GridView put this code :
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Label lbl = (Label)e.Row.Cells[TemplateCellNumber].Controls[1];
lbl.Attributes.Add("onclick", string.Format(
"window.location = 'url?{0}={1}'",param1, param2));
lbl.Style.Add("cursor", "pointer");
}
}
and they all died
|
|
|
|
|
I have to save my web page with its images, by clicking button on web page
I used javascript as
document.execcommand("SaveAs").
but this can save Html (text) of web page, not images.If any one can tell how to do this either from server side or client side.
Najam
|
|
|
|
|
search for mht file format (Web Archieve or Single File)
hope this would help ...
Best Regards
3ala2
|
|
|
|
|