15,894,405 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 M.Narmatha (Top 46 by date)
M.Narmatha
12-Apr-12 5:11am
View
can i have mention that provider url..
M.Narmatha
12-Apr-12 5:02am
View
for wht username & password.
M.Narmatha
17-Mar-12 5:20am
View
kk........
M.Narmatha
17-Mar-12 5:03am
View
k atleast explain main concepts in this coding...
M.Narmatha
24-Feb-12 2:27am
View
not working.....
M.Narmatha
24-Feb-12 1:58am
View
it exits from top directory
M.Narmatha
24-Feb-12 1:17am
View
not working...
M.Narmatha
24-Feb-12 0:18am
View
this is also return error...
M.Narmatha
23-Feb-12 7:12am
View
how can i give folder path.... i have to store image into userside-clogo
M.Narmatha
23-Feb-12 4:56am
View
how to set..i d't know
M.Narmatha
23-Feb-12 4:20am
View
can't understand...
M.Narmatha
16-Feb-12 6:47am
View
that also not working...
M.Narmatha
13-Feb-12 23:53pm
View
while updating
M.Narmatha
19-Dec-11 1:42am
View
how can i call update operation in c#
M.Narmatha
15-Dec-11 1:56am
View
inside panel image repeating 3 times..i want single image to cover full panel..what to do...
M.Narmatha
15-Dec-11 1:25am
View
panel..
M.Narmatha
15-Dec-11 1:22am
View
part of page..
M.Narmatha
15-Dec-11 0:57am
View
how to set paricular part of page only...
M.Narmatha
14-Dec-11 0:49am
View
thanks a lot...
M.Narmatha
7-Dec-11 22:59pm
View
thank u so much... its working..
M.Narmatha
7-Dec-11 5:33am
View
it shows error like : use of unassigned variable totalprice
M.Narmatha
7-Dec-11 4:44am
View
using this event how to calculate totalprice of all rows ... it display out of gridview....
M.Narmatha
6-Dec-11 4:38am
View
every user having seperate session id...if add a item to addcart means i have to whether the user is new or current user...
M.Narmatha
6-Dec-11 1:20am
View
have to find new user or current user using user_session id...
M.Narmatha
6-Dec-11 0:08am
View
this code execute partially...
public void totalprice()
{
float pricee;
int quantityy;
foreach (GridViewRow row in GridView1.Rows)
{
int pro_id = Convert.ToInt32(GridView1.DataKeys[row.RowIndex][0]);
pricee = dal.getprice(pro_id);
quantityy = dal.getquantity(pro_id);
float totalprice = quantityy * pricee;
lbltprice.Text = totalprice.ToString();
}
}
M.Narmatha
6-Dec-11 0:02am
View
ok...Thank u....
M.Narmatha
5-Dec-11 23:57pm
View
yes....
M.Narmatha
3-Dec-11 1:48am
View
<asp:TemplateField HeaderText="price">
<itemtemplate>
<%#Eval("price")%>
M.Narmatha
3-Dec-11 1:47am
View
wht is it..
M.Narmatha
3-Dec-11 1:13am
View
price is not a label its a templatefield what can i do..
M.Narmatha
3-Dec-11 1:09am
View
in pageload()
M.Narmatha
3-Dec-11 0:46am
View
is for loop correct...
M.Narmatha
2-Dec-11 4:20am
View
then wht to do..
M.Narmatha
2-Dec-11 4:20am
View
if i get null values means what to do...
M.Narmatha
2-Dec-11 4:13am
View
it shows error: Object reference not set to an instance of an object.
M.Narmatha
1-Dec-11 0:56am
View
imagefield
M.Narmatha
28-Nov-11 1:33am
View
even error coming..
M.Narmatha
25-Nov-11 4:10am
View
it shows error like:
Error 1 Operator '<=' cannot be applied to operands of type 'int' and 'method group'
M.Narmatha
22-Nov-11 3:17am
View
k.i want to correct this code...how can i get values if i click a options like
below rs.500/-
rs.500/- to rs.1000/-
M.Narmatha
22-Nov-11 0:49am
View
k..but i d't where use this query inside my coding.
M.Narmatha
22-Nov-11 0:47am
View
giv code for that.
M.Narmatha
22-Nov-11 0:46am
View
price = '" + price_range+ "' it get only string as below Rs.500/- instead of this how can get values of less than 500 from database.
M.Narmatha
21-Nov-11 23:38pm
View
above code not working it shows error...
M.Narmatha
19-Nov-11 3:30am
View
options selected from bulleted list
M.Narmatha
18-Nov-11 23:49pm
View
no...
M.Narmatha
13-Nov-11 23:23pm
View
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Request.QueryString["ID"] != null)
{
string id = Request.QueryString["ID"];
Session["ID"] = id.ToString();
}
load_grid();
}
}
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "delete")
{
GridViewRow rows = (GridViewRow)(((Button)e.CommandSource).NamingContainer);
string ids = e.CommandArgument.ToString();
con.Open();
SqlCommand cmd = new SqlCommand("update product set status='D' where pro_id='" + ids + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
Page.ClientScript.RegisterStartupScript(this.GetType(), "msg", "<script>alert('Record Deleted')</script>");
con.Close();
load_grid();
}
else
{
if (e.CommandName == "update")
{
GridViewRow rows = (GridViewRow)(((Button)e.CommandSource).NamingContainer);
string ids = e.CommandArgument.ToString();
Response.Redirect("product.aspx?ids=" + ids);
}
}
}
public void load_grid()
{
if (con.State == ConnectionState.Closed)
{
con.Open();
}
SqlCommand cmd = new SqlCommand("select pro_id,pro_name,description,pro_category,priority,delivery,area,pro_img,ytube_url,type,price,status from product where status='A'", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
con.Close();
}
Show More