.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

Redirecting to my custom searchresults.aspx instead of Regular OSSSearchresults.aspx

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

Redirecting to my custom searchresults.aspx instead of  Regular OSSSearchresults.aspx..

Any way to redirect my searchbox to my custom searchresults.aspx page....

I created my custom new custom seachresults.aspx page, But my search box is not allow me to go my custom seachresults.aspx which in root(beside default.aspx of site)

i googled no related ans found

I am using moss2007

View Complete Post

More Related Resource Links

Custom views on .aspx webpage


Hi again, i have a client that needs me to create a custom view on thier webpage similar to Microsoft Word.

It goes about that, when I click on an image it redirects me to another page and must create a custom view for a certain paragraph on that page. I am not sure how to do this and wonder if anyone knows how.

I am using C# programming language if that helps at all. I Heard that using javascript would work but i dont know javascript yet so is there any alternative?

Custom Editform.aspx crashes Sharepoint Designer

Hi there,

I've recently designed a sharepoint list and customised newform.aspx and editform.aspx. I made copies of the originals then customised the copies.
On both forms I simply:

* Closed original List Form web part
* Added Custom List Form
* Added some section breaks (<tr>) to the form to break it into sections
* Added a new css style to change the background colour on the section breaks (table rows)

Now NewForm.aspx works fine. However after making above changes in EditForm.aspx, I saved it. However whenever I try to reopen EditForm.aspx in Sharepoint Designer (SD), SD crashes! I can only open it in Text view. The error details reported by SD are:

Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    SPDESIGN.EXE
  Application Version:    12.0.6423.1000
  Application Timestamp:    49b09947
  Fault Module Name:    FPEDITAX.DLL
  Fault Module Version:    12.0.6423.1000
  Fault Module Timestamp:    49b098d3
  Exception Code:    c0000005
  Exception Offset:    0010b35c
  OS Version:    6.0.6002.
  Locale ID:    3081

Additional information about the problem:
  LCID:    1033
  Brand:    Office12Crash
  skulcid:    1033

I really don't know why SD is crashing. As a test I made a new


Hi,Whenever i do search on This Site or This list my search results are redirected to OSSSearchResults.aspx page.Which is fine but i want to edit the page. Strangely i dont see EDIT PAGE option from the site action drop down. Can some one help me how to get EDIT page option on OSSSearchResults.aspx page.Thanks.Munna

Redirecting default.aspx to root virtual directory

I have a simple ASP.NET 3.5 application running under IIS7 under a virtual directory. So the URL of my app is like http://site.com/app. I want to 301-redirect the request to site.com/app/default.aspx to site.com/app for better SEO. I have to do this redirect through code only, not by any IIS settings. I am unable to do so via code mentioned in this article:http://www.4guysfromrolla.com/articles/072810-1.aspxThe code:if (request.RawUrl.Equals("/default.aspx")) { newUrl = string.Format("{0}://{1}{2}", request.Url.Scheme, request.Url.Authority, request.RawUrl.Remove(request.RawUrl.LastIndexOf("/default.aspx", StringComparison.OrdinalIgnoreCase))); context.Response.Status = "301 moved permanently"; context.Response.AddHeader("Location", newUrl); } seems to go into an infinite loop when the application is under a virtual directory. the request.RawUrl property always returns "/default.aspx" even after a 301 redirect causing the infinite loop. How can I fix this issuhttp://forums.asp.net/AddPost.aspx?ForumID=27e?

Custom DynamicData Default.aspx GridView

On the Default.aspx page the GridView control is populated programmatically by setting its Datasource to a list of table objects. Is there some way I could populate this GridView manually using my own set of NavigateUrls and DisplayNames?Simon

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

Custom Email Alert template creating links to DispForm.aspx

I have a requirement to customise the alert template for a standard blog post list. To do this I: 1. Created a copy of alertstemplate.xml 2. Copied the genericList alert template node and customised 3. Registered the new template file against the site collection, iisreset and finally assigned the new Alert template to the list, when alerts are created the custom template is emailed. The problem now arises that the 'View <Post Title>' in the toolbar section now creates a hyperlink to http..../Lists/Posts/Dispform.aspx?ID=xx rather than post.aspx. I have checked using sharepoint designer that the list supporting files has the correct display item form of Lists/Posts/Post.aspx. Additionally if I reset the alert template for the list back to use the Generic list template the same problem still occurs so this leads me to believe it is not the customisations that are the problem. Code used to assign the alert template to the Posts list: var ats = new SPAlertTemplateCollection((SPWebService) site.WebApplication.Parent); var newTemplate = ats[alertName]; if (newTemplate == null) { // We did not find the specified Template. throw new Exception("Failed to find template SPAlertTemplateType.NewsPost in the template collection."); } list.AlertTemplate = newTemplate; list.Update(); Any assistance will be most welcome, thanks in advance. Alan

usageDetails.aspx data to a custom list?

any suggestions on how to get the data from _layouts/usageDetails.aspx to a custom list? trying to save a massive amount of time by identify users that haven't accessed a site in a given period of time.       

SPCalendarView in sharepoint 2010 placed on custom aspx form does not respond to any actions

Hello everybody! We are facing strange problem when using SPCalendarView  in custom aspx form. Calendar does not cause any postback when clicking on any of its buttons. We have have used script fix (step 4) from this microsoft walkthrough and our calendar started to partially work, but it was throwing javascript exceptions in new inserted function. After function fix (semicollon missing), calendar stopped working again... Does anybody have any idea what can be wrong?

unable to create wiki library with bulagarian name via custom ASPX page

hi, I am using one Aspx page where it takes the input from user and create the wiki library with the name entered by User. The issue is , when I am creating name in Eglish it is creating properly. but suppose I give library name  ¿¿¿¿¿¿¿ TEXT 4, I get the following error http://vm2003/ ??????? TEXT 4/Forms/AllPages.aspx?PageView=Shared ?? ??????????. which means ttp://vm2003/ ??????? text / AllPages 4 forms /. Aspx? PageView = shared does not exist. I dont know hwy it is redirecting to this page. but when i check on site , the library gets created with name ??????? TEXT 4 and its URL is http://vm2003/TEXT%204/Forms/AllPages.aspx if you see the bulgarian part is missed, please help.

Custom DispForm.aspx and Search Results

I am a developer, but am proofing somethig in SPD 2010.  I am trying to create custom New/Edit/Disp/List forms for some OOB SharePoint 2010 lists (think Announcements, etc).  I am going this route because we are leveraging a mix of OOB functionality and custom functionality.  We want to avoid users "accidentally" navigating to the OOB New/Edit/Disp/List forms and have only our custom forms displayed.  This includes things like creating new items in calendar view and links from search results. So far, I have used SPD to create a new, custom, DispForm.aspx named "DispFormCustom.aspx".  I just made minor modifications to it so far - like changing background color to red.  Otherwise the new "DispFormCustom.aspx" is exactly what SPD gives you when you say you want to create a new Display Form.  I have selected that the custom form be the "Default" display form for the list. When I go into the list, and select "View Item", I get my custom form. When I do a search (using OOB search), the search result takes me to the original "DispForm.aspx" and not my custom form (eventhough I have specified it to be the default).  I have cleared the search index and done a Full crawl and the same behavior. I did navigate to the Content Type edit screen in SPD, in the "Forms" section, modif

custom workflow using aspx forms

HI, Iam new to sharepoint, I have to create custom workflows using aspx forms, i search lot of sample examples using Infopath, and sharepoint Designer, but i was unable to get sample examples using aspx form base workflows. Thanks for helping me..  

Custom Default.aspx SharePoint 2010

I would like to replace the default.aspx with a custom default.aspx.  I have been able to accomplish this with a feature. I am finding the when deployed the new default.aspx page shows up in the following directory C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\ProjectInsightSPMaster_ProjectInsightLayoutFeature\defaultpage I also have a default.aspx located in the following directory.  This is the one that is deployed with the site definition. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\SiteTemplates\PISP    When I browse to a site in IE, it is in fact looking at the correct (new) default.aspx page which is located in the FEATURES directory.  How does SharePoint know to use this default.aspx page instead of the one located in the SiteTemplates directory.  This is confusing to me.  Can you explain?   Is this the correct way of deploying an updated default.aspx?   dave

How to provision custom list and import custom aspx pages automatically in sharepoint?

What is best way to create custom list (Document library) and import custom .Net pages automatically. The goal is to avoid create the list and upload those .net page to the list manually. Any code snippet that would be great help. thanks

How to associate custom masterpage from 12 hive folder to an ASPX page

scenario: I have a custom masterpage available within 12 hive folder.  I want one of the ASPX pages (say allitems.aspx) to use this masterpage. I see that when I open the ASPX page using SPD, it has default.master but upon changing it to mydefault.master it gives error indicating that file is not found. So question is how to reference custom masterpage in aspx pages? I prefer to do it through visual studio but SPD is also fine.   thanks.

redirecting from EditForm.aspx. to NewForm.aspx directly


Hi All,

My Requirement is...

I have two lists. List "Project Request" and "Project List". When I am upading a item from "Project Request" list in EditForm.aspx. After clicking on the ok the aplication should redirect me to NewForm.aspx of ProjectList.

I have checked in so many blogs it can be achieved through EventReciver only. But not able to ressolve how to achive.

Please help me with code snippet.

Thanks in Advance.....


Viewselector is not working in a custom ASPX list view nor does the custom view display in the list


I created a custom ASPX page to display data from a linked datasource in SharePoint designer. (Let's call it NewView)   After creating the new page I inserted a web part zone then inserted a data view into the zone and attached the default master to the page.   From the linked data source, I added the columns I wanted to display in the data view and added additional columns from the 2nd linked list as a subview.

I copied the following code just after the </WebPartPages:SPProxyWebPartManager> tag and just before the <WebPartPages:WebPartZone tag:

  <table class="ms-menutoolbar" cellpadding="2" cellspacing="0" border="0" width="100%">
    <td class="ms-toolbar" nowrap="">
     <SharePoint:NewMenu runat="server"></SharePoint:NewMenu>
    <td class="ms-toolbar">|</td>
    <td class="ms-toolbar" nowrap="">
     <SharePoint:ActionsMenu runat="server"></SharePoint:ActionsMenu>

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