User Profile

Collapse

Profile Sidebar

Collapse
cmrhema
cmrhema
Last Activity: Nov 14 '15, 09:00 AM
Joined: Jan 30 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to read parts of XML in c# and write it across

    Hi,
    I have an XML file which has lots of values as below, placing just sample

    Code:
        <Entries>
          <Application1>
            <key>12</key>
            <alerts>res12 ### test</alerts>
          </Application1>
          <Application2>
            <key>13</key>
            <alerts>res 13 ### test</alerts>
          </Application2>
    ...
    See more | Go to post

  • Required Field validator disappears on dropdownlist post back

    Hi, I populate two dropdownlist in asp.net. Both are assigned to a required field validator.

    The codebehind is as below

    Code:
    if (!Page.IsPostBack)
            {
                DataTable dt = new DataTable();
                dt.Columns.Add("emp");
                dt.Columns.Add("ename");
                for (int i = 0; i < 5; i++)
                {
                    DataRow dr
    ...
    See more | Go to post

  • Thanks Frinvale,
    I created a new datatable and gave
    dt=sequence.Cop yToDataTable<Da taRow>();

    the prblm was solved.
    Before the conversion, all the values were in array, so could not bind, and throwed error.
    See more | Go to post

    Leave a comment:


  • cmrhema
    started a topic Problem in converting Datatable to Ienumerable
    in .NET

    Problem in converting Datatable to Ienumerable

    Hi,

    I have a dataset that has two datatables.

    In the first datatable I have EmpNo,EmpName and EmpAddress

    In the second datatable I have Empno,EmpJoinda te, EmpSalary.

    I want a result where I should show EmpName as the label and his/her details in the gridview

    I populate a datalist with the first table, and have EmpNo as the datakeys.

    Then I populate the gridview...
    See more | Go to post

  • The post has been resolved.
    I looked here...
    http://social.msdn.microsoft.com/For...3-da231a701384...
    See more | Go to post

    Leave a comment:


  • Actually I have 4 windows services running under one setup., one webservice and one wcf service and one application.
    All these have different app.configs, comprising of different appsettings and different connection strings.
    I am supposed to create a windows application that will retrieve each of these settings and then save it accordingly.

    I tried upto this level
    Code:
    ExeConfigurationFileMap filename= new ExeConfigurationFileMap();
    ...
    See more | Go to post

    Leave a comment:


  • cmrhema
    replied to Conversion of html to pdf
    Actually I have noticed (I may be wrong too), that when I have multiple controls listed into one another. eg. In the final version of my application, I had a datalist and three gridviews inside the datalist, also among this i had one nested gridview.

    During such occassions, if I simply convert to pdf it does not.

    But however it was resolved using Chunks.
    Instead of just having a gridview I converted into IList and...
    See more | Go to post

    Leave a comment:


  • How to obtain app.config of a different application and modify it

    Hi,

    I have two windows application. eg ., FormA and FormB

    The app.config of FormA is as below

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <appSettings>
        <add key="company" value="DSRC"/>
        </appSettings>
    <connectionStrings>
    <add name="test" connectionString="Testing
    ...
    See more | Go to post

  • cmrhema
    started a topic Conversion of html to pdf

    Conversion of html to pdf

    I am converting an html into pdf, I have observed that the pdf is getting generated but not properly.

    i.e. the Datalist2 and the gridview2 present inside the Datalist2 is not getting populated.

    Any idea why is it working so.

    I have the html code as below
    Code:
      <table id="tblReport" runat="server">
                <asp:DataList ID="DataList1" runat="server">
    ...
    See more | Go to post

  • cmrhema
    started a topic Problem in nested gridview
    in .NET

    Problem in nested gridview

    Hi,

    I have a gridview problem while binding more than two gridviews.

    I am giving a sample scenario of what I have done so far

    I have two tables

    First table: Department , having columns DeptId and DeptName

    10 Accounts
    20 Software

    Second Table: Emp having columns EmpId, EmpName,Salary,
    DeptID.

    101 aaa 100 10
    101...
    See more | Go to post

  • The error has been rectified
    Both the service and the client were under different namespace, hence we had errors.

    After sharing the same namespace, the service and client works properly
    See more | Go to post

    Leave a comment:


  • Hi Plater ,
    Thanks for the reply.
    I have changed the whole service as below

    My service looks as (Iservice.cs)

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Runtime.Serialization;
    using System.ServiceModel;
    using System.Text;
    using System.Data.SqlClient;
    
    namespace wcfstoredprocedure
    {
        [ServiceContract]
    ...
    See more | Go to post

    Leave a comment:


  • Error while passing sql parameters to stored procedure in WCF service

    Hi,

    Kindly excuse if I am posting in the wrong place.

    I am using Visual Studio 2008, .net framework 3.5, asp.net , c# and sql server 2005.

    I am supposed to pass stored procedures from client to wcf service.

    The WCF service should execute the stored procedure and return the result.

    When I pass the stored procedure which does not have any parameter, it works, but the moment...
    See more | Go to post

  • Its ok Danielc, I resolved the issue but disabling the back browser button.
    See more | Go to post

    Leave a comment:


  • How do I remove the display of popup on hitting the back button of the browser

    Hi,


    I have two questions

    a)

    I have a registration page which on successfull registration throws an popup alert

    Code:
    ClientScript.RegisterStartupScript(this.GetType(), "strJsMessage", "<script language='javascript'>alert('Registered Successfully!');window.document.forms[0].action='index.aspx';window.document.forms[0].submit();</script>");
    ...
    See more | Go to post

  • True Frinnavale, this was an interview question posed in one of the websites.

    I thought of sorting using the sort . But this thought just not ring in my mind.

    Thanks again

    Regards
    cmrhema
    See more | Go to post

    Leave a comment:


  • How to display limited records in every page indexing with reloading the dataset

    Hi,

    I was asked a question.
    "You have 10,000 records or rows of data. You are going to bind in a gridview control. Further you have populated the dataset. During page indexing, I want to retrieve 100 records per page. But you should ensure that when I click page index 2 , which displays 101-200 records, the whole data set should not be populated once again. Although it displays only the next 100 records, the dataset and...
    See more | Go to post

  • cmrhema
    started a topic Uploading Multiple files in asp.net
    in .NET

    Uploading Multiple files in asp.net

    Hi,

    I am using .net framework 2.0. I want to upload multiple files. Usually the file upload control will upload only one file at a time.
    Whereas I want to upload more than one file.

    Any valuable suggestions please.

    Regards
    cmrhema
    See more | Go to post

  • Popup is blocking my download, kindly let me know an alternative

    Hi,

    I wrote the following code in the page load event

    Code:
     string path = clientServerXRef1.GetDownloadpath(company.ToUpper());
                System.IO.FileStream fs = null;
                fs = System.IO.File.Open(path + company.ToUpper() + "_" + projectID + ".mpp", System.IO.FileMode.Open);
                byte[] btFile = new byte[fs.Length];
                fs.Read(btFile, 0, Convert.ToInt32(fs.Length));
    ...
    See more | Go to post
    Last edited by Frinavale; Jul 17 '09, 06:39 PM. Reason: Please post code in [code] [/code] tags. Changed quote tags to code tags.

  • Problem in using Response.BinaryWrite and changing controls

    Hi,

    I have a button which needs to download the file, simaltaneously it has to enable or disable the linkbutton on a click event. I went for the following code which never works for me.. The problem is there in writing the file in response. Any idea is highly valuable.
    Thanks in advance..

    Given the code below..
    ----
    Code:
    LinkButton1.Enabled = false;
    System.IO.FileStream fs = null;
    fs = System.IO.File.Open("c://4377.doc",
    ...
    See more | Go to post
    Last edited by Frinavale; Jul 15 '09, 08:48 PM. Reason: Changed quote tags into [code][/code] tags.
No activity results to display
Show More
Working...