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

Top 5 Contributors of the Month
Sandeep Singh
Post New Web Links

Searching Function Problem - Setting up indexer

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :SharePoint

How do you set up an indexer for Sharepoint 2010 Foundations?

View Complete Post

More Related Resource Links

EF 4: Function Import problem with Stored Procedures


I have the following SP which includes a temp table:

 DECLARE @pos int

--create table to hold parsed values
CREATE TABLE #list (val varchar

datalist printOut() function Problem

  • i m using below code..by using it i able to write asp data into word file n format it.but i m facing problen in print out..

    it show exception

    Message = "The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))"

    please hav a look at below code....

  •  .................div data...................   
  •   <div id="printdiv" runat="server">   
  •     <table style="border: 5px solid #FF00FF; width:100%">   
  •     <tr>   

  • problem on Page_PreRender with RangeValidator control and programmatically setting Maximum and Minim

    I am new to the ASP.NET /C# dev. I run into a weird bug when using the RangeValidator Control inside a Formview. I have my DateTime field with validator and it work fine until I submit the page, it actually insert the row into the database but then when the page reload I get the following exception.Server Error in '/Budget' Application. The value '' of the MaximumValue property of 'RV_AjoutUtilisateurDate' cannot be converted to type 'Date'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The value '' of the MaximumValue property of 'RV_AjoutUtilisateurDate' cannot be converted to type 'Date'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): The value '' of the MaximumValue property of 'RV_AjoutUtilisateurDate' cannot be converted to type 'Date'.] System.Web.UI.WebControls.RangeValidator.ValidateValues() +1077011 System.Web.UI.WebControls.RangeValidator.ControlPropertiesValid() +12

    table valued function problem

    This is my table-valued function Problem is it is returning only 1 record but it is supposed to return more than one i stuck with this problem plz replyALTER function [dbo].[funcqidata](@dst int,@mth int,@yer int) returns @cqi_rpt table ( hosp_name varchar(100) NULL, bedded_strength int NULL, out_patients int NULL, in_patients int NULL, minor_surgeries int NULL, major_surgeries int NULL, deliveries int NULL, radio int NULL, lab_test int NULL, tot_part1 int NULL, waste_man int NULL, swab_test int NULL, attendence int NULL, drug int NULL, charges_thismonth int NULL, charges_lastmonth int NULL, usr_charges_marks int NULL, tot_part2 int NULL --grand_tot int NULL ) as BEGIN DECLARE @hosp_name varchar(100), @bedded_strength int, @out_patients int, @in_patients int, @minor_surgeries int, @major_surgeries int, @deliveries int, @radio int, @lab_test int, @tot_part1 int, @opd_handled int, @opd_target int, --------- supporting variables declared for calculation ----------- @ipd_handled int, @ipd_target int, @minor_handled int, @minor_target int, @major_handled int, @major_target int, @delivery_handled int, @delivery_target int, @radio_handled int, @radio_target int, @lab_handled int, @lab_target int, -------- end of declaring variables ----------------------------- @check_charges int, @waste_man int, @swab_test int,

    Problem With Using Trigger for Setting Label Content

    Basically, I have a label and depending on the Object type of the current data source item I want to control what the content of the label is. The trigger I am trying is: <Label Margin="222,21,242,134" Name="MyLabel"> <Label.Resources> <DataTrigger Binding="{Binding Path=/EntryType}" Value="Object.Type1" x:Key="myTrigger"> <Setter TargetName="MyLabel" Property="Content" Value="{Binding Path=/Object.Property1}"/> </DataTrigger> </Label.Resources> </Label> The problem is that I am getting this error: 'Content' member is not valid because it does not have a qualifying type.   Do I need to use some sort of converter or something? Or am I aproaching this worng?

    Problem with appointment function

    I am beginner of asp.net and c#Currently i am learning on create a website with appointment feature. The website i am doing basically a dental appointment web, which show the free slot of dentist on the website and enable patient to book appointment by schedule an appointment based on time and date given. I have done others thing such as register, login, report those however i have no idea on doing the appointment module. I am trying to learn easy way to create booking feature for dental website. Is that a tutorial on learning to do this or others way which i can easily learn it. Thank you.

    Problem setting Foreground with Visual State Manager (WPF - .Net v4.0

    0 down vote favorite I have a WPF application, and I am attempting to style a TextBox using the .Net v4 Visual State Manager. Specifically, I am attempting to set the colors of the Foreground and Background for the MouseOver state. What is happening is that, while the background and border are changing perfectly, the foreground is not. If the brushes that I am using get their color via a StaticResource, then the foreground does not change at all. If the brushes that I am using get their color via a DynamicResource, then when I mouse over a TextBox, the foreground of all TextBoxes change. Clearly, either I'm doing something wrong, or what I want to do is simply not possible with VSM (which would be rather disappointing). Here are the resources that I am using:   <Color x:Key="ControlBackgroundColor" R="178" G="178" B="178" A="255" />  <Color x:Key="ControlForegroundColor" R="0" G="0" B="0" A="255" />  <Color x:Key="BorderColor" R="127" G="127" B="127" A="255" />  <Color x:Key="MouseOverControlBackgroundColor" R="0" G="0" B="0" A="255" />  <Color x:Key="MouseOverControlForegroundColor" R="255" G="2

    Problem in setting up Windows Authentication in Windows 2008 RC2

    Hi,We have a working version of application (Intranet) with uses Windows Authentication deployed in Windows 2003. The application uses HttpContext.Current.User.Identity.Name to get the logged-in user. Here impersonate is turned off.Right now, we are move to Windows 2008 RC2 where this Windows Authentication problem arised. I have Digest Authentication and Windows Authentication enabled. And also I have enabled Anonymous Authentication enabled to avoid the Login dialog of IIS in the end-user IE. Now I am getting HttpContext.Current.User.Identity.Name as Empty. When I impersonate using username and password, I am used to login using that user but all the users uses the same user to login.Does any has solution for this?Deployment Server - Windows 2008 RC2 (IIS 7.5)Development - Windows 7 (IIS 7.5)I am new to IIS 7.5. Please give me a solution

    Problem setting up approve/reject settings in Absence Request and Vacation Management Template

    Hi I have recently installed and set up the absence request and vacation management template in SharePoint Services 3.0 and all seems to be going reasonably well apart from one hitch. I have edited the setup workflow so that manager is sent an email on request, employee is sent an email on approval/rejection and payroll are sent an email on approval for their records. However, even though the Personal Vacation option in the Absence Type list is set to Yes for Approval Required, the workflow is automatically sending out the email to say their annual leave has been approved as soon as they request it. Has anyone come across this before or know where I may be going wrong? Thanks for any help you can give. Jo

    Problem setting variable/param in XSLT for XML control in .NET 4.0

    I am using an XML control in VS2010 with .NET 4.0.I am trying to sort XML data into a table. I have a drop list with the sort key, and a button that is supposed to display the table with a new sort.Here is the code the button calls:</p><p></p><p style="text-align: left;" mce_style="text-align: left;"><font class="Apple-style-span" face="Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace"><span class="Apple-style-span" style="border-collapse: collapse; line-height: 13px;" mce_style="border-collapse: collapse; line-height: 13px;" mce_fixed="1"></span></font></p><p><font class="Apple-style-span" face="Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace"></font></p><p><font class="Apple-style-span" face="Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace"><div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">private void PopulateXML( Xml MyXML)</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: h

    Problem with IndexOf function in Java script?


    Hi all,  i have one problem while using Index Of function in java script. I am using this in this way:

    var ss=(document.getElementById('<%=HiddenField1.ClientID%>').value.indexOf(","+document.getElementById('<%=yyy.ClientID%>').value+"-"+document.getElementById(str).value,20));                       

    Problem with WCF CallBack function



    I have a problem with WCF CallBack function (DuplexChannel). The main problem is that when I invoke that method on the client I got a message format like that below:

    <ClientCallBackFunc xmlns="http://tempuri.org/ ">

    where ClientCallBackFunc is name of callback method.

    I made service:

    public interface IClientCallBack



        void ClientCallBackFunc(string IssueId, string AgreementId, string LimitId);




    public interface IService


        string ServerMethod(string IssueId, string AgreementId, string LimitId);


    but I should prefer to get like this:




    So, when I want send message from server side (callba

    function problem



    i have the following function in my app_code which gets the data from database with datareader

    now on anothe page i need to output all of the data to a label

    i do not want to use datalist or gridview

    hwo should i do this?

    the function loops through the data ,i can put the function on the same page and use label.text += mydata

    but since it's a function and i want to use it on other pages how is it possible?

    Public Function getMembers(ByVal userID As Integer) As Boolean
                Dim Conn As New SqlConnection(HttpRuntime.Cache("con"))
                Dim dr As SqlDataReader
                Dim strSQL As String
                strSQL = "select * from test "
                Dim cmd As New SqlCommand(strSQL, Conn)
                cmd.Parameters.Add(New SqlParameter("@userID", userID))
                dr = cmd.Execute

    Problem with ISNumeric function in SQL Server 2005


    Even though the system function IsNumeric('2,344') returns a true in SQL Server 2005, why does the following throw an error? Is there a special way to cast to numeric types in SQL Server 2005, so the statement below does not throw an error?

              WHEN 1 THEN CAST('2,344' AS INT)
              ELSE NULL

    rand function problem



    i use the following code which loops through the numbers of a listbox and adds records to a database

    in the db i use the rand function to add a unique id to msgID field which accepts unique values

    but when the records are more than 1 or 2 i get error which says Cannot insert duplicate key row in object

    which means the rand function adds the same values

    how should i solve the problem??

    IF EXISTS (SELECT * FROM sysobjects   WHERE name = 'Message'   AND type = 'P')

      @Message ntext
      Insert into CmmNet_inbox (MsgID,Message) values (round(RAND()*10000000000,0),@message)

      Dim ctr As Integer
                        For ctr = 0 To ListFriends.Items.Count() - 1
                            If ListFriends.Items(ctr).Selected Then

    problem setting instance configuration.


    I'm trying to install SS 2008 Express with Advanced Services and am having a problem with the Instance Configuration.  

    The default instance is preset with an InstanceID of SQLExpress.  This gives me an error that says:

    "The instance of SQL Server already has an instanceID of '1' that is different than the specified Instance ID 'SQLExpress'.  Specifying more than one instance ID for the same SQL Server instance is not supported."

    Then in the area that shows the installed instances it has: Instance="SQLEXPRESS", Version "9.2.3042.00", InstanceID="MSSQL.1".

    I think the instance that's already installed is the SS 2005 express that was installed with VS 2008.  It looks like the Version of the SS 2008 I'm trying to install is 10.

    I've tried different things but haven't been able to get this to work.  I also tried the Named Instance but got the same error.  

    Can someone help me understand what I need to do to get this installed? 

    Backup/indexer problem


    I attempted to run a backup and got an error. The command and error are listed below:

    Stsadm -o Backup -directory <backup folder> -backupmethod full

    An indexer is not assigned to the Shared Services Provider 'SharedServices_64bit'.

    I then went to Shared Services Administration: SharedServices_64bit and under Search clicked on Search settings.

    The heading of the page that came up was Error, followed by

    An indexer is not assigned to the Shared Services Provider 'SharedServices_64bit'.

    Configure an indexer and a search database for this Shared Services Provider

    I clicked on the "Configure an indexer ... " link and got this:

    An unhandled exception occurred in the user interface.Exception Information: The specified account name is invalid.
    Parameter name: account

    I checked the Event logs

    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