User Profile

Collapse

Profile Sidebar

Collapse
ashasprabhu
ashasprabhu
Last Activity: Jan 23 '08, 05:32 AM
Joined: Jan 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ashasprabhu
    replied to Using checkbox in autogenerated datagrid
    in .NET
    hi,
    i found that the pageload event was called twice which lead to the uncheck of the datagrid checkbox
    thank you all [:)]
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to Using checkbox in autogenerated datagrid
    in .NET
    hi,
    thankyou very...much hussain,
    actually i have copied code from the same article
    My doubt is after selecting the rows only i click the button then where to store the status of the checkbox and how to use those values...
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to Using checkbox in autogenerated datagrid
    in .NET
    im using onclick event of update button...
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to traverse datagrid
    in .NET
    Are you using asp.net or vb.net
    if asp.net then go thro this article this would help

    http://aspnet.4guysfromrolla.com/articles/021203-1.aspx

    hope this helps you...
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    started a topic Using checkbox in autogenerated datagrid
    in .NET

    Using checkbox in autogenerated datagrid

    hi all,
    I have 3 autogenerated columns and 1 template column for checkbox and im using vs 2003 in asp.net
    my code is
    Code:
            Dim myDataGridItem As DataGridItem
            Dim chkSelected As New System.Web.UI.WebControls.CheckBox
                    For Each myDataGridItem In dgresult.Items
             chkSelected = myDataGridItem.FindControl("chkSelection")    
           If chkSelected.Checked
    ...
    See more | Go to post

  • ashasprabhu
    replied to How to export datagridview to excel?
    in .NET
    you can try this link
    http://www.thescripts. com/forum/thread637955.ht ml
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to How to export datagridview to excel?
    in .NET
    hai,
    below is the link to Export ASP.NET DataGrid to Excel
    link
    and hope this helps you
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to DataGridView Bug??????????
    in .NET
    hi,
    copy the below code
    Code:
    If dg1.Items.Count Mod dg1.PageSize = 1 And _
       dg1.CurrentPageIndex = dg1.PageCount - 1 And _
       dg1.CurrentPageIndex <> 0 Then
                dg1.CurrentPageIndex = dg1.CurrentPageIndex - 1
            End If
    followed by the delete command
    where dg1 is the datagridname
    surely this will solve the problem
    try this
    all the best
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to Check Box In A datagrid
    in .NET
    hi,
    check this example this will surely help u
    http://aspalliance.com/articleViewer.a spx?aId=427&pId =-1
    bye
    all the best
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to problem in datagrid sorting
    in .NET
    hi sugee,
    if u r using the query to rebind the datagrid u can use the order by key word to rearrange the gridvalues while rebinding
    hope this helps u
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to Parsing Error
    in .NET
    hi,
    i think that this is because u have 2 lines
    with the same
    <%@ Register TagPrefix="mbrs c" Namespace="Meta Builders.WebCon trols" Assembly="MetaB uilders.WebCont rols.RowSelecto rColumn" %>

    check the htmlside of the form
    im just guessing it.if its wrong, im sorry
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to custom validator
    in .NET
    hi,
    u can use the regular expression validator with
    validation expression property set to [0-9]{3}-[0-9]{4}-[0-9]{6}
    this will give u the format XXX-XXXX-XXXXXX
    if u want alphabets the u can use [a-z]{3}-[0-9]{2}-[A-Z]{3}
    this will give u the format XXX-XX-XXXX with first 3 letters in small letters followed by 2 digit number then followed by 3 captial letters
    hope this helps u
    all the best
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to Help on data-grid
    in .NET
    hi,
    here is alink
    http://aspalliance.com/136_DataGrid_an d_Checkboxes
    in this example the author has used the lablebox instead u can use a textbox
    hope this helps u
    with regards
    Asha S
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to ASP NET and javascript - urgent
    in .NET
    hi,
    use the below code in the pageload event
    Dim button As WebControl
    button = Page.findContro l("btnsave")
    button.Attribut es.Add("onclick ", "return confirm_save (this.form);")

    in the javascript
    function confirm_save (frm)
    {
    return confirm ('Are you sure you want to Save the record?')
    }
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to Need some Help
    in .NET
    hi,
    try this code
    'Retrieve the data into a DataSet:
    Dim strSQL As String = "Select course_id,cours eName From MyTable"
    Dim Connection As New OleDbConnection ("PROVIDER=.... ")
    Dim DA As New OleDbDataAdapte r(strSQL, Connection)
    Dim DS As New DataSet
    DA.Fill(DS, "couse")

    'Create and populate the DataTable to bind to the ComboBox:
    ...
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to role based Authentication
    in .NET
    hi,
    i think u mean the same as it is in
    http://www.thescripts. com/forum/thread600725.ht ml
    hope that helps u,
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to need help for data grid in asp.net
    in .NET
    hi,
    here is alink
    http://aspalliance.com/136_DataGrid_an d_Checkboxes
    in this example the author has used the lablebox instead u can use a textbox
    hope this helps u
    with regards
    Asha S
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to role based Authentication
    in .NET
    hi,
    could u plz explain me what is User.IsInRole(" Admin")==true means
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to How to set Priority in login page
    in .NET
    hi,
    i have an idea about ur query
    So,here is my idea
    use a session variable in the login page
    like
    In the submit button:
    session("uname" )=txtuname.text

    if session("uname" )='a' then
    response.redire ct("pageX.aspx" )
    else
    response.redire ct("pagey.aspx" )
    end if

    hope this code helps
    with regards
    Asha S
    See more | Go to post

    Leave a comment:


  • ashasprabhu
    replied to Need some Help
    in .NET
    hi,
    set the datatextfield property to the name of the course
    set the datavaluefield property to the id as shown below

    ddlist.DataText Field = "coursename "
    ddlist.DataValu eField = "course_id"

    to access the id use the following code

    ddlist.Selected Item.Value
    using the above code only the course name is displayed and internally u get the course id
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...