Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Ravi Mori

@Ravi Mori
About
Posts
76
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • IIS hosting
    R Ravi Mori

    Going to delete this post... Because its going on wrong direction other than for what it is. Thanks all.

    ASP.NET windows-admin hosting question workspace

  • IIS hosting
    R Ravi Mori

    Good to see people are checking Quick Answers Posts also... Because i never got suggessions whenever i post there.. Sorry to cross post..Deleted from there.

    ASP.NET windows-admin hosting question workspace

  • IIS hosting
    R Ravi Mori

    Hi friends, i have an application which works fine in IIS6 but not in IIS7. If i enable IIS 6 Management Compatibility, then its working fine in IIS7 also. I don't want to enable that. Is there a way I can modify the Setup Project to produce IIS7 compatible application??

    ASP.NET windows-admin hosting question workspace

  • Add New Row dynamically to Gridview
    R Ravi Mori

    :laugh: Be specific buddy... Try once and then ask if you get any issues. Anyway checkout following link if it helps you: http://amitpatriwala.wordpress.com/2008/04/18/inserting-new-row-in-gridview-in-aspnet-20/[^]

    .NET (Core and Framework) css question

  • Add New Row dynamically to Gridview
    R Ravi Mori

    Have you tried to find about something what you want in web? Just type search keyword "asp .net gridview add new row" in google, you will get satisfaction that you done without anybodys' help.

    .NET (Core and Framework) css question

  • Fail to do binding Template Property
    R Ravi Mori

    Create property in your code and set Source="{Binding RelativeSource={RelativeSource TemplatedParent},Path=PropertyName}" in Image tag of your control template..

    WPF wpf csharp wcf tutorial

  • Retrive Data from Data Source
    R Ravi Mori

    Hi assuming you are talking about SQL database. Please look into following link: http://www.vbdotnetheaven.com/UploadFile/scottlysle/FilteredSdsVB10052008153450PM/FilteredSdsVB.aspx[^]

    .NET (Core and Framework) database csharp tutorial

  • Binding Question!
    R Ravi Mori

    Try something like this.. IsEnabled="{Binding Content.IsValid, ElementName=WizardHost, Converter={StaticResource textBoolConverter}}"

    WPF question php wpf wcf com

  • wpf tooltip on datagrid cell. [modified]
    R Ravi Mori

    Hi, i have a gridview and in style of celltemplate i define tooltip equals to whatever content that cell have. So it will display blank tooltip while content equals to null. So what to do for not displaying tooltip if data is not available in cell? Any tricks in datatrigger?? Solved : Done by writing following code : <DataTrigger Value="{x:Null}" Binding="{Binding Content, RelativeSource={RelativeSource Self}}"> <Setter Value="false" Property="ToolTipService.IsEnabled"/> </DataTrigger>

    modified on Tuesday, April 20, 2010 6:53 AM

    WPF wpf csharp wcf question

  • WPF - UIElement from binded property
    R Ravi Mori

    Hi friends, Is there any way to get UIElement from its binded property name in wpf? What i want is to focus the first control on the form which has error(error means invalid information). i am using IDataErrorInfo here. Thanks.

    WPF csharp wpf help question

  • Entity framework + IDataErrorInfo
    R Ravi Mori

    Hi friends, I am using entity framework. Now what i want is to implement IDataErrorInfo interface in all entities. i find following great article (in vb): http://blogs.msdn.com/bethmassi/archive/2008/02/25/simple-validation-with-linq-to-sql-classes.aspx[^] But i don't want to extend all classes by writing in code behind file of model, that is our linq to sql classes. So is there any other way for validating entities in entity data model.

    .NET (Core and Framework) csharp database linq com

  • Entity data model with Master-detail scenario [modified]
    R Ravi Mori

    Ohhh really?????? Thanks a lot.

    .NET (Core and Framework) help

  • Entity data model with Master-detail scenario [modified]
    R Ravi Mori

    Sorry but i can read it from here. Can you tell me which lines of the code you are not able to read?

    .NET (Core and Framework) help

  • Entity data model with Master-detail scenario [modified]
    R Ravi Mori

    hi, I am using entity data model and i have master-detail scenario.(Patient-PatientAddresses) Everything is going on fine if i am updating any data either in master table or detail table. But when i am going to insert a new detail record while updating master entity, it gives me following error : "An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key." I googled so much, but not getting proper idea. Here is my code :

    using (var context = new Entities())
    {
    try
    {
    var record = (from p in context.Patient.Include("PatientAddress")
    where p.PatientId == patient.PatientId
    select p).FirstOrDefault();

                    if (record == null)
                    {
                        context.AddToPatient(patient);
                    }
                    else
                    {
                        foreach (var item in patient.PatientAddress)
                        {
                            if (item.EntityKey == null)
                            {
                                context.AddToPatientAddress(item); // <--Throws Exception here.
                                continue;
                            }
                            context.ApplyPropertyChanges("PatientAddress", item);
                        }
                        context.ApplyPropertyChanges("Patient", patient);
                    }
                    context.SaveChanges();
                    return true;
                }
                catch
                {
                    return false;
                }
            }
    

    Any suggessions is appreciated.

    modified on Wednesday, February 3, 2010 9:55 AM

    .NET (Core and Framework) help

  • Ado .net entity data model with My Sql database [Solved]
    R Ravi Mori

    Hi friends.. I used entity data model with Microsoft Sql database since 6 months. But today i use MySql database and generate model for that database. I got error when i insert a record in a table which have relationships with two other tables.This table have unique rows based on those two related tables.So this table don't have any primary key.. I got the following error: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ......." The table in which i insert data have not any primary key..So is it the reason for that error?? Please reply..Please also provide some good links for MySql+EntityDataModel if anybody have..

    modified on Saturday, October 31, 2009 7:44 AM

    The table in which i insert data have not any primary key..that was the reason for that error..

    modified on Saturday, October 31, 2009 7:56 AM

    .NET (Core and Framework) database csharp mysql sysadmin help

  • How to redirect on first and last page of gridview using object datasource?
    R Ravi Mori

    Thanks a lot.. Pager Settings works for me..

    ASP.NET tutorial question

  • How to redirect on first and last page of gridview using object datasource?
    R Ravi Mori

    Hi friends.. I have gridview and i fill data in gridview using ObjectDataSource. I set properties EnablePaging and PageSize for displaying page numbers.. Now what i want to add is "First" and "Last" link on paging..So user can go to either first or last page of gridview by clicking on it.. So how to achieve that? Thanks..

    ASP.NET tutorial question

  • Client Application Services
    R Ravi Mori

    You told that your connectionstring,membershipprovider,roleprovider etc. are fine and when you are creating new account, it can't be authenticate.. This might because your new account is still deactivated..so checkout in your database, whether that user is active or not??

    C# csharp asp-net database help question

  • reauthentication
    R Ravi Mori

    hi.. checkout below link. If your application running successfully in your visual studio, then following will help you.. http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/[^]

    ASP.NET sysadmin windows-admin csharp asp-net database

  • Connection Error
    R Ravi Mori

    http://localhost/servicemodelsamples/service/calculatorservice.svc you have to give .svc extension behind your service in your config as well as in code behind and also if you give port 8080(not 8000) in config then also provide it in code behind...

    WCF and WF help csharp wcf tutorial workspace
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups