16,016,088 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 .NET 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 Vandana_Pathak (Top 8 by date)
Vandana_Pathak
1-Aug-13 7:41am
View
<asp:Label ID="lbl" runat="server" Text="No">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="true" OnRowDataBound="CustomersGridView_RowDataBound" ShowFooter="true">
<columns>
<asp:BoundField DataField="amt" HeaderText="Amt"/>
<asp:TemplateField>
<footertemplate>
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="textboxchanged" AutoPostBack="true">
DataTable dt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
dt.Columns.Add("amt", typeof(Int32));
dt.Columns.Add("pamt", typeof(Int32));
dt.Columns.Add("damt", typeof(Int32));
DataRow dr=dt.NewRow();
dr[0] = 200;
dt.Rows.Add(dr);
DataRow dr1 = dt.NewRow();
dr1[0] = 400;
dt.Rows.Add(dr1);
GridView1.DataSource = dt;
GridView1.DataBind();
string directoryPath = @"D:\New folder";
TextBox TextBox1 = (TextBox)GridView1.FooterRow.Cells[0].FindControl("TextBox1");
TextBox1.Text = "abc";
}
}
protected void textboxchanged(Object sender, EventArgs e)
{
TextBox TextBox1 = (TextBox)GridView1.FooterRow.Cells[0].FindControl("TextBox1");
if (TextBox1.Text != "")
{
lbl.Text = "Yes";
}
else { lbl.Text = "No"; }
}
Try this may be it is helpful for you
Vandana_Pathak
1-Aug-13 7:19am
View
Try this
select broker_id,name,amt,sum(amt) as Total_lots, 0.15* sum(amt) as premium from item group by broker,name,amt order by broker_id,lot_no
OR
select a.*,a.Total_lots * 0.15 from (select broker_id,name,amt,sum(amt) as Total_lots from item group by broker,name,amt order by broker_id,lot_no) a
Vandana_Pathak
1-Aug-13 7:15am
View
can i know what problem actually raised?
Vandana_Pathak
1-Aug-13 4:57am
View
da = New SqlDataAdapter("select broker_id,name,amt,sum(amt) as Total_lots, 0.15* total_lots as premium order by broker_id,lot_no ", cn)
Above you give code,can u explain this query is correct in your code.Because this query does not have from clause.If u clear doubt then i can help you and give solution properly
Vandana_Pathak
11-Feb-13 4:26am
View
Thanks...actually when get the control in page then above code return object[object] in place or ct_100 like id.
Vandana_Pathak
11-Feb-13 4:18am
View
server control id and client id both are different meaning....so its not funny code
Vandana_Pathak
11-Feb-13 4:13am
View
Not work...Error did not return but still i did not access client id.
Vandana_Pathak
7-Feb-13 1:06am
View
Deleted
$("button, input[type='button']").each(function () { $(this).attr('value', 'Show'); });
I am using this above mentioned code but not working..plz guide me..how can i change text of all input type button text
Show More