Search:

Type: Posts; User: azsx123

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    679

    Re: SUM() returning multiple rows

    Okay. Dumbass me. Hahaha I declared dt as a forum variable. Subsequently, I have three "get" methods that use dt. Everything's okay now. I've declared dt as a method level var in all the methods.
  2. Replies
    3
    Views
    679

    SUM() returning multiple rows

    Hi, I'm trying to get the sum of a column but access returns 3 rows and the SUM is located at the 2nd row of the 1st column (i tried binding it to a datagridview)

    cmd.CommandText = "SELECT...
  3. Replies
    2
    Views
    580

    Re: Problem with class

    Yep. Thanks! I don't know why I didn't think of that.

    I'm already using :base() for both student and staff.
  4. Replies
    2
    Views
    580

    [RESOLVED] Problem with class

    I've encountered a problem with regards to classes and constructs.

    I've created a Student and a Staff class which is derived from WebUser. WebUser class has a Create() method which creates the...
  5. Replies
    3
    Views
    4,869

    Re: Filter DataView with two conditions

    Thanks for the reply. I'm able to filter LastName='abc'. What I want to achieve is LastName = 'abc' AND FirstName = 'def'.
  6. Replies
    3
    Views
    4,869

    Filter DataView with two conditions

    Hi,
    I'm working on a project for school. I'm required to filter a dataview utilizing AND and OR. I'm only able to filter one condition.



    How do I add in a AND/OR in it?
  7. Re: how to get the value of a cell in datagridview

    Thanks for the quick rep guys. Was using SelectedRow instead of CurrentRow. Got it to work now.
  8. how to get the value of a cell in datagridview

    Hi,
    How can I get the value of the first cell of the row of the selected cell or selected row in a datagridview?
  9. Replies
    11
    Views
    1,996

    Re: Decrement displaying of data

    I do. Thanks so much! =)

    Edit: Its not working.


    public ViewResult Index()
    {
    IList<NewsModel> items = (from item in db.BatchNews
    ...
  10. Replies
    11
    Views
    1,996

    Re: Decrement displaying of data

    Are you pertaining to the controller?


    // GET: /News/

    public ViewResult Index()
    {
    return View(db.BatchNews.ToList());
    }
  11. Replies
    11
    Views
    1,996

    Re: Decrement displaying of data

    I don't use queries. None as of I know of. I i'm using the login function that came with the MVC 3 layout
  12. Replies
    11
    Views
    1,996

    Re: Decrement displaying of data

    I'm using Sql server ce.



    I see. Thanks!
  13. Replies
    11
    Views
    1,996

    [RESOLVED] Decrement displaying of data

    I want to make a "announcements" page and what I want to happen is that when a user posts a news, the post will be saved into the database and is defined by a unique ID (using autonumber). So data is...
  14. Replies
    1
    Views
    681

    Retrieving filtered data

    I'm currently using the login feature that came with the default MVC 3 layout.

    I have no problem with regards to writing the data using the default pages that i edited. My problem is how to view...
  15. Re: [RESOLVED] Separating Authenticated user views

    Well yeah. I'll try to work on that after I'm done some pages. Thanks
  16. Re: [RESOLVED] Separating Authenticated user views

    I see, sadly I'm just using cells that redirect when clicked. Thanks though.
  17. [RESOLVED] Separating Authenticated user views

    Hi,

    I'm about to start working on the authenticating part of my site. I have several concerns regarding this.

    1. When a user is logged in, he will gain additional menu items.
    -So, from what...
  18. Replies
    10
    Views
    942

    Re: [RESOLVED] Redirect Button

    Ok. Thanks a lot!
  19. Replies
    7
    Views
    744

    Re: [RESOLVED] Connecting ASP.NET to Access

    I already have taken a look at this awhile ago and could understand how it works. I don't know why that when I took a look at it again when you posted it, I kinda understood what was going on. (Just...
  20. Replies
    10
    Views
    942

    Re: [RESOLVED] Redirect Button

    Thanks for that note. I think it is better to do the redirecting client side because of the hardware and bandwidth limitations.
  21. Replies
    10
    Views
    942

    Re: [RESOLVED] Redirect Button

    I still do since I haven't found the syntax for back code to do redirecting
  22. Replies
    7
    Views
    744

    Re: [RESOLVED] Connecting ASP.NET to Access

    Yes but I'm still looking for a way to use back code. I tried using the one from your link but I don't quite understand what's going on there.
  23. Replies
    10
    Views
    942

    Re: [RESOLVED] Redirect Button

    I actually found the problem else where. For some reason, a line in Designer.vb was set to _Defaultren or something. I tried replacing it but it still didn't work so I ended up redoing the page. Its...
  24. Replies
    7
    Views
    744

    Re: Connecting ASP.NET to Access

    Great thanks!
  25. Replies
    7
    Views
    744

    [RESOLVED] Connecting ASP.NET to Access

    Hi, I'm trying to connect my site to a Access database. I already got the connection string but what goes around it, I don't know. I've tried searching but they have different approaches but I...
  26. Replies
    10
    Views
    942

    Re: [RESOLVED] Redirect Button

    Here


    <a href="EditProfile.aspx">
    <asp:Button ID="btnUpdate" runat="server" Text="Update"/>
    </a>

    Is there a better way of doing this?
  27. Replies
    10
    Views
    942

    [RESOLVED] Redirect Button

    So I'm trying to create a redirect button? I've been searching on how to do this but can't I just can't get it to work.

    So here's my VB code


    Public Class Profile
    Inherits...
  28. Re: Can't change text value of textbox

    Oh sorry. Forgot about that.
  29. Re: Can't change text value of textbox

    Great! Thanks for that. Rename _Defaulten accordingly. Works fine now =)
  30. Re: Can't change text value of textbox

    Thanks for the reply. Sadly, it still doesn't work.


    Imports System.Web.UI.HtmlControls

    Public Class _Defaulten
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object,...
  31. [RESOLVED] Can't change text value of textbox

    So I want to change the Text value of a textbox using VB on form load. Simple enough, but I can't get it to work.

    aspx file

    <asp:Label ID="lblName" runat="server" Text="N/A"></asp:Label>
    ...
  32. Replies
    4
    Views
    904

    Re: Using VB in ASP.NET

    Got it! Thanks
  33. Replies
    4
    Views
    904

    [RESOLVED] Using VB in ASP.NET

    Hi, how do I code VB into aspx files? I already have the pages done all I have to do is to add in the functions. I've already added Language="VB" at the top of the page but I don't really have a clue...
  34. [RESOLVED] Problem with Filtering DataGridView

    How can I automatically filter data that DataGridView outputs? I am able to filter by using a textbox (which would still require a user to type) but I want to filter the values at a click of a...
  35. Replies
    3
    Views
    621

    Re: updating database

    bump
  36. Replies
    3
    Views
    621

    Re: updating database

    Ok, so I'm now checking individual rows for a match. It works but dr is in read only mode so i can't update values. How do I allow editing?


    cn.ConnectionString =...
  37. Replies
    3
    Views
    621

    updating database

    How can I update an .mdb file via VB application? I'm able to add but i can't seem to figure out how to edit.



    Dim cn As New OleDbConnection

    Private Sub btnOk_Click(ByVal sender As...
  38. Replies
    6
    Views
    1,054

    Re: Know line in listview

    Uhm.. I don't get it.
  39. Replies
    6
    Views
    1,054

    Re: Know line in listview

    I searched around and found out that this is how it works on a DataGrip

    id = dgv1.CurrentRow.Cells(0).Value
    ic(c) = dgv1.CurrentRow.Cells(1).Value
    nprice(c) =...
  40. Replies
    6
    Views
    1,054

    Know line in listview

    How will the program know which line in a listview is selected?
Results 1 to 40 of 135
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width