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
M

Ma tju

@Ma tju
About
Posts
47
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Preserver password textbox value even after postback
    M Ma tju

    i use UpdatePanel. It work perfectly.

    ma tju Software Application Engineer Petaling Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Petaling Jaya MOP (Otai)

    ASP.NET help question

  • Foor loop Code Block in ASPX Page
    M Ma tju

    Actually I try to do this:

    <%
    For j = 0 To countCol - 1
    'during loop it will skip this line. This is why I use response.write.
    <td width=<%#(colSize(j))%>><%#Eval(colName(j))%></td>
    Next
    %>

    but when it loops it will skip the code in the for loop. When i use response.write it will run line in for loop but return this error: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. Hope this help. Thanks in advanced.

    ma tju Software Application Engineer Petaling Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Petaling Jaya MOP (Otai)

    ASP.NET help xml architecture career

  • Foor loop Code Block in ASPX Page
    M Ma tju

    Sure, here is the code.

        Dim conn As New         SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings(0).ConnectionString)
        Dim sqlDA As New SqlDataAdapter("SELECT id, filename, img\_size FROM image ORDER BY id", conn)
        Dim ds As New DataSet
        Dim pgDataSrc As New PagedDataSource
        Try
            sqlDA.Fill(ds, "tl")
    
            pgDataSrc.DataSource = ds.Tables("tl").DefaultView
            pgDataSrc.AllowPaging = True
            pgDataSrc.PageSize = 20
            pgDataSrc.CurrentPageIndex = CurrentPage
    
            'rptInbox is a repeater control
            rptInbox.DataSource = pgDataSrc
            rptInbox.DataBind()
    
        Catch ex As Exception
            Return False
        Finally
            conn = Nothing
            sqlDA = Nothing
            ds = Nothing
        End Try
    

    Well sometimes user want to see just 1 or more column in the repeater. Thats why i use for loop to generate the column. Hope this help. Thanks in advance.

    ma tju Software Application Engineer Petaling Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Petaling Jaya MOP (Otai)

    ASP.NET help xml architecture career

  • Foor loop Code Block in ASPX Page
    M Ma tju

    Hi, Actually i need to use Eval to bind the data from datasource. But to use eval I need to include the '#' sign.

    ma tju Software Application Engineer Petaling Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Petaling Jaya MOP (Otai)

    ASP.NET help xml architecture career

  • Foor loop Code Block in ASPX Page
    M Ma tju

    Hi guys, I got little problem here. I cannot get the value for ColName. Below are my code

    <tr ondblclick="job_detail('<%#Eval("id")%>');" >
    <td width="15"><input name="Checkbox51" type="checkbox" style=" width:13px; height:13px;" value="<%#Eval("id")%>" /></td>
    <%
    For j = 0 To countCol - 1
    Response.Write("<td width=" & colSize(j) & ">" & Eval(colName(j)) & "</td>")
    Next
    %>
    </tr>

    It give me an error : Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. Can someone help me. Thanks in advance. matju

    ma tju Software Application Engineer Petaling Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Petaling Jaya MOP (Otai)

    ASP.NET help xml architecture career

  • Custom sort in SQL Server
    M Ma tju

    Hi Shameel, Thanks for your reply to my problem. :-D Like Mycroft Holmes said, I just want a simply to move the 0 value records to the end of the sort. Regards.

    ma tju Software Application Engineer Petaling Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Petaling Jaya MOP (Otai)

    Database database sql-server sysadmin architecture question

  • Custom sort in SQL Server
    M Ma tju

    Thanks a lot its working. +5 :-D

    ma tju Software Application Engineer Petaling Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Petaling Jaya MOP (Otai)

    Database database sql-server sysadmin architecture question

  • Custom sort in SQL Server
    M Ma tju

    Hi, I have a table where the results are sorted using an "priority" column, eg:

    Doc_Value priority

    aaa 0
    xxx 1
    bbb 3
    ccc 0
    aaa 2

    I need the SQL results to be in a specific order based on the "priority", but not in ascending or descending order. The order that I want them in is 1,2,3,0,0,0,0.... Highest priority start with 1 to infinite (9999) number but the lowest priority is 0... Any suggestion guys? :)

    ma tju Software Application Engineer Petaling Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Petaling Jaya MOP (Otai)

    Database database sql-server sysadmin architecture question

  • Replace data in gridview
    M Ma tju

    Thanks navaneeth for your suggestion. I already find another way to solve my problem. Actually its hard for me to understand the article from msdn microsoft. :rolleyes:

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    ASP.NET database architecture question

  • Replace data in gridview
    M Ma tju

    Thanks sheha. I have already settle my problem. I insert this code in gridview_RowDataBound

    If e.Row.RowType = DataControlRowType.DataRow Or e.Row.RowType = DataControlRowType.Separator Then
    Dim Idstr As String
    Idstr = CType(e.Row.FindControl("lblId"), Label).Text
    If Idstr = 1 Then
    CType(e.Row.FindControl("lblId"), Label).Text = "Yes"
    If Idstr = 2 Then
    CType(e.Row.FindControl("lblId"), Label).Text = "No"
    End If
    End If

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    ASP.NET database architecture question

  • Replace data in gridview
    M Ma tju

    Hi, Where should i run the for loop. what should i read and replace. Thanks as an advanced

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    ASP.NET database architecture question

  • Replace data in gridview
    M Ma tju

    Hello I have a field in my database with three options (unknown, yes, no) and the database stores numbers (1,2,3) I want to replace 1,2,3 with the corresponding unknown, yes or no in a bound datagrid. Any hints? Is it possible?

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    ASP.NET database architecture question

  • Using Message Box alert in ajax control toolkit tab panel control
    M Ma tju

    Hi I am trying to use Message Box on click of a button which is inside update panel, but I am not getting the alert message while I am trigger - postback on click of that button(I have tried async postback also i.e. not working also). I want to know, will it work inside update panel or not. Please guide me if I am wrong. Thanks.

    matju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    ASP.NET database architecture tutorial announcement

  • Shore (a short story for English)
    M Ma tju

    tl;dr

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    The Lounge adobe data-structures

  • CheckBoxList not displaying with first click
    M Ma tju

    What is your solution?

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    ASP.NET database help question

  • How to tell a char/text is ascii or unicode?
    M Ma tju

    Dear all, I have a simple program that user can insert unicode or ascii text in a textbox. How to tell it is a Unicode or ascii? Is there any function in .Net? Thanks. :)

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    Visual Basic csharp architecture tutorial question

  • webconfig error in webhosting server
    M Ma tju

    Make sure you select the correct asp.net version under Default Web Site Properties, ASP.NET tab, ASP.NET version

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    ASP.NET help csharp asp-net database sysadmin

  • how to block code to View by client....
    M Ma tju

    Try googling 'precompile'

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    ASP.NET question csharp visual-studio help tutorial

  • Lunch
    M Ma tju

    Just start eating my breakfast...Still early in the morning here...

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    The Lounge question

  • The Dark Knight Meets Superman
    M Ma tju

    bwahaha ;P

    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

    The Lounge com
  • Login

  • Don't have an account? Register

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