Quantcast
Channel: Displaying only active records
Browsing all 16 articles
Browse latest View live

Re: Displaying only active records

Hello Rion,Being illiterate in SQL and C#, I'm not understanding what the code in doing. I'm simply wanting a value displayed on the page containing the Gridview that shows the number of "active"...

View Article



Re: Displaying only active records

Can you explain exactly what you are trying to do? I notice there are quite a few things going on that may / may not be relevant :stabes protected void GridView1_OnRowCommand(object sender,...

View Article

Image may be NSFW.
Clik here to view.

Re: Displaying only active records

I am determined to beat this thing!  Could you please see what I'm doing wrong. I'm still getting a big zero.Thanks Rion, Martusing System; using System.Collections.Generic; using System.Configuration;...

View Article

Re: Displaying only active records

stabesThanks Rion.Looking inside the DB I notice that the value of the column IsApproved is actually defined as being either True or False - not simply text "IsApproved". I suppose that would explain...

View Article

Re: Displaying only active records

stabes Looking inside the DB I notice that the value of the column IsApproved is actually defined as being either True or False - not simply text "IsApproved".Just change it to 'true' or the digit 1

View Article


Re: Displaying only active records

Thanks Rion.Looking inside the DB I notice that the value of the column IsApproved is actually defined as being either True or False - not simply text "IsApproved". I suppose that would explain why the...

View Article

Re: Displaying only active records

This is because your "count" value isn't defined within the scope of the SqlDataSource1_Selected method. In order to access it in this way, you would likely want to define it as either a static or...

View Article

Re: Displaying only active records

Thanks. When I use the code above, I get the error below.MartServer Error in '/' Application.Compilation ErrorDescription:An error occurred during the compilation of a resource required to service this...

View Article


Re: Displaying only active records

stabes string com = "select Count(*) from aspnet_Membership where IsApproved = 'IsApproved'";Yes, that should be completely fine. This would only return the number of users with "Approved" accounts....

View Article


Re: Displaying only active records

Is this okay?Tx, Martusing System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using...

View Article

Re: Displaying only active records

The code that Zhi Lv posted.

View Article

Image may be NSFW.
Clik here to view.

Re: Displaying only active records

Thanks. Added the Textbox line but I'm not sure what new code you are referring to. Please excuse the inane questions. This is all Greek to me Mart

View Article

Re: Displaying only active records

Did you add a line to indeed update the textbox? See bold italic line below//Get the countInt32 count =(Int32) myCommand.ExecuteScalar();//Set the TextBox valueTextBox1.Text = count.ToString();That...

View Article


Re: Displaying only active records

Hello,Thanks for your help. I tried using your code, but being completely clueless, when I run the page I still get a count for all those active and inactive. I'm sure this is because I don't know if...

View Article

Re: Displaying only active records

Hi stabes,stabes At the top of the page there is a textbox which displays a value of the number of records for those marked as "Student" The database however distinguishes between whether a student...

View Article


Displaying only active records

Hello all,I have no experience of ASP.Net or C#. I have inherited an ASP.Net membership system that requires one small change. (See attached code).At the top of the page there is a textbox which...

View Article
Browsing all 16 articles
Browse latest View live




Latest Images