User Profile

Collapse

Profile Sidebar

Collapse
jagguy
jagguy
Last Activity: Mar 31 '08, 10:45 AM
Joined: Sep 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jagguy
    replied to hyperlink a field in gridview - ASP.NET
    in .NET
    q1)how do set the commandargument to a row index in the form? i have spent ages on this simple problem.

    I copied this from msdn and it fails .

    Code:
     Protected Sub GridView1_RowCreated1(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated
            If e.Row.RowType = DataControlRowType.DataRow Then
    
                 Dim addButton As LinkButton
    ...
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to create hyperlink field from DB
    in .NET
    I can do the link button now .

    q1)could you pojnt me to an example of how i make a template field in the codebehind area rather than the form area?

    q2)What if i have 2 link buttons? when the Rowcommand is raised how do i know which linkbutton raised it?

    q3)many examples i see database fields written in the form page or html area. Why do this when you dont need to if you connect and bind to a DB in the...
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to create hyperlink field from DB
    in .NET
    1)ok i have got this far with some basic questions i need to ask.
    when i code in the aspx.vb area (whatever you call the coding area in aspx using vb), can i create template field there instead of what i have below?

    Code:
       <asp:BoundField
            HeaderText="Fname"
            DataField ="fname"
            />
            <asp:TemplateField >
            <ItemTemplate
    ...
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to asp and vb.net2003
    winxp home ring a bell?
    See more | Go to post

    Leave a comment:


  • jagguy
    started a topic create hyperlink field from DB
    in .NET

    create hyperlink field from DB

    I have a column on a grid view I read in froma DB. The field has 2 values true or false. Now if i click on the field i want the gridview and the DB updated to the new value. I click on true on a row and it changes it to false after it has reloaded the page just on that row.

    In PHP you just make a field a hyperlink and send data to another page to update and automatically go back and refresh the page .


    q1)how...
    See more | Go to post

  • jagguy
    started a topic hyperlink a field in gridview - ASP.NET
    in .NET

    hyperlink a field in gridview - ASP.NET

    I have a column on a grid view I read in froma DB. The field has 2 values true or false. Now if i click on the field i want the gridview and the DB updated to the new value. I click on true on a row and it changes it to false after it has reloaded the page just on that row.

    In PHP you just make a field a hyperlink and send data to another page to update and automatically go back and refresh the page .

    In asp.net can...
    See more | Go to post
    Last edited by jhardman; Mar 18 '08, 08:03 PM. Reason: moved to .Net forum. ASP forum is for "classic" ASP

  • jagguy
    replied to asp and vb.net2003
    ps i now cannot run asp files with apache after reinstalling the apache aspmod and .net. I have given up on asp and apache
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to asp and vb.net2003
    i have ms .NET framework 1.1,2.03.0 and 3.5 installed and i see asp.net framework 2.0.
    See more | Go to post

    Leave a comment:


  • jagguy
    started a topic asp and vb.net2003

    asp and vb.net2003

    I have installed asp.net and apache and tested a sample program and it works.

    I have vb.net2003 and tried to create a asp program with it and it has failed claiming i am using .net 1.0 (I am not) and an error which says i need to check the install of vs2003 (which is garbage).

    i take it, it wont work under apache and the asp mod?
    See more | Go to post

  • jagguy
    replied to display range
    i have used a datatable which is more effective. the trick is to fill data from excel2d array and copy to datatable.
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to display range
    i have a range "A2:B5" but i can convert to array.

    the problme is assigning to a datagrid

    datagrid1.datas ource= myarray ' myarray is single array from 2D array

    'the datagrid is just 1 col and i want rows and cols like the 2D array origanlly is.

    it is messy
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to display range
    i can assign a 1D array to a datagrid yes.
    i cant assign a 2d array so i need to convert the 2d array to 1D array but i cant get rows and cols in a datagrid with rows and cols (just 1 col).

    This is very complicated!
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to display range
    I asked this before but i still dont know

    can i set a range of values from excel to a datagrid?
    See more | Go to post

    Leave a comment:


  • jagguy
    started a topic display range

    display range

    i can get a single value from a worksheet using vb.net and excel.

    q)How do i get a range of values eg A2 to A5 and print them out eg with a msgbox. I know i can use the cells command but i want a range command where specify excel cell range.

    'MyString = XL.Cells(4, 1).Value
    MyString = XL.Range("A2", "A5").Value 'error
    MsgBox(MyString )
    See more | Go to post

  • jagguy
    replied to cant read in excel data?
    i can connect now to a excel sheet and open and save to it.

    Is there a way to assign a range of values read in from excel moved to a datagrid?
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to cant read in excel data?
    i still get an error as before with this

    Code:
    
                Dim XlSh As Excel.Worksheet = CType(XlWbk.Sheets(1), Excel.Worksheet)
                Dim range As Excel.Range
               
                XlWbk = XL.Workbooks.Open("mytest.xls")
                XlWbk = CType(XL.Workbooks.Item(1), Excel.Workbook)
                CType(XlWbk, Excel.Workbook).Activate() 'same error as before
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to cant read in excel data?
    also i cant use ctype with activate

    CType(XlWbk, Excel.Worksheet ).Activate() 'error

    I cant find any basic tutorial with vb.net and excel where you can read data from a excel file and write values back eg just summing up a few columns and write back the total.

    Is this all possible because i have spent hours on seemingly just basici connection and basic tasks. Where is the help in vb.net for excel?
    See more | Go to post

    Leave a comment:


  • jagguy
    replied to cant read in excel data?
    Hi,
    I have changed the code and still get an error when i simply try to display a value from excel.

    Dim XL As Object

    XL = Interaction.Cre ateObject("Exce l.Application")

    Dim XlWbk As Excel.Workbook = XL.Workbooks.Ad d()

    Try


    ' XlSh.Range("A2" ).Value = MyString 'Set a value
    Dim...
    See more | Go to post

    Leave a comment:


  • jagguy
    started a topic cant read in excel data?

    cant read in excel data?

    Hi,

    i cant read in data from excel 97 using vb.net 2003.

    I get an exception error .

    all i want to do is read in values from excel initially. I want to just test it using msgbox.

    Code:
    Dim XL As Object 'workaround for excel 97
            XL = Interaction.CreateObject("Excel.Application")
            Dim XlWbk As Excel.Workbook = XL.Workbooks.Add()
    ...
    See more | Go to post

  • jagguy
    replied to is this the right forum
    how do i post on the vb.net other forum because there is no 'new post'
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...