15,917,928 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by DLSU-D Student (Top 23 by date)
DLSU-D Student
22-Apr-14 10:39am
View
Make sure your itextsharp.dll is in folder Bin. :)
DLSU-D Student
22-Apr-14 10:35am
View
I used this code for exporting gridview.
protected void Page_Load(object sender, EventArgs e)
{
string strQuery = "SQLCOMMAND HERE";
SqlCommand cmd = new SqlCommand(strQuery);
DataTable dt = GetData(cmd);
GridView1.DataSource = dt;
GridView1.DataBind();
}
private DataTable GetData(SqlCommand cmd)
{
DataTable dt = new DataTable();
String strConnString = System.Configuration.ConfigurationManager.ConnectionStrings["ProjectNameConnectionString1"].ConnectionString;
SqlConnection con = new SqlConnection(strConnString);
SqlDataAdapter sda = new SqlDataAdapter();
cmd.CommandType = CommandType.Text;
cmd.Connection = con;
try
{
con.Open();
sda.SelectCommand = cmd;
sda.Fill(dt);
return dt;
}
catch (Exception ex)
{
throw ex;
}
finally
{
con.Close();
sda.Dispose();
con.Dispose();
}
}
public override void VerifyRenderingInServerForm(Control control)
{
/* Verifies that the control is rendered */
}
protected void OnPaging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
Try this bro. :)
DLSU-D Student
17-Mar-14 9:10am
View
'ASP.adminsmdasma_pending_aspx' does not contain a definition for 'Gridview1_RowDataBound' and no extension method 'Gridview1_RowDataBound' accepting a first argument of type 'ASP.adminsmdasma_pending_aspx' could be found (are you missing a using directive or an assembly reference?)
This is another 1 bro.
DLSU-D Student
17-Mar-14 9:09am
View
'System.Web.UI.WebControls.GridViewCommandEventArgs' does not contain a definition for 'Row' and no extension method 'Row' accepting a first argument of type 'System.Web.UI.WebControls.GridViewCommandEventArgs' could be found (are you missing a using directive or an assembly reference?)
I get error again. It's say does not contain definition for 'Row'
DLSU-D Student
17-Mar-14 8:33am
View
System.Web.UI.WebControls.GridViewCommandEventArgs' does not contain a definition for 'findControl' and no extension method 'findControl' accepting a first argument of type 'System.Web.UI.WebControls.GridViewCommandEventArgs' could be found (are you missing a using directive or an assembly reference?)
Sir I get an error.
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999"
BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2"
DataSourceID="SqlDataSource1"
EmptyDataText="There are no data records to display." ForeColor="Black"
Width="724px">
<columns> <asp:BoundField DataField="Email_Address" HeaderText="Email_Address"
SortExpression="Email_Address" />
<asp:BoundField DataField="Order_Number" HeaderText="Order #"
SortExpression="Order_Number" />
<asp:BoundField DataField="Item_Purchased_Number"
HeaderText="Purchased #" SortExpression="Item_Purchased_Number" />
<asp:BoundField DataField="Branch" HeaderText="Branch"
SortExpression="Branch" />
<asp:BoundField DataField="Date_Issued" HeaderText="Date_Issued"
SortExpression="Date_Issued" />
<asp:BoundField DataField="Status" HeaderText="Status"
SortExpression="Status" />
<asp:BoundField DataField="Remarks" HeaderText="Remarks"
SortExpression="Remarks" />
<asp:CommandField ButtonType="Button" HeaderText="Update" ShowHeader="True"
ShowSelectButton="True" />
<footerstyle backcolor="#CCCCCC">
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
<rowstyle backcolor="White">
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<sortedascendingcellstyle backcolor="#F1F1F1">
<sortedascendingheaderstyle backcolor="#808080">
<sorteddescendingcellstyle backcolor="#CAC9C9">
<sorteddescendingheaderstyle backcolor="#383838">
This is my gridview.
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
e.findControl("Status").innerText = "Delivered";
}
This is in .cs
DLSU-D Student
17-Mar-14 8:25am
View
I tried a edit button but I want is everytime I click a button from a gridview it update the Status. BTW. Data is coming from Database.
DLSU-D Student
11-Mar-14 11:37am
View
ALVIN CEDO. KAYA MO YAN BRO.
DLSU-D Student
7-Mar-14 11:18am
View
Yes i uploaded database too. I can access it if you try to view the link Id reply above.
DLSU-D Student
7-Mar-14 11:11am
View
In local host its perfectly running. But when I uploaded it to a Host it shows that error.
DLSU-D Student
7-Mar-14 11:08am
View
Dont worry KR it just a sample credentials. :) Im just using that for my school project. Im just want you to try so that you can know that connection string is okay only the CART part is not.
DLSU-D Student
7-Mar-14 11:03am
View
Im using one database only. It is possible that it has a 2 connection string? In Local Host its perfectly running but when I upload it to host it shows that error.
DLSU-D Student
7-Mar-14 11:02am
View
Deleted
try to login using this email address and password:
EMAIL: reyesonin@gmail.com
PASSWORD: pass
Choose branch then click "Your Shopping Cart"
DLSU-D Student
7-Mar-14 10:30am
View
cellzonecharles-001-site1.smarterasp.net/Default.aspx
Check this out. My connection to database is working only the CART cannot access.
DLSU-D Student
7-Mar-14 10:29am
View
cellzonecharles-001-site1.smarterasp.net/Default.aspx
Check this out. My connection to database is working only the CART cannot access.
DLSU-D Student
7-Mar-14 10:29am
View
I can access my database only the CART side not accessible.
DLSU-D Student
4-Mar-14 21:23pm
View
Connection string is okay. Only this part is not okay.
DLSU-D Student
25-Feb-14 12:58pm
View
string strQuery = "Select Item_Purchased_Number,ProductID,ProductName,quantity,Branch, Date_Purchased from Customer_Purchased Where Branch = 'SM Dasmariñas'" + "'AND DATEDIFF(d, Date_Purchased, '" + DateTime.Now.ToString() +)=0);
Is this CORRECT? I get some errors. BTW Griff. Thanks for helping. :)
DLSU-D Student
25-Feb-14 11:26am
View
@OriginalGriif there's an error "Incorrect syntax near '2'." What does this means?
DLSU-D Student
25-Feb-14 11:20am
View
what if I will get the weekly or the monthly? DateTime.Now.Date.AddDays(-7) for weekly? Is this correct?
DLSU-D Student
18-Feb-14 4:19am
View
Thanks dude. Im goin to try that.
DLSU-D Student
18-Feb-14 4:14am
View
I have one row which is Stock. Im developing an online sales so I have 3 branches then if one branch has 0 stock on one product I can pass stock from another branch. Sorry for grammar. I hope you understand. Thanks in advance. :)
DLSU-D Student
17-Feb-14 4:49am
View
This is my code:
protected void Page_Load(object sender, EventArgs e)
{
string strQuery = "Select Item_Purchased_Number,ProductID,ProductName,quantity,Branch, Date_Purchased from Customer_Purchased Where Branch = 'PureGold Bacoor'";
SqlCommand cmd = new SqlCommand(strQuery);
DataTable dt = GetData(cmd);
GridView1.DataSource = dt;
GridView1.DataBind();
}
private DataTable GetData(SqlCommand cmd)
{
DataTable dt = new DataTable();
String strConnString = System.Configuration.ConfigurationManager.ConnectionStrings["CellzoneDatafilesConnectionString1"].ConnectionString;
SqlConnection con = new SqlConnection(strConnString);
SqlDataAdapter sda = new SqlDataAdapter();
cmd.CommandType = CommandType.Text;
cmd.Connection = con;
try
{
con.Open();
sda.SelectCommand = cmd;
sda.Fill(dt);
return dt;
}
catch (Exception ex)
{
throw ex;
}
finally
{
con.Close();
sda.Dispose();
con.Dispose();
}
}
DLSU-D Student
17-Feb-14 4:47am
View
I have a database table that is:
Item_Purchased_Number nvarchar(50)
Email_Address nvarchar(100)
ProductID numeric(18, 0) Checked
productName nvarchar(50)
quantity int
Branch nvarchar(50)
Date_Purchased nvarchar(50)
How can I track if Date_Purchased from daily, weekly and monthly?
Show More