User Profile

Collapse

Profile Sidebar

Collapse
raghulvarma
raghulvarma
Last Activity: Nov 5 '12, 11:40 AM
Joined: Oct 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Made a Mistake when adding the Foreign Key. Just need to add
    BankDetails instead of Bank_Id
    PersonDetails instead of Person_Id
    FixedDepositDet ail instead of Parent_Id
    in the foreign key attribute.
    See more | Go to post

    Leave a comment:


  • Declaring Navigation Property in Entity Framework

    Hi,

    I developed a sample application in EF which has 3 tables
    PersonDetails, BankDetails and FixedDepositDet ails. Please find the table structure below

    Code:
    create table PersonDetails
    (PersonId int Primary Key,
    PersonName varchar(30))
    
    create table BankDetails
    (BankId int Primary Key,
    BankName varchar(100),
    BankBranch varchar(100),
    BankLocation varchar(100))
    ...
    See more | Go to post

  • raghulvarma
    started a topic How to call a WCF service in silverlight
    in .NET

    How to call a WCF service in silverlight

    Hi,

    I am creating a silverlight application which uses Entity framework and to use that EF I am using WCF. i have written the service and after adding the service reference I create an instance for that. But I am not able to find any of my methods which I have created? what is the mistake I have done. Please find the project which I have created....
    See more | Go to post

  • Role Based Authorization to pages in an Application

    Hi,

    I am developing an application and I am using the forms authentication for the authentication purpose.
    Now I want to authorize users whether they are authorized to view the page or not for that i do not
    want to configure the roles in the web.config file I would like to ge the values from the DB and verify
    whether the user has rights to view the page. I need to check this to all the users for all the pages...
    See more | Go to post

  • Hi,
    I agree with your solution, The solution you have provided would work 100%. Thx for your help.
    See more | Go to post

    Leave a comment:


  • raghulvarma
    started a topic Creating Custom Configuration Sections

    Creating Custom Configuration Sections

    Hi,

    I need to have a custom connection string in the web.config because I need to ping to Database only during day time say between 8AM and 5 PM, because of this I thought of creating custom configuration.

    so I tried creating a class which extends from the class ConfigurationSe ction, Please find the coding which I have done.
    Code:
    class ExtendedConnection:ConfigurationSection
        {
            // Start
    ...
    See more | Go to post

  • raghulvarma
    started a topic Help required in System.Diagnostics

    Help required in System.Diagnostics

    Hi,

    I need to log the trace in a file. The file name needs to change every day so that that particular date holds the trace data of that particular day.
    Please find my coding in app.config
    Code:
         <system.diagnostics>
        <switches>
          <add name="TestLog" value="4"/>
        </switches>
        <trace autoflush="true" indentsize="3">
    ...
    See more | Go to post

  • raghulvarma
    started a topic Retrive Records from DB and add to list<>

    Retrive Records from DB and add to list<>

    hi,

    I have a select statement it retrives a set of records, If i need to add those to the list how should i do?
    please find the coding which i have worked with.


    Code:
    static void Main(string[] args)
            {
                IList<SalesTgtVO> lstSalesTgt = new List<SalesTgtVO>();
                SalesTgtVO objSalesTgt = new SalesTgtVO();
                DBActivities IR = new
    ...
    See more | Go to post

  • raghulvarma
    started a topic Adding Items to a List

    Adding Items to a List

    Hi,
    Please find the code below. Now if I need to add items to the list how should I do that, any help is appriciated.

    Code:
     class GenericProperties
        {
            private string UserName;
            private string Password;
            private bool PwdStrength;
            private int Salary;
    
            public string _UserName
            {
                get { return  UserName; }
    ...
    See more | Go to post

  • raghulvarma
    replied to Example for Mutex
    Bafna,

    I tried but I get different results when I run the same code again and again, I could Not understand what goes wrong in that. The results which I get are
    First Time :
    ThreadTest TWO ~ 62850
    ThreadTest ONE ~ 62351
    Second Time
    ThreadTest TWO ~ 31475
    ThreadTest ONE ~ 62850
    Third Time
    ThreadTest ONE ~ 39476
    ThreadTest TWO ~ 62850
    Forth Time
    ThreadTest TWO ~ 42951...
    See more | Go to post

    Leave a comment:


  • raghulvarma
    replied to Example for Mutex
    Banfa,

    If I have understood properly check whether I have done that correctly.
    Code:
     static void Main(string[] args)
            {
    ThreadSample5_Muthex1 tt5_1 = new ThreadSample5_Muthex1();
                Thread t5_One = new Thread(new ThreadStart(tt5_1.CalculateBalance));
                Thread t5_two = new Thread(new ThreadStart(tt5_1.CalculateBalance));
                t5_One.Name = "ThreadTest ONE";
    ...
    See more | Go to post
    Last edited by Banfa; Mar 24 '11, 01:24 PM. Reason: Corrected the code tags

    Leave a comment:


  • raghulvarma
    started a topic Example for Mutex

    Example for Mutex

    Hi,

    I am just trying to work on with mutex in Threading. I tried a sample application, could you please let me know whether this is the right way of doing a Mutex program.

    Code:
    static void Main(string[] args)
    {
    ThreadSample5_Muthex1 tt5_1 = new ThreadSample5_Muthex1();
    Thread t5_One = new Thread(tt5_1.CalculateBalance);
    tt5_1.CalculateBalance();
    t5_One.Name = "ThreadTest";
    ...
    See more | Go to post

  • raghulvarma
    started a topic How to hide a div in pdf print

    How to hide a div in pdf print

    Hi,

    I am able to hide the contents of a div in the print media using @media now when I try to transfer that to pdf with the help of "WebsitesScreen shot.dll" ,I am not able to hide the contents. I also tried to explicitly hide the div but I get the contents in the pdf print, how to solve this issue
    See more | Go to post

  • raghulvarma
    started a topic Displaying Sort Expression in RowCreated

    Displaying Sort Expression in RowCreated

    Sir,
    I am displaying the Header text at the runtime with the help of RowCreated event.It is getting displayed properly.I have enabled sorting in the aspx page as stated below.
    Code:
    <asp:BoundField ReadOnly="true"  DataField="id"  SortExpression="id"/>
         <asp:BoundField   DataField="author" SortExpression="author"/>
         <asp:BoundField   DataField="title"
    ...
    See more | Go to post

  • raghulvarma
    started a topic Bind EXCEL work book inside a web page
    in .NET

    Bind EXCEL work book inside a web page

    Hai,
    Is it possible to bind the full excel work book inside a web page?
    (for example in bytes we have this text area which just resembles like the word document, the same wise I need to add the excel sheet in my web page.)
    If it is possible to bind the excel work book do I need to use any specific third party control to bind the work book or is it possible to achive in any other way?
    See more | Go to post

  • raghulvarma
    started a topic Access a file from the network

    Access a file from the network

    I have to access a XML file in the network and do the changes in the file and then save that file back.
    The coding that I have used is
    xdConfiguration = New XmlDocument
    xdConfiguration .Load("\\XXX\YY YYY\forTest.xml ")
    but when I try to load that particular file exception is thrown stating
    Logon failure: unknown user name or bad password.
    Note: The file I am accessing is been given full permission...
    See more | Go to post

  • raghulvarma
    started a topic Allow White Spaces between Words
    in .NET

    Allow White Spaces between Words

    Hi,
    I am using asp.net 1.x, Here i will have to store the values in the database along with the white spaces
    for eg: "My New Thread"
    here I have given spaces between these words (could not be seen in the preview as it takes only one spacing between each word) but when i save them or try to display them in a Label or in a grid the spaces between them are reduced and only one space is shown between...
    See more | Go to post

  • Crystal Report generation automatically daily at a particular time

    Consider the following scenario. Currently a .Net application is used to generate reports. The end user needs the reports twice in a day.So he runs the application at scheduled time for report generation.
    Now the client wants to automate this process such that the application should become a scheduled task at the desired time of the client.That is, the client...
    See more | Go to post

    Leave a comment:


  • RDLC Reports to be generated after stipulated Time

    Consider the following scenario. Currently a .Net application is used to generate reports. The end user needs the reports twice in a day.So he runs the application at scheduled time for report generation.
    Now the client wants to automate this process such that the application should become a scheduled task at the desired time of the client.That is, the client need not run the application every time he needs. When the IIS starts, the application...
    See more | Go to post

  • raghulvarma
    started a topic display data in table format

    display data in table format

    I am developing windows application. Now I have got the data in the data set . Now I need that to be displayed in the table format, not in the grid.but in the table format as we get in web applications.Is it possible to achieve it? If so how could it be archived?
    See more | Go to post
No activity results to display
Show More
Working...