I am using TinyMCE 4.0 and everything works fine except binding with reference to this question I asked earlier and the answer .

The Problem:

I am able to bind the value into newProductText.ProductText but only when I format the the which is entered in the HTML WYSIWYG text editor space.

For example if I enter 'sample' as text and select it and change the size or font only then the $scope.newProductText.ProductText gets updated.

Setting up TinyMCE:

$scope.tinymceOptions = {
        selector: "textarea",
        theme: "modern",
        plugins: ["textcolor code link"],
        statusbar: false,
        browser_spellcheck: true,
        resize: false,
        menubar: false,
        toolbar1: "fontselect | fontsizeselect | bold italic underline | bullist numlist | alignleft aligncenter alignright | forecolor backcolor | link unlink | code",

Setting up Scope variable:

var NewCustomerProductText = {
    SalesPartNo: $scope.initial,
    LanguageCode: $scope.initial,
    ProductText: $scope.initial,
$scope.newProductText = NewCustomerProductText;


 @Html.Label("Language", new { @for = "language" })
 <select id="language" ng-model="newProductText.LanguageCode" ng-options="language.LanguageName for language in languages"><option value="">-- Choose Language --</option></select>
 @Html.Label("Sales Part No:", new { @for = "salesPartNo" })
 @Html.TextBox("salesPartNo", null, new { placeholder = "Click to select sales part no", @readonly = "readonly", ng_click = "OpenProducts()", ng_model = "newProductText.SalesPartNo" })
 @Html.TextArea("tinymce2", new { data_ui_tinymce = "tinymceOptions", ng_model = "newProductText.ProductText" })
 <button ng-click="addProductText()" /> Add </button>

I have a question. I have Index view and it has a button. I want to show loading panel when the page refresh and the button click but I couldn't do. To do this in layout, I must add the event or something like that to show loading panel when click the button. But How ? Here is my code.

<!DOCTYPE html>




<script type="text/javascript">
function OnLoadingPanelInit(s, e) 
    e.processOnServer = true;
function OnLabelInit(s, e) {

    //Hide After Timeout
    setTimeout(function () {
    }, 1000);


@*Loading Panel*@
@Html.DevExpress().LoadingPanel(settings => {
settings.Name = "lp";
settings.Modal = true;
settings.ClientSideEvents.Init = "OnLoadingPanelInit";
@*Loading Panel*@

@*Last DevExpress Object*@
@*Last DevExpress Object*@

@Html.DevExpress().Label(settings => {
settings.Name = "lbl";
settings.Properties.ClientSideEvents.Init = "OnLabelInit";


@model Project.Models.Kullanici
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";


@using (Html.BeginForm("Index", "Home", FormMethod.Post))
    @Html.DevExpress().LabelFor(a=> a.TcKimlik, settings =>
        settings.Width = 100;

    @Html.DevExpress().TextBoxFor(a => a.TcKimlik, settings =>
        settings.Width = 200;

    @Html.DevExpress().LabelFor(a => a.Sifre, settings =>
        settings.Width = 100;

    @Html.DevExpress().TextBoxFor(a => a.Sifre, settings =>
        settings.Width = 200;

    @Html.DevExpress().CheckBox(settings =>
        settings.Name = "remember";
        settings.Checked = false;
        settings.Text = "Remember me?";


    @Html.DevExpress().Button(settings =>
        settings.Name = "login";
        settings.Text = "Login";
        settings.UseSubmitBehavior = true;
        settings.RouteValues = new { Action = "Index", Controller = "Home" };



using DocumentFormat.OpenXml.Wordprocessing;
using DocumentFormat.OpenXml;

namespace GeneratedCode
    public class GeneratedClass
        // Creates an Document instance and adds its children.
        public Document GenerateDocument()
            Document document1 = new Document(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15 wp14" }  };
            document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas");
            document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing");
            document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
            document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            document1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml");
            document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup");
            document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk");
            document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
            document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape");

            Body body1 = new Body();

            Paragraph paragraph1 = new Paragraph(){ RsidParagraphMarkRevision = "00100E91", RsidParagraphAddition = "009D5F75", RsidRunAdditionDefault = "00100E91" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            Languages languages1 = new Languages(){ Val = "en-US" };



            Run run1 = new Run();

            RunProperties runProperties1 = new RunProperties();
            Languages languages2 = new Languages(){ Val = "en-US" };

            Text text1 = new Text();
            text1.Text = "Hello";

            BookmarkStart bookmarkStart1 = new BookmarkStart(){ Name = "_GoBack", Id = "0" };
            BookmarkEnd bookmarkEnd1 = new BookmarkEnd(){ Id = "0" };


            SectionProperties sectionProperties1 = new SectionProperties(){ RsidRPr = "00100E91", RsidR = "009D5F75" };
            PageSize pageSize1 = new PageSize(){ Width = (UInt32Value)11906U, Height = (UInt32Value)16838U };
            PageMargin pageMargin1 = new PageMargin(){ Top = 1134, Right = (UInt32Value)850U, Bottom = 1134, Left = (UInt32Value)1701U, Header = (UInt32Value)708U, Footer = (UInt32Value)708U, Gutter = (UInt32Value)0U };
            Columns columns1 = new Columns(){ Space = "708" };
            DocGrid docGrid1 = new DocGrid(){ LinePitch = 360 };



            return document1;


I want to get the document created on this code (code from Open XML SDK).

how by pressing the button to get ready document (get hello.docx)?

Created project: asp.net mvc 4 add: 1) Controller 2) View-> code:

    @using (Html.BeginForm())
        <input type="submit" value="Get docx file" />

I am working on Bundling js files using .NET 4.5 bundling System.Web.Optimization; on WebForms. I have managed to add files to BundleTable successfully, enter image description here

however they don't seem to appear on web page itself. I am able to see bundle specified in Sources Tab on Google Chrome but it is empty, and scripts are failing to load.

enter image description here

I must be missing something here, how do I inspect that bundles have loaded correctly on the browser, and check the contents.

Not that I think it matters, but to prevent avalanche of downvotes.


protected void Application_Start(object sender, EventArgs e)


namespace OnTheMoveOffline.Framework.App_Start
    public class BundleConfig
        public static void RegisterBundles(BundleCollection bundles)
            bundles.Add(new ScriptBundle("~/OnTheMoveWebFiles/bundles/development").Include("~/OnTheMoveWebFiles/js/*.js"));
            var resolver = new BundleResolver(bundles);
            List<string> cont = resolver.GetBundleContents("~/OnTheMoveWebFiles/bundles/development").ToList();


 <%: System.Web.Optimization.Scripts.Render("~/bundles/development") %>

I'm a php developer and i want to learn using asp.net MVC4 in web developing , i started downloading Pro ASP.NET MVC4 Framework and professional asp.net MVC4 and i found a series of tutorials on the internet.

I tried to look at it but I found that it need a lot of effort.

but i have a question , if I must firstly learn normal C# and asp.net without MVC , then start using model-view-controller , or I can start learning MVC4 directly ??

please recommend to me resources to a new comer to this field.

thanks in advance

I'm still learning asp.net and I want to ask you about how to reverse the grid view, I mean the default grid view would be like this

grid view with columns header

and this is the code for it:

        <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" 
        AutoGenerateColumns="false" Width="256px">

            <asp:TemplateField HeaderText="1"> <ItemTemplate>
                            <asp:Label ID="test1" runat="server" Text="test1"></asp:Label>

            <asp:TemplateField HeaderText="2"> <ItemTemplate>
                            <asp:Label ID="test2" runat="server" Text="test2"></asp:Label>

            <asp:TemplateField HeaderText="3"> <ItemTemplate>
                            <asp:Label ID="test3" runat="server" Text="test3"></asp:Label>
                         </ItemTemplate></asp:TemplateField>  </Columns>
        <RowStyle HorizontalAlign="Left" VerticalAlign="Bottom" />

and i want it to be like this picture :

enter image description here

the test here will be data bound and the numbers should be header text, this is only for test, is there a way to reverse it?

thank you all for your valuable advises and efforts, I really appreciate it.

I wrote this code in Console Application but its not working

GeoCoordinate coord = new GeoCoordinate(21.0000, 78.0000);
CivicAddressResolver res = new CivicAddressResolver();
CivicAddress add= res.ResolveAddress(coord);

I am new on FB API. I don't know how I can show comments of my website's page on facebook's post (relevant to that page)

Please help me on showing my website's page comments (will be done by users with proper facebook auth) on specific post of facebook

I am using IHttpHeader to redirect 403 requests to a 404. This is running on a .Net 3.5 Web Forms and IIS 6 setup.

<add verb="*" path="products/" type="RequestCheck.NoAccessHandler, RequestCheck, Version=, Culture=neutral" />

The site is also running with a CMS system handled by another department, and all of their files are under a marketing folder, in which they also have a products folder.

Directory structure


Before I realized this marketing folder existed (we don't get to see it in development) the following code was working fine.

    public void ProcessRequest(HttpContext context)
        context.Response.StatusCode = (int)HttpStatusCode.NotFound;

We have a link in the navigation similar to this


Which of course now redirects to the NotFound.aspx page, since it is going to products/ If you navigate directly to the default.asp inside of it, you can get to the page.

The easy fix is to just update the navigation to use the following url


This isn't a fix for us, because they want me to handle it in code. So I changed my handler to the following.

    public void ProcessRequest(HttpContext context)
        var url = context.Request.Url.ToString().ToLower();
        if (url.Contains("/mtgmktg/")) // ignore any requests coming for the CMS folders
        else // everything else gets a 404
            context.Response.StatusCode = (int)HttpStatusCode.NotFound;

And this...

    public void ProcessRequest(HttpContext context)
        var url = context.Request.Url.ToString().ToLower();
        if (!url.Contains("/mtgmktg/")) // ignore any requests coming for the CMS folders
            // everything else gets a 404
            context.Response.StatusCode = (int)HttpStatusCode.NotFound;

but both of these just send me to a blank page, it doesn't render anything. Then I tried this...

Bad Code

    public void ProcessRequest(HttpContext context)
        var url = context.Request.Url.ToString().ToLower();
        if (url.Contains("/mtgmktg/")) // ignore any requests coming for the CMS folders
            context.Response.Redirect(url); // This causes an infinite loop
        else // everything else gets a 404
            context.Response.StatusCode = (int)HttpStatusCode.NotFound;

Now it just goes to a "This page can't be displayed"

I have also tried removing the marketing folder through the config, but that just gets ignored. I tried putting this before and after my add above. neither one does anything.

<remove verb="*" path="marketing/" />
<remove verb="*" path="marketing/products/" />

Does anyone have any other ideas? Remember, I cannot change the link in the navigation.

Update 1

The blank page is because I didn't pay attention to what I did... The last code sample causes an infinite loop, crashing the page. So I need to rollback to one of the previous samples that are causing the blank page.

We are running a very large web application in asp.net MVC .NET 4.0. Recently we had an audit done and the performance team says that there were a lot of null reference exceptions.

So I started investigating it from the dumps and event viewer. My understanding was as follows:

We are using Asyn Tasks in our controllers. We rely on HttpContext.Current.Items hashtable to store a lot of Application level values.

Task<Articles>.Factory.StartNew(() =>
            System.Web.HttpContext.Current = ControllerContext.HttpContext.ApplicationInstance.Context;
            var service = new ArticlesService(page);
            return service.GetArticles();
        }).ContinueWith(t => SetResult(t, "articles"));

So we are copying the context object onto the new thread that is spawned from Task factory. This context.Items is used again in the thread wherever necessary. Say for ex:

public class SomeClass
    internal static int StreamID
            if (HttpContext.Current != null)
                return (int)HttpContext.Current.Items["StreamID"];
                return DEFAULT_STREAM_ID;

This runs fine as long as number of parallel requests are optimal. My questions are as follows:

1. When the load is more and there are too many parallel requests, I notice that HttpContext.Current.Items is empty. I am not able to figure out a reason for this and this causes all the null reference exceptions.

2. How do we make sure it is not null ? Any workaround if present ?

NOTE: I read through in StackOverflow and people have questions like HttpContext.Current is null - but in my case it is not null and its empty. I was reading one more article where the author says that sometimes request object is terminated and it may cause problems since dispose is already called on objects. I am doing a copy of Context object - its just a shallow copy and not a deep copy.

I seem to be doing a lot of Exception swallowing with Child Actions.

    [OutputCache(Duration = 1200, VaryByParam = "key;param")]
    public ActionResult ChildPart(int key, string param)
            var model = DoRiskyExceptionProneThing(key, param)
            return View("_ChildPart", model);
        catch (Exception ex)
            // Log to elmah using a helper method
            ErrorLog.LogError(ex, "Child Action Error ");

            // return a pretty bit of HTML to avoid a whitescreen of death on the client
            return View("_ChildActionOnlyError");

I feel like I'm cutting and pasting heaps of code, and with each cut an paste we all know a kitten is being drowned in angels tears.

Is there a better way to manage exceptions in child actions that would allow the rest of the screen to render appropriately?

When I bind a date in ASP.NET MVC to a plain text I get "/Date(8233200000)/"

To interop with this from my custom control I need to convert a Javascript Date() object to that text string?

What is the format of the number in "/Date(8233200000)/"

I have researched this quite a bit and while I can find a number of articles on the general issue and the code, unfortunately none quite like what we have.

Environment: We have 2 web servers running Windows 2012 and IIS 8. All running .net 2-4.5

Web Server 1: This is our main server that runs our main websites and web applications

Web Server 2: This runs our client websites

Code: Both sets of code are uncompiled. Both the shared code and the client websites are .NET 4 sites.


On Web1 we have a set of website code that is shared amongst a number of client websites. On Web2 the client site is set up in IIS and a sub directory of the App_code is a virtual directory pointing to a folder in the shared code on web1. We also have another virtual folder that points to the Web1 code as well. We have over 100 websites running in this fashion for over a couple of months.

Recently a couple of our clients have contacted us to say that they are receiving an error when browsing to parts of their website that are served by these virtual directories. The file that it references in the error message is in a modules folder in the virtual directory. it is a .cs file.

It only seems to be one website at a time and if we make a change that forces IIS to 'recompile' the site (meaning that we make a slight change to the web.config, save it and then change it back and save again), the error disappears and the web site starts working correctly. When we check other sites that are in the exact same setup as the one failing, we do not get any errors and they work correctly.

We are whits end as the issue seems to be completely random. This issue has only started occurring in the last week or at least this is the first we have seen of it.

We are at the point where we believe that it might be an IIS 8 issue and something that might be occurring when it is trying to recompile a client web site but due to the randomness and the 'easy fix' it is difficult to troubleshoot or even know where to go looking for the issue.

Any help would be much appreciated.



I'm using onbeforeunload to call a function when the user leaves the page. It works fine with IE and Firefox, but not with Safari and Google Chrome. Is there any solution or alternative option?


Hi struggling to work out sharepoint online provider hosted applications.

I am looking at hosting an intranet and internet site that will be able to do multiple business logic items such as dealing with payments to and from banks.

My colleague wants to develop this in sharepoint online where the scanned mail is stored but we have lots of processes that are run internally such as reports and finance on a MVC application.

How does sharepoint online applications work I'm struggling to find anything other than some tutorials on this subject.

I want to know how does a provider hosted application environment work. does the application get hosted in my local IIS/Azure and go out to sharepoint for the sharepoint stuff... or does it get hosted in sharepoint and it go back to the hosted applications.

Do I need to have have on premises sharepoint for this to work/a 3rd party such as rackspace or can I use IIS locally and only need the sharepoint online.

We communicate internally between services using WCF and Kerberos delegation. Will I still be able to use these for programs that create files that need to be sent off to printers or files that need to be imported manually into other systems such as finance files and reports.

Can I connect to my local SQL server or do I need to use azure?

If I set it up locally on IIS is it easy to switch later to it being served via Azure?

If I want to only use the sharepoint for the document management so the rest of the site is business logic am I missing out on features? other than document management I don't really understand why sharepoint online is better than say azure/IIS hosted website. can somebody explain what benefits I should be seeing so I can plan the business case and in the development planning stage.

sorry if I seem stupid I can't really find questions that adequately answer my question and I have never developed for sharepoint before.

I got a question blocked for being opinion based I hope that this isn't that way if so can somebody write an explanation of how I'm phrasing this wrong rather than just blocking me.


I have in model two fields date type (StartDate, Finish)

public DateTime StartDate { get; set; }
public DateTime FinishDate { get; set;}


@Html.TextBox("StartDate",null, new {@class="Date"})
@Html.TextBox("FinishDate", null, new { @class = "Date" })

<input type="submit" value="Generate"/>

also i have a js file with script

$(function () {
        dateFormat: "dd-mm-yy",
        showOn: "button"

when i clicked to sumbit button, controller get a model with Stardate=date from first datepicker, FinishDate=01/01/0001 ,why ? they have a same code

Folks, I have a web site (asp.NET & MVC) that is implemented using NHibernate 3.X. I have manually updated NHibernate.Search to bring it up to date with that version of NHibernate and a more recent version of Lucene.net but I am having constant performance issues with Lucene. I'd like to move towards a SOLR implementation but looking at the current codebase, the NHibernate plugin/library is deprecated and documentation is sparse.

I am using overridden NHibernate listeners to decide when to inject data into the lucene index (as my entities do not (a) put all their info into the index and (b) only enter/leave the index depending on their state (all for data security). My question is, does anyone have a good working example of how I'd implement the same kind of listener behavior on solrNET instead of lucene and NHibernate.search?

Thanks in advance...

I have an application that uses IIS 7.5X and Visual Studio 2013 and it works fine in IIS Express. I have had to make changes to allow authentication and allow 32-bit but it still doesn't work on IIS, only IIS express.

I have tried to use the publish in VS2013, but that doesn't seem to work.

Is there anyway I can find the settings used by IIS express so I can set IIS up so it works the same?

Where do I setup logs? Thanks in advance for not closing this question!


I have created one WCF service that will upload the file. and after using that service I am trying to upload the file I am able to successfully upload the file but there is some issue with the FILESTREAM class.

The moment i clicked the button to upload the file when i checked by debugging the application i get to know that stream object is null. I am passing the object of stream class to the WCF method. But due to some issue that stream object is getting null. due to that null object of stream class, image which is uploded getting empty in my folder

This is my code that I am using to upload the file

 if (FileUpload1.HasFile)
            System.IO.FileInfo fileInfo = new System.IO.FileInfo(FileUpload1.PostedFile.FileName);
            FileTransferServiceReference.ITransferService clientUpload = new FileTransferServiceReference.TransferServiceClient("BasicHttpBinding_ITransferService");
            FileTransferServiceReference.RemoteFileInfo uploadRequestInfo = new RemoteFileInfo();

            string Path = System.IO.Path.GetDirectoryName(FileUpload1.FileName);

            using (System.IO.FileStream stream = new System.IO.FileStream(FileUpload1.FileName, System.IO.FileMode.Open, System.IO.FileAccess.Read))
                uploadRequestInfo.FileName = FileUpload1.FileName;
                uploadRequestInfo.Length = fileInfo.Length;
                uploadRequestInfo.FileByteStream = stream;

Code for WCF Service

public RemoteFileInfo DownloadFile(DownloadRequest request)
            RemoteFileInfo result = new RemoteFileInfo();
                // get some info about the input file
                string filePath = System.IO.Path.Combine(@"c:\Uploadfiles", request.FileName);
                System.IO.FileInfo fileInfo = new System.IO.FileInfo(filePath);

                // check if exists
                if (!fileInfo.Exists) throw new System.IO.FileNotFoundException("File not found", request.FileName);

                // open stream
                System.IO.FileStream stream = new System.IO.FileStream(filePath, System.IO.FileMode.Open, System.IO.FileAccess.Read);

                // return result

                result.FileName = request.FileName;
                result.Length = fileInfo.Length;
                result.FileByteStream = stream;
            catch (Exception ex)

            return result;


        public void UploadFile(RemoteFileInfo request)
            FileStream targetStream = null;
            Stream sourceStream = request.FileByteStream;

            string uploadFolder = @"C:\upload\";
            if (!Directory.Exists(uploadFolder))

            string filePath = Path.Combine(uploadFolder, request.FileName);

            using (targetStream = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.None))
                const int bufferLen = 65000;
                byte[] buffer = new byte[bufferLen];
                int count = 0;
                while ((count = sourceStream.Read(buffer, 0, bufferLen)) > 0)
                    targetStream.Write(buffer, 0, count);

I developed a rest api using ASP.net web api. When I deploy this rest api on iis, I need to create it as a web application under an asp.net web site. When I was deploying the rest api as a new web site in iis, then things worked fine. I was using the following Route api/{controller}/{id}.
When I created the rest api as a web application underneath asp.net web site project, I named the web application as api. I can't access the api methods now. Can someone point what I do wrong?

Hopefully a quick answer.

How can i edit an item in a ListView control which is nested inside a Repeater control? I've posted me code example below.

Say i have the following html:

<asp:Repeater runat="server" ID="Repeater1" 
        <h1><%# Eval("Name") %></h1>
        <asp:ListView runat="server" ID="ListView1" OnItemEditing="ListView1_OnItemEditing">
                <p><%# Eval("Name") %></p>
                <asp:Button Text="Edit" runat="server" CommandName="edit" CommandArgument="edit" />
                <asp:TextBox ID="townName" runat="server" Text='<%# Eval("Name") %>'></asp:TextBox>
                <asp:Button Text="update" runat="server" />

The code behind i have is:

public List<country> countries = new List<country>();
    protected void Page_Load(object sender, EventArgs e)
        if (!IsPostBack)
            List<town> tmp = new List<town>();
            tmp.Add(new town { name = "swindon" });
            tmp.Add(new town { name = "Londin" });

            countries.Add(new country() { name = "england", towns = tmp });

            tmp = new List<town>();
            tmp.Add(new town { name = "Paris" });
            tmp.Add(new town { name = "Niece" });

            countries.Add(new country() { name = "france", towns = tmp });

            tmp = new List<town>();
            tmp.Add(new town { name = "Florida" });
            tmp.Add(new town { name = "Ohio" });

            countries.Add(new country() { name = "usa", towns = tmp });


    private void BindRepeater()
        Repeater1.DataSource = countries.ToList();

    protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
        ListView lv = (ListView)e.Item.FindControl("ListView1");
        lv.DataSource = ((country)e.Item.DataItem).towns.ToList();

    protected void ListView1_OnItemEditing(object sender, ListViewEditEventArgs e)
        ListView lv = (ListView)sender;
        lv.EditIndex = e.NewEditIndex;

How can i actually get the ListView (which is a child of the repeater) in to edit mode so i can edit their items? The code i have at the moment simply blanks out all of the bound data on second click but does turn the ListView into edit mode (but doesn't contain any values which i set via the eval).

Hope this makes sense and hope someone can help, driving me crackers.