Country Name exists or not in Jquery!!

Hi All,
I want to validate country filed in Jquery, when the users clicks the filed if that country does not exists in database then the validation should throw error.
Below is the script i had wriiten when the submit button is pressed. Now how to handle those error messages in the below script.
function validateCTRY(){
                var data=$.data(P1_ENG_CTRY);
                if (data.autocomplete.selectedItem)
                                if(data.autocomplete.selectedItem==undefined)
                                                invalidModel = true;  //error scenario
                                else
                                                $(P1_ENG_CTRY).css("background-color","#FFFFFF"); //success scenario
                else
                                invalidModel = true; //error scenario
}Thanks,
Anoo..
Edited by: Anoo on Sep 28, 2012 12:22 AM
Edited by: Anoo on Sep 28, 2012 3:59 AM
Edited by: Anoo on Sep 28, 2012 6:00 AM
Edited by: Anoo on Sep 28, 2012 6:09 AM
Edited by: Anoo on Sep 28, 2012 6:10 AM

Hi Alistair,
At last i could able to figure it out and could able to run the same.. But i had another problem the thing is i had nearly 9 autogen items where i had hadnled the funcation as mention below..Asumming i had enter only first two fileds and rest are empty but it is triggring for all the rest of items.
How we can handle this scenerio...Any help on this below code..
var validPlattsPopupLead=true;
function validatePlattsPopupLead()
     $("#P3_ENG_PART1").add("#P3_ENG_PART2").add("#P3_ENG_PART3").add("#P3_ENG_PART4").add("#P3_ENG_PART5").
     add("#P3_ENG_PART6").add("#P3_ENG_PART7").add("#P3_ENG_PART8").add("#P3_ENG_PART9").each(function()
          var data=$.data(this); //this -> should be the object or Text box element
          if (data.autocomplete.selectedItem)
               if(data.autocomplete.selectedItem==undefined)
                    validPlattsPopupLead = false;  //error scenario
                    $(this).css("background-color","#FF0000");
                    alert("Value selected is not present autocomplete!!!");
               else
                    $(this).css("background-color","#FFFFFF"); //success scenario
                    alert("Value selected is present in autocomplete!!!");
                    validPlattsPopupLead = true;
          else
                          validPlattsPopupLead = false; //error scenario
               $(this).css("background-color","#FF0000");
               alert("Two Value selected is not present  autocomplete!!!");
     return validPlattsPopupLead;
}Thanks,
Anoo..

Similar Messages

  • Country name in Chinese not displaying in PDF

    Hi Experts
    I am working on a Chinese localisation DB and when I export any docs to PDF the country name disappears. Print preview is fine . I have checked the forum and found the following link Chinese Characters not display when PDF for marketing doc which was helpful but unable to resolve the issue even after using different Chinese recognisable font. Just like to know how to get around this ?
    Has any one comeup with this kind of issue ? Any help will be appreciated.
    regards
    Johnson

    Hi All,
    The issue has been fixed. There is a SAP note  1406074 as per the sap note,
    Exporting Chinese/Japanese character correctly, involves a setting of the layout in SAP Business One.
    1. Open the document layout.
    2. Go to Print Layout Designer > Display Document Properties > Format tab;
    3. Tick the "E-Mail Layout" checkbox, and choose a Chinese / Japanese font (E.g. MS Mincho)
    4. Save the layout and set as default.
    5. Export to PDF.
    I had always changed the format to Chinese but never ticked the ' E-mail Layout box'  This is just for information & thanks to Gordon and Rakesh for the inputs.
    regards
    Johnson

  • Country name in address (note 40467)

    Hi
    I would need to customize the set up for country name print in all forms. The name of a country is now printed in short style (eg DE-12345) and it does not help to use the advise given in SAP note 40467 to run report RS005ADR  to set the indicator "Print country description"  T005-XADDR.
    What could be wrong and how could we print the address the way below for foreign letters:
    Name
    Street
    Postcode City
    Country
    Br
    F

    Hello,
    The FM uses postal regulations for printing the country. So it won't print the country if the from and to countries are the same.
    i.e. if the address is in Canada and the send from is Canada, don't bother printing the country.
    The EU has it's own little quirk of printing the country as a single character before the postal code when mailing another EU country.
    i.e. Sending from Germany to France you'll see F-##### instead of France
    Oh, and the country is in the language of the sending country unless you set it otherwise (If I'm sending from Canada to China, Canada Post needs to be able to read CHINA to know what international bin to toss it into).
    VD03 doesn't know the sender country so it always shows the country.
    Thank you,
    Michael

  • Country of origin not valid; country of origin is not allowed or does not exist

    Dear Expert,
    I am using SAP 9.0 PL 09 , its upgraded from 8.82. Now my problem is while updating the Sales quotation and sales order only particular series name it getting the following error with effect from  2009 to till date sales quotations and sales order. I have multiple series name.
    "Country of origin not valid; country of origin is not allowed or does not exist"
    i  have  some addon but if i stop and proceed also the same problem comming. Can any one help me it will be good.
    Thanks in advance.
    Thanks and regards,
    Shamugam V.

    Symptom
    It is not possible to add or update marketing documents if an item has a value in the Country of Origin field. The application displays the following error message: "Country of origin not valid; country of origin is not allowed or does not exist".
    Reproducing the issue
    Prerequisites:
    Your company database is not in the Russia localization or you have not enabled the Intrastat feature that is relevant to EU countries only.
    Scenario:
    1. Create or update an item using the DI API. Specify a value for in the Country of Origin field. (Note that this field is not visible in the application).
    2. Try to create a marketing document (that is, an invoice using this item).
    Actual behavior:
    The document cannot be added and the application displays the following error message "Country of origin not valid; country of origin is not allowed or does not exist".
    Expected behavior:
    The document can be added.
    Cause
    Application error
    Solution
    WORKAROUND:
    Update the affected items using the DI API as follows:
    1.  Run the following query to identify the affected items:
    select CountryOrg, * from oitm where CountryOrg is not null
    2.  In the Country of Origin field, set a blank value.
    SAP intends to provide a patch or patches in order to solve the problem described. The section Reference to Related Notes below will list the specific patches once they become available.
    The corresponding Info file of the patches in SAP Service Marketplace will also show the SAP Note number. Be aware that these references can only be set at patch release date.
    SAP will deliver patches only for selected releases at its own discretion, based on the business impact and the complexity of the implementation.
    Other terms
    country of origin, DI API, marketing documents

  • The name "Folder" does not exist in the namespace

     I am trying to learn Wpf and doing some of the examples on the Microsoft site. https://msdn.microsoft.com/en-us/library/vstudio/bb546972(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
    I am using Visual studio 2013. As I work through the example I am getting the following error. 
    Error 1
    The name "Folder" does not exist in the namespace "clr-namespace:FolderExplorer".
    c:\users\hbrown\documents\visual studio 2013\Projects\FolderExplorer\FolderExplorer\MainWindow.xaml
    11 17
    FolderExplorer
    Error 2
    The name "Folder" does not exist in the namespace "clr-namespace:FolderExplorer".
    c:\users\hbrown\documents\visual studio 2013\Projects\FolderExplorer\FolderExplorer\MainWindow.xaml
    16 7
    FolderExplorer
    Here is the code:
    <Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:my="clr-namespace:FolderExplorer"
        Title="Folder Explorer" Height="350" Width="525">
        <Window.Resources>
            <ObjectDataProvider x:Key="RootFolderDataProvider" >
                <ObjectDataProvider.ObjectInstance>
                    <my:Folder FullPath="C:\"/>
                </ObjectDataProvider.ObjectInstance>
            </ObjectDataProvider>
            <HierarchicalDataTemplate 
       DataType    = "{x:Type my:Folder}"
                ItemsSource = "{Binding Path=SubFolders}">
                <TextBlock Text="{Binding Path=Name}" />
            </HierarchicalDataTemplate>
        </Window.Resources>
    I have a class file named Folder.vb with this code. 
    Public Class Folder
        Private _folder As DirectoryInfo
        Private _subFolders As ObservableCollection(Of Folder)
        Private _files As ObservableCollection(Of FileInfo)
        Public Sub New()
            Me.FullPath = "c:\"
        End Sub 'New
        Public ReadOnly Property Name() As String
            Get
                Return Me._folder.Name
            End Get
        End Property
        Public Property FullPath() As String
            Get
                Return Me._folder.FullName
            End Get
            Set(value As String)
                If Directory.Exists(value) Then
                    Me._folder = New DirectoryInfo(value)
                Else
                    Throw New ArgumentException("must exist", "fullPath")
                End If
            End Set
        End Property
        ReadOnly Property Files() As ObservableCollection(Of FileInfo)
            Get
                If Me._files Is Nothing Then
                    Me._files = New ObservableCollection(Of FileInfo)
                    Dim fi As FileInfo() = Me._folder.GetFiles()
                    Dim i As Integer
                    For i = 0 To fi.Length - 1
                        Me._files.Add(fi(i))
                    Next i
                End If
                Return Me._files
            End Get
        End Property
        ReadOnly Property SubFolders() As ObservableCollection(Of Folder)
            Get
                If Me._subFolders Is Nothing Then
                    Try
                        Me._subFolders = New ObservableCollection(Of Folder)
                        Dim di As DirectoryInfo() = Me._folder.GetDirectories()
                        Dim i As Integer
                        For i = 0 To di.Length - 1
                            Dim newFolder As New Folder()
                            newFolder.FullPath = di(i).FullName
                            Me._subFolders.Add(newFolder)
                        Next i
                    Catch ex As Exception
                        System.Diagnostics.Trace.WriteLine(ex.Message)
                    End Try
                End If
                Return Me._subFolders
            End Get
        End Property
    End Class
    Can someone explain what is happening. 
    Thanks Hal

    Did you try to build the application (Project->Build in Visual Studio) ? If the error doesn't go away then and you have no other compilation errors (if you do you need to fix these first), you should replace "FolderExplorer" with the namespace
    in which the Folder class resides. If you haven't explicitly declared a namespace, you will find the name of the default namespace under Project->Properties->Root namespace. Copy the value from this text box to your XAML:
    xmlns:my="clr-namespace:FolderExplorer"
    The default namespace is usually the same as the name of the application by default so if your application is called "FolderExplorer" you should be able to build it.
    If you cannot make it work then please upload a reproducable sample of your issue to OneDrive and post the link to it here for further help.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • Receivables - ARDLP Report Not Printing Country Name

    AR Report ARDLP for concurrent program Dunning Letter Generate is not printing Country Name on send to and remit to part of the letter. Though the package 'arp_addr_label_pkg.format_address' is giving the output with the country name(when I ran the package in SQL Developer) but when I run the report it is not giving the country name. What could be the reason?
    Thanks,
    Sravanthi

    Thankyou very much Nagamohan. It is printing the country now on the dunning letters. I think it was because of settings in system options though the default country was set, print home country was unchecked. When I reran the process it printed the country.
    The Statement print program also had the same issue. Now after the changing the system options, it is printing the country in the send to address but not in the remit to address if the countries are same for both send to and remit to. If they are different it is printing in both the places. Eg. If it is United Kingdom in both send to and remit to, its printing only in send to. If its united states in send to and united kingdom in remit to then its printing in the remit to area. Any idea on this?
    Thanks,
    Sravanthi

  • The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

    we are using VS 2013. i have created new build definition and run that created build its getting failed and showing error message as "The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly
    reference?)" and "The type or namespace name 'WinComboBox, UITestControl, WinTitleBar.....etc' could not be found (are you missing a using directive or an assembly reference?)". in the error log is showing the error number are "error CS0234
    & error CS0246". 
    Actually i have created build for automation execution from MTM lab environment. i have to assign the build to the test plan. once the build is passed , i will assign to the test plan and run with automation options. 
    if i build the solution its getting successfully build. but when i run the created build definition it show the error message's.  
    Could you guide me how to resolve the above error's ? 
    Thanks in Advance...

    Hello Divakar Ponnada,
    I have checked the error CS0234 from here:
    http://msdn.microsoft.com/en-us/library/0e92xd7b.aspx
    It means your project cannot find the proper reference to your type "Visual Studio" from the namespace Microsoft.
    May I ask this question, does your build definition means something like the following blog described?
    http://www.asp.net/web-forms/overview/deployment/configuring-team-foundation-server-for-web-deployment/creating-a-build-definition-that-supports-deployment
    "A build definition is the mechanism that controls how and when builds occur for team projects in TFS. "
    If that is the problem, may I ask whether your build agent is in the same machine where you build your application?
    The build agent will first search for the reference from its local GAC and if it cannot find it, the error like you said will reports. Please manually build your project from your build agent machine to see the result, or install Visual Studio to your build
    agent machine. In that way I think your problem may fixed.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The type or namespace name 'Optimization' does not exist in the namespace 'System.Web'

    App_Start\BundleConfig.cs (1): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     Global.asax.cs (4): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     App_Start\BundleConfig.cs (8): The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)
    I'm getting the above errors when attempting to create a remote build.
    I've tried the solution found here (http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html) but no luck.

    Hi,
    I have an asp.net mvc project in Visual Studio 2013. I'm hosting it on Visual Studio Online. 
    The project builds fine on my local machine/Visual Studio 2013. When i try to do a build on Visual Studio Online (i created a build definition there), i get similar errors. 
     App_Start\BundleConfig.cs (2): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     App_Start\FilterConfig.cs (2): The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     App_Start\RouteConfig.cs (5): The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     Controllers\HomeController.cs (5): The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     Controllers\HomeController.cs (9): The type or namespace name 'Controller' could not be found (are you missing a using directive or an assembly reference?)
     Global.asax.cs (5): The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     Global.asax.cs (6): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     App_Start\BundleConfig.cs (9): The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)
     App_Start\FilterConfig.cs (8): The type or namespace name 'GlobalFilterCollection' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\HomeController.cs (11): The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\HomeController.cs (16): The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\HomeController.cs (23): The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?)
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
    processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "System.Web.Optimization". Check to make sure the assembly exists on disk. If this
    reference is required by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL".
    Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
    processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
    processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
    processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "WebGrease". Check to make sure the assembly exists on disk. If this reference is required
    by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "Antlr3.Runtime". Check to make sure the assembly exists on disk. If this reference
    is required by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "Newtonsoft.Json". Check to make sure the assembly exists on disk. If this reference
    is required by your code, you may get compilation errors.
     C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Assembly strong name "System.Web.Mvc, Version=__MvcPagesVersion__, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" is
    either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('),
    Backslash(\).

  • Azure - The name 'model' does not exist in the current context

    I am getting the error below but only on Azure, everything builds and runs fine on multiple machines running locally. But when I deploy to Azure I get the error below trying to login. Not even sure where to start researching this one
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
    Compiler Error Message: CS0103: The name 'model' does not exist in the current context
    Source Error:
    Line 1: @model Web.Models.LoginViewModel

    hi,
    From the error message, it seems like a MVC issue.
    I suggest you could re-configure your web configuration follow those solutions The name 'model' does not exist in current context in MVC3
    and
    Razor View throwing “The name 'model' does not exist in the current context” .
    And then you could try to deploy project to azure again. I think this error may be disappeared. Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 'ServerProperty' with 'Name' = 'Language' does not exist in the collection

    LS,
    One of my customers (using ssas 2012) is facing collation issues which result in missing facts in the cubes. I suggested them  to have a look at the Analysis Server Properties. Howevere, on selection of the Analysis Services Properties page 'Language-Collation',
    it doesn't open the page showing the properties, but instead the following message pops up:
    'ServerProperty' with 'Name' = 'Language' does not exist in the collection
    Any ideas on what could have caused this and how it can be fixed ?
    We're considereing a restart of the SSAS server, but need to be very carefull because it's their production environment.
    Appreciate your help,
    Kind regards,
    Cees
    Please remember to mark replies as answers or at least vote helpfull if they help and unmark them if they provide no help.

    I am also experiencing this error when clicking on the Language/Collation page of the Analysis Services Properties dialog.
    I suspect this is causing some other strange behavior such as an "invalid characters in hierarchy names" error when deploying an SSAS database, when the same solution/project can be deployed successfully from other machines. In that case, there are parenthesis
    in the attribute name but no user-defined hierarchies. Error:
    Errors in the metadata manager. The name, 'Project ID (Description)', for the cube hierarchy is not valid because this name is a reserved word, contains one or more invalid characters (.,;'`:/\*|?"&%$!+=()[]{}<>), or is longer than 100 characters.
    I would like to avoid having to re-install SSAS if at all possible. Any help is much appreciated.
    LB

  • Error on new windows 8.1 project: The type or namespace name 'Foundation' does not exist in the namespace

    I upgraded to win 8.1 and VS 2013. I created a new Windows 8.1 C# grid  project and tried to compile it and I'm seeing the  following error: Error 1 The type or namespace name 'Foundation' does not exist in the namespace [my namespace](are
    you missing an assembly reference?)
    The errors are in navigationhelper.cs line 59  
    [Windows.Foundation.Metadata.WebHostHidden] // Foundation has the squigglies
    public class NavigationHelper : DependencyObject
    and app.xaml.cs line 68 ==> rootFrame.Language = Windows.Globalization.ApplicationLanguages.Languages[0]; which causes this error: Error 2 The type or namespace name 'Globalization' does not exist in the namespace [my namespace] (are you missing
    an assembly reference?)
    Windows phone and mvc projects are working fine and I've installed all the updates and even tried to fix vs 2013.
    Any help Is greatly appreciated.

    I did some more investigation and noticed that if I create an app with a "." in the name then this problem occurs. For example create a windows store project with the default name "App1": this will compile.
    However if I name the project "App1.Forms" to correspeond with the default namespace I want, then this problem occurs.  Still investigating but anyone should be able to repro it with that step.

  • The name 'InitializeControl' does not exist in the current context

    Hi ,
    i try to run my visual web part in vs2012,without adding any code to template i deploy web part into sharepoint2013.
    but i got below error
    The name 'InitializeControl' does not exist in the current context.how can i solve this error
    Thanks,
    Madhu.

    Here's my ASCX file that breaks the code generation:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VisualWebPart1.ascx.cs" Inherits="Ensol.ViewAttachmentsWP2.VisualWebPart1.VisualWebPart1" %>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:Repeater ID="Repeater1" runat="server">
    <HeaderTemplate>
    <table>
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
    <td><a href="<%# Eval("FileUrl") %>"><%# Eval("FileName") %></a></td>
    <td><asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="<%# Eval("FileName") %>" OnClick="LinkButton1_Click">Delete</asp:LinkButton></td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>
    </ContentTemplate>
    </asp:UpdatePanel>
    No matter what I've tried to do with my webpart, the VS still generates an ASCX.G.CS file with no content at all. What I'm doing wrong?

  • The contained field name "ADTAGR" does not exist in any of the database tab

    hı all
    how can l  solved thıs problem
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
    not caught in
    procedure "PUT_QMFECAT" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    An Open SQL clause was specified dynamically. The contained field name
    "ADTAGR" does not exist in any of the database tables from the FROM clause.
    Information on where terminated
        Termination occurred in the ABAP program "SAPDBZQNQ" - in "PUT_QMFECAT".
        The main program was "ZQMR_BILDIRIM ".
        In the source code you have the termination point in line 732
        of the (Include) program "SAPDBZQNQ".
    Error occurred during batch input processing
        The termination is caused because exception "CX_SY_DYNAMIC_OSQL_SEMANTICS"
         occurred in
        procedure "PUT_QMFECAT" "(FORM)", but it was neither handled locally nor
         declared
        in the RAISING clause of its signature.
        The procedure is in program "SAPDBZQNQ "; its source code begins in line
        715 of the (Include program "SAPDBZQNQ ".
    FORM put_qmfecat.
      DATA: l_tab_fields  TYPE  rsfs_tab_fields.
      DATA: l_ds_clauses  TYPE  rsds_where.
    Dynamische Feldselektion
      MOVE 'QMFECAT_C' TO l_tab_fields-tablename.
      READ TABLE select_fields WITH KEY l_tab_fields-tablename
                                    INTO l_tab_fields.
      IF sy-subrc <> c_rc00.
        CLEAR l_tab_fields.
      ENDIF.
    Dynamische Selektionskriterien
      MOVE 'QMFECAT' TO l_ds_clauses-tablename.
      READ TABLE dyn_sel-clauses WITH KEY l_ds_clauses-tablename
                                 INTO l_ds_clauses.
    DB-Zugriff
      >>>>> SELECT (l_tab_fields-fields) FROM qmfe
      INTO CORRESPONDING FIELDS OF TABLE qmfecat_tab
       WHERE qmnum  =  rqmqmel-qmnum
       AND kzloesch =  space
       AND (l_ds_clauses-where_tab)
       ORDER BY PRIMARY KEY.
    regard sinan
    Edited by: eyup_sinan on Jan 6, 2012 3:21 PM
    Edited by: eyup_sinan on Jan 6, 2012 3:30 PM

    You seem to have made a copy of the standard program. You'll have to make sure that you are handling this field correctly in your code.
    Rob

  • Error in script task "The name 'file' does not exist in the current context"

    I am new to the c# scripting and SSIS come from PHP and Foxpro.
    I am using SSIS with a script task and I am getting am errror "The name 'file' does not exist in the current context" in the following code in the picture below: (See
    Why does the object named "file" go away after the first refrence to it?? How do I make it avaliable for the whole script??
         public void Main()
            String cFileInfo = null;
            DateTime dFTPFileDateTime;
       bool fireAgain = true;
                List<IRemoteFileInfo> fileList = (List<IRemoteFileInfo>)Dts.Variables["SFTPResult"].Value;
                foreach (IRemoteFileInfo file in fileList)
                    cFileInfo = file.Name + "|" +file.ModifiedTime +"|"+ file.Size;
                Dts.Events.FireInformation(1, "Name ", cFileInfo, "", 0, ref fireAgain);
                dFTPFileDateTime =
    file.ModifiedTime;
    << This is where the error is occuring. 
                Dts.TaskResult = (int)ScriptResults.Success;

    I think you forgot { and } after the loop... Or is that deliberately?
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Visual studio 2012 the name "initializeControl" does not exist in the namespace in visual WebPart

    Hi All,
    I'm trying to create a visual webpart in SharePoint 2013 using Visual Studio 2012 and I am seeing that the file ascx.g.cs
    is missing and i have this error in file ascx.cs : the name "initializeControl" does not exist in the namespace.
    And like i said i use VS2012 Ultimate
    Can anyone Help me please!!!
    thanks.

    In most scenarios this is caused by some error in code preventing Visual Studio from generating the designer file. You could try to undo the latest changes and see whether the item is being generated or not. Additionally you could try checking if the custom
    tool is still associated with the Visual Web Part SPI in the Properties Window.
    w: http://blog.mastykarz.nl | t:
    @waldekm | c: http://mavention.codeplex.com | c:
    http://mavention.nl

Maybe you are looking for

  • OSX 10.6.8 and Internet Sharing to Ethernet

    I am trying to set up Internet Sharing so that I can connect my old MacBook Pro running 10.6.8 via ethernet to another device - I'm trying with xbox360 and Sony Blu Ray (BPD-S185) (for diversity of devices - I used to have it working on my xbox, but

  • How do i stop all of my photos i take on my iphone being put onto my ipad camera roll through icloud?

    Every photo i take on my phone its automatically put onto other devices camera rolls. this is annoying as these other devices are used by more than one person and these photos could be embarassing photos from me in younger years and its understandabl

  • Can't see my library tunes on any computer

    My shuffle works fine to play, but when I connect it to a computer, it says that the ipod is synched to a different library. I have a new ipod and want tot ransfer the music from my shuffle to this one - how do I do it when I can't see the tunes?

  • Java.rmi.RemoteException - on deploying a webservice through NWDS.

    Hi All, We have created and successfully build a webservice application in NWDS. Now when the activity is activated in Activation view, the build goes fine but deployment gets aborted with the following error: Caught exception during application depl

  • Someone has hacked into my ipad!

    I've been having problems with my password and I've had to reset it several times. Now someone has hacked in and downloaded a game in my ipad! How do I contact apple to get a refund for the price of the game? More importantly how can I stop this happ