User Profile

Collapse

Profile Sidebar

Collapse
mady1380
mady1380
Last Activity: May 30 '08, 02:18 PM
Joined: Sep 22 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mady1380
    replied to Export to Excel from ASP
    Hi there,

    I have tired this
    Code:
     Response.ContentType = "application/vnd.ms-excel" 
    Response.AddHeader "Content-Disposition", "attachment; filename=Enquiry_List.xls"
    Response.Charset="UTF-8"
    which works fine for me. My only problem is that, i am not getting my data in UTF-8 format. Any idea? I have searched many articles on export to excel in ASP. I have not found...
    See more | Go to post

    Leave a comment:


  • Hi there

    Guys , happens some people didnt go through their books so well or whatever the reason.

    I think the forum is for everybody. so chill guys...

    and here's your solution..

    ************PAG E YOU ARE SENDING FROM***********
    //variable
    int EmployeeID=1;

    Response.Redire ct("EmployeeDet ails.aspx?Edit= " + EmployeeID);

    ***********PAGE YOU...
    See more | Go to post

    Leave a comment:


  • mady1380
    replied to Code to update row in grid view.
    in .NET
    Hi there

    Generally i really criticise the GridView of mircosoft. And i see because the control is not soo efficient most of them endup buying Grid (infragistics and telerik, etc..) ofcourse they are very good and you can do miracles on that. But what if something cannot afford buying those costly products..

    I found some real good solution to work on MS GridView. Just go through this link..It very nice one.
    ...
    See more | Go to post

    Leave a comment:


  • Hi Everybody,

    Well passing information from one page to another is something that we use quite often..and we need it always.

    Well i cannot tell you exactly and the proper technical reason for not using Session Variables. Its not considered to be the best practice.

    Yes there are some situation where you cannot avoid it at all. But then i believe we are talking about something more general which we will...
    See more | Go to post

    Leave a comment:


  • mady1380
    replied to What is .NET? Why do I need the Framework?
    in .NET
    hi TRIScheel...

    It was very good article. It really matters to newbie like us..... ofcourse i dont see the reason why intelligent ppl (shival329 ) are wandering around in this forum since they know everything...

    Once again...nice topic...
    Thanks

    mady
    See more | Go to post

    Leave a comment:


  • mady1380
    replied to Edit,AddNew and Delete Records in DataGrid
    in .NET
    Hi Frin

    Thanks for your reply. Well in Web forms, generally you write the code behind the designer..that is in HTML, you give the name of the function for EditEvent and DeleteEvents, we can generally even add Link button in ItemTemplate and its much more flexible..Here firstly you cannot write behind the code that the HTML side. Then i see many codes online...which almost is like 6 to 7 methods and i dont know how much lines code they...
    See more | Go to post

    Leave a comment:


  • mady1380
    started a topic Edit,AddNew and Delete Records in DataGrid
    in .NET

    Edit,AddNew and Delete Records in DataGrid

    Hi All

    I am new with Windows form. i am working on c#.net 2003. i have no idea how am i suppose to Edit, AddNew or Delete Record in DataGrid. I am passing a Dataset to my Grid. I want to modify,addnew and delete records in Grid. I know it must be very simple and easy, but i have no idea i have been searching and i am not able to find any proper solution. Any help would be really appreciated..Pl z help me out guys.

    Ma...
    See more | Go to post

  • thanx...alot..
    yes it actually sometimes when i open this page without giving the querystring it shows this problem. so i have to return empty Querystring.

    thanx :)...
    See more | Go to post

    Leave a comment:


  • Error:Object reference not set to an instance of an object

    hi all

    i know this is common error. i ve been through many solutions.

    But i am not able to solve it.

    here is my error
    *************** *************** *************** *************** *************** *********
    System.NullRefe renceException: Object reference not set to an instance of an object.
    Source Error:
    Line 22: {
    Line 23:
    Line 24: sID = Convert.ToInt32 (Request.QueryS tring["Edit"].ToString());...
    See more | Go to post

  • hi

    sory but can you please tell me do i have to declare something else to use Filedialog object

    i am not able to create object dim fd as FileDialog coz i dont have FileDialog.

    i am sorry i am a begginer please help me
    thanks
    See more | Go to post
    Last edited by zmbd; Sep 6 '12, 04:14 AM. Reason: (Z)Removed quoted code. A single line... OK, the entire code block... too much.

    Leave a comment:


  • hi

    check this code



    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
    'Put user code to initialize the page here

    'Create new Excel Object
    Dim MyExcel As Excel.Applicati on

    MyExcel = New Excel.Applicati on
    MyExcel.Display Alerts = False
    MyExcel.Workboo ks.Open("C:\Ine tpub\wwwroot\We bApplication1\E xcel1.xls")...
    See more | Go to post

    Leave a comment:


  • mady1380
    replied to Export Data to Ms Excel 2000
    in .NET
    hi carol

    just try this you can insert records into excel with this code.

    *************** *************** ************

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
    'Put user code to initialize the page here

    'Create new Excel Object
    Dim MyExcel As Excel.Applicati on

    MyExcel =...
    See more | Go to post

    Leave a comment:


  • mady1380
    replied to Read from excel
    in .NET
    hi

    First please give Read and write rights for the Asp User in ur folder where ur project is in wwwroot. Then even dont forget to put the line <identity impersonate="tr ue" /> in your webconfig file.

    then try this code.

    Dim MyExcel As Microsoft.Offic e.Interop.Excel .Application
    Dim MyWorkbook As Microsoft.Offic e.Interop.Excel .Workbook
    Dim MySheet As...
    See more | Go to post

    Leave a comment:


  • mady1380
    started a topic Not able to write in Excel from asp.net

    Not able to write in Excel from asp.net

    hi all

    i am trying to read and write data in Excel file from asp.net

    I am able to read the data of particular cell, but i am not able to write in Excel file.

    I am getting error: ComException: Document not saved;

    Any help would be appreciated.
    thanx.

    *************** *************** ***********My Code*********** *************** *********
    Dim MyExcel As Microsoft.Offic e.Interop.Excel .Application...
    See more | Go to post

  • hi

    just check this code..u can probably read it from Excel ..


    *************** *************** *************** *************** *********
    Dim MyExcel As Microsoft.Offic e.Interop.Excel .Application
    Dim MyWorkbook As Microsoft.Offic e.Interop.Excel .Workbook
    Dim MySheet As Microsoft.Offic e.Interop.Excel .Worksheet
    Dim MyCell As Microsoft.Offic e.Interop.Excel .Range...
    See more | Go to post

    Leave a comment:


  • Error:[COMException (0x800a03ec): Document not saved.]

    hi

    I am just a starter in programming.

    i am trying to read and write data to Excel from asp.net

    i am able to read a particular cell from my Excel sheet but i am not able to write and save into it.
    any help would be appreciated..
    thanks.

    *************** ***********My Code*********** ***********

    Dim MyExcel As Microsoft.Offic e.Interop.Excel .Application
    ...
    See more | Go to post

  • mady1380
    replied to Dynamically modifying Table
    in .NET
    hi

    i am naive in .net i have recently started programming in .net.
    i want to add rows to my existing table.I am not able to.
    i am using this code for it..when i run the code, it shows no error...
    but it doesnt create an extra row in my table.
    can u plz suggest me why i am not able to see the new row, or why it is not being created.


    Private Sub btn1_Click(ByVa l sender As System.Object,...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...