.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

update page after editing sitemap

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :ASP.Net
Hey guys have written the following code to allow authorised users to add categories to a shopping catalog:    Sub editXml()        If txtNewCat.Text.Count > 0 Then            Dim sMap As New XmlDocument            sMap.Load(Server.MapPath("App_Data/Web.sitemap"))            Dim doc As XmlNode = sMap.ChildNodes(1)            Dim root As XmlNode = doc.ChildNodes(0)            Dim pNode As XmlNode            For Each node As XmlNode In root.ChildNodes                If node.Attributes(0).Value = "Catalog.aspx" Then                    pNode = node                    Dim nNode As XmlNode = sMap.CreateNode(XmlNodeType.Element, "siteMapNode", Nothing)           &nb

View Complete Post

More Related Resource Links

Visual Studio closes itself by opening aspx-Page designer after Windows Update


Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.



update parentpage gridview with the values from child page?


hi   i am having a gridview on each row i am having a update and add button.

on click of either of the button i am opening a popup where the end user will enter data and on clck of ok button in the child page

based on the click ie

if i clicked update i need to update that particular row with the values from child page.

if i clicked on add i need to add a row below the row where i clicked add button .

can anyone help me with this?

Gridview extends past edge of div and page when editing users


I have a gridview pulling all data from one user. This gridview has an edit button and when that is clicked the gridview becomes too wide for the div/screen and I get a scroll bar. Since this gridview can only have one user in it anyway is it possible to display each field on seperate lines instead?

update panel in content page



iam using master page  and i am using update panel in content pages (child pages)

my questions is that can use updatepanel in every child page or  master page only.

give ur suggestions, i have senario , in a page i have file upload concept ,updatepanel

is not support that fileupload.

Trying to get to a page via an email link. Could the sitemap be stopping this?


I had this working.  I would email a link to a page (i.e. Work.aspx), and using the code below, the user would be routed to the login page and then sent  to Work.aspx after logging in.

But since I added a site map this isn't working.  I always go directly to my home page.  If I set Work.aspx as my start page in VS it works, but not if I click a link in the email.

Any thoughts?

 protected void Page_Load(object sender, EventArgs e)


        if (!Page.User.Identity.IsAuthenticated)

            Response.Redirect("~/Login.aspx" + "?ReturnUrl=~/Work.aspx");


    protected void Page_Load(object sender, EventArgs e)
        if (!Page.User.Identity.IsAuthenticated)

Problem with master page and update panel (I think)



the app I am working with is made up of three nested master pages that have the following design:

The first master page ha only realize the HEADER, BODY and FOOTER divs.

The second one specialize the Body content placeholder and divide it in three more layers: NAVIGATOR, PAGE TITLE, BODY CONTENT.

The final layer specialize the BODY CONTENT in PAGE CONTENT and ACTIONS.

In one of my content pages I have (inside the PAGE CONTENT area) 

  • 1 Update Panel that contains a gridview object
  • 1 Update Panel that contains some HTML code to show in a PopupModalExtender

The PopupModalExtender can be either triggered from inside the gridView and also from a series of LinkButtons that are in the ACTIONS area.

The problem is that when the PopupModalExtender shows the FOOTER and the ACTIONS areas are not dimmed from the style I apply as background to the modal popup. An example of what I am trying to explain can be viewed in the following screenshot.

Why this is going to happen? Has anybody any suggestion on how to solve this problem?

Thanks a lot

Keep a new page open for editing when created

Hi, i built a pages library and set some custom content types and page layout in it. When create a new page i want to set that the new page will be still open for edit the content and properties (the default behavior is that after creation and give the page a name - it is closed and in order to edit i have to find the new name in the pages library and just then open and edit page, which is too complex for the users

making page work after DB update in Form View

I could really use some help with this issue. I have a DropDown that allows the selection of a Category Code. The selection populates a Gridview with details of records matching the Category Code. I have only enabled the Select option on the Gridview, which when clicked populates a Formview in Edit Mode with the full record information. When editing is complete and the Update link is clicked, I can not get the page to properly reload/postback. When another Category Code is selected from the Drop Down the Gridview does not report a list of records.   Any help would be greatly appreciated.   Thanks,              

how to update wiki page

HI all: I have a question: how to update the sharepoint's wiki page content? I began to use the webservice, but found that the webservice is not the way to provide connectivity wsdl (which may be in the security considerations). When I use VS2008 to add LISTS.ASMX into the web reference, I found tips "HTML document does not contain Web service discovery information." Finally I could not find a better solution. Since I did not deploy sharepoint in the server side, I can not go to generate the wsdl. Is this why?   What other way to add or update this wiki page? Who can you direct me there?

Please help me get out of "Version: You are editing the Shared Version of this page"

I created a new subsite for my sharepoint publishing site with all of the same settings as the other subsites. Instead of getting the usual editing menu (check-in, check-out, discard, publish, etc.), I'm getting "Version: You are editing the Shared Version of this page." I am also missing the Page Editing Toolbar option from the Site Actions menu so I'm guessing they are related. Please help, I've been searching all over.

Update Title on Content Page(MOSS 2007)

I have multipal websites. I would like to update "Title" field in the content pages. How Can I do it using wsp/c#. For example.. I have site like http://www.something.com/pages/home.aspx . I this page I have "Title" field with value like "Something" now I want to change that to "Something else". Please help.    

perform UpdatePanel.Update from different page

I have Page_A.aspx and Page_B.aspx Page_A.aspx has a text box and a Send button. Page_B.aspx has a Label control on it, inside an UpdatePanel I want that when I type something in Page_A.aspx and click Send, the text of Label on Page_B.aspx should be  updated with the text box text and the UpdatePanel should be updated. Is this possible? Page_A.aspx:<asp:TextBox runat="server" ID="ssMessage"></asp:TextBox> <asp:Button runat="server" ID="ssSendButton" Text="Send" OnClick="SendMessage" />   Page_B.aspx:<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Label runat="server" ID="ssCommonRoom"></asp:Label> </ContentTemplate> </asp:UpdatePanel>  

page inside update panel doesn't refresh the session object after postback of any control



I have many controls like dropdown, radiobuttonlist, etc on my page and I put all these controls inside the update panel so that the page doesn't look to be posting back when something is selected. Now the working on the page is very smooth. But the session object isn't getting refreshed even if I postback to the server and as a result even if the users are working on the page they are being sent to the login screen after 20 mins.

Is there anyway where I could put all the controls in update panel and still refresh the session after any postback(dropdown selection)

Any help is greatly appreciated.

Thanks in advance

is it possible to hide a link in the sitemap, yet still show the breadcrumb on the page?


We have a dynamic sitemap and all nodes in the sitemap display a breadcrumb.

Is it possible to have the breadcrumb still showing, but make the link in the sitemap invisible or non-clickable?

Reason for this is that...
we dont want users to select some pages from the sitemap (becasue they need to conduct a search first to populate a datagrid) and clicking on the link will only take them to an empty page.

I tried just removing the url, or having a blank title, but that didn't work.

perhaps a stylesheet and display none or something..?


Would like to hide Formview's "Update/Cancel" and make data changes when new page is selected


I have a Formview that is only showing a question, and two checkboxes (True / False).  It's cumbersome for the client to have to click "Update" every time they click a checkbox.

Is there a way to have Formview update the data when the page is changed, or form is closed?  (I see those events, but know how to force data to update from in them).

The application is testing individuals, so 95% of the time the person navigating through the forms will be updating data.



Publishin page layout, that add/update values in a metadata of the page not working


We have custom control on Publishin page layout, that add/update values in a metadata of the page. Code is written in 'Button click' event that update/add new values to the metadata. Following is the code snippet, which is working fine in Stage and Acceptance servers. Publishin page doesn't update Draft version with SPListItem.SystemUpdate instead it updates to last published major version.

currentPublishingPage = PublishingPage.GetPubl
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend