16,017,274 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 Member 8609405 (Top 15 by date)
Member 8609405
26-Jun-12 8:36am
View
thanks
Member 8609405
26-Jun-12 8:27am
View
I am getting data from database
Member 8609405
26-Jun-12 8:27am
View
i dont no the data
Member 8609405
21-May-12 1:02am
View
thnks
Member 8609405
21-May-12 1:02am
View
which country u r?
Member 8609405
3-May-12 8:16am
View
thanks
Member 8609405
30-Mar-12 2:52am
View
I had already checked the value ther is no problem in textbox but it doesn't return the value
Member 8609405
28-Mar-12 2:22am
View
its my gridview id
Member 8609405
28-Mar-12 1:52am
View
Hi, griff i am using stored procedure. how to convert a datatable into string is it possible
Member 8609405
27-Mar-12 9:19am
View
there is no problem in gridview in back end i use br/tag .when it comes to front end i.e in grid view when br/ it executes in next line
Member 8609405
27-Mar-12 9:07am
View
select age,replace(left(type,len(type)-1),',','<br/>') as scheduletype,
replace(left(name,len(name)-1),',','<br/>') as name,
replace(left(dose,len(dose)-1),',','<br/>') as dose from
(SELECT p1.age,
( SELECT scheduletype + ','-- replace(left(scheduletype,len(scheduletype)-1),',','<br/>')
FROM k_Master_Scheduletype p2
WHERE p2.age = p1.age
ORDER BY scheduletype
FOR XML PATH('') ) AS type,
( SELECT name + ','
FROM k_Master_Scheduletype p2
WHERE p2.age = p1.age
ORDER BY name
FOR XML PATH('') ) AS name,
( SELECT dose + ','
FROM k_Master_Scheduletype p2
WHERE p2.age = p1.age
ORDER BY dose
FOR XML PATH('') ) AS dose
FROM k_Master_Scheduletype p1
GROUP BY age) a
END
GO
Member 8609405
27-Mar-12 9:05am
View
i used br/ html tag in back end now i want to break br/ tag in gridview
Member 8609405
27-Mar-12 9:04am
View
i get the records from database and i use br/ html tag in back end .now the break br/ results execute in next line
Member 8609405
13-Mar-12 3:06am
View
i had already try this .
Member 8609405
24-Feb-12 7:56am
View
protected void gvPlantRecord_RowCommand(object sender, GridViewCommandEventArgs e)
{
//e.CommandName.ToUpper() = "EditPlantRecord";
btncancel.Visible = true;
btnUpdate.Visible = true;
GridViewRow row = (GridViewRow)((LinkButton)e.CommandSource).NamingContainer;
int index = row.RowIndex;
objfeedplantentryPL.sno = Convert.ToInt16 (gvFeedPlantRecord.DataKeys[index].Value.ToString());
DataTable dtfillplantrecorddet = new DataTable();
dtfillplantrecorddet = objfeedplantentryBAL.GetplantrecordDdetail(objfeedplantentryPL);
txtDate.Text = dtfillplantrecorddet.Rows[0]["date"].ToString();
ddlPlanttype.SelectedValue = dtfillplantrecorddet.Rows[0]["planttype"].ToString();
ddlbirdtype.SelectedValue = dtfillplantrecorddet.Rows[0]["birdtype"].ToString();
feedtype();
if (ddlFeedtype.SelectedItem.Text == "Others")
{
txtOtherfeed.Text = dtfillplantrecorddet.Rows[0]["feedtype"].ToString();
}
else
{
ddlFeedtype.SelectedValue = dtfillplantrecorddet.Rows[0]["feedtype"].ToString();
}
// ddlFeedtype.SelectedValue = dtfillplantrecorddet.Rows[0]["feedtype"].ToString();
ddlbatchno.SelectedValue = dtfillplantrecorddet.Rows[0]["batchno"].ToString();
txtQuantity.Text = dtfillplantrecorddet.Rows[0]["quantity"].ToString();
txtVehicleno.Text = dtfillplantrecorddet.Rows[0]["vehicleno"].ToString();
txtDcno.Text = dtfillplantrecorddet.Rows[0]["dcno"].ToString();
txtDcno.Enabled = false;
btnSave.Visible = false;
}
protected void btnSave_Click(object sender, EventArgs e)
{
int? insertFeedPlantEntryRecords;
if (ddlFeedtype.SelectedItem.Text == "Others")
{
objfeedplantentryPL.feedtype = txtOtherfeed.Text.Trim().ToString();
}else
{
objfeedplantentryPL.feedtype = ddlFeedtype.SelectedValue;
}
IFormatProvider provider = new System.Globalization.CultureInfo("en-CA", true);
String datetime = txtDate.Text.Trim();
DateTime dt = DateTime.Parse(datetime, provider, System.Globalization.DateTimeStyles.NoCurrentDateDefault);
objfeedplantentryPL.supplydate = dt;
objfeedplantentryPL.planttype = ddlPlanttype.SelectedValue;
objfeedplantentryPL.birdtype = ddlbirdtype.SelectedValue;
objfeedplantentryPL.feedtype = ddlFeedtype.SelectedValue;
objfeedplantentryPL.batchno = ddlbatchno.SelectedValue;
objfeedplantentryPL.vehicleno = txtVehicleno.Text.Trim().ToString();
objfeedplantentryPL.dcno = txtDcno.Text.Trim().ToString();
objfeedplantentryPL.quantity = Convert.ToDouble(txtQuantity.Text.Trim().ToString());
objfeedplantentryPL.username = Session["username"].ToString();
insertFeedPlantEntryRecords = objfeedplantentryBAL.FeedPlantEntryInsert(objfeedplantentryPL);
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "UpdateDetails", "alert('Added Successfully');", true);
clear();
BindPlantRecord();
}
public void clear()
{
pnlOther.Visible = false;
txtDate.Text = "";
BindBirdType();
BindPlanttype();
txtQuantity.Text = "";
ddlFeedtype.Items.Clear();
ddlFeedtype.Items.Add(new ListItem("--Select--", "0"));
ddlFeedtype.SelectedIndex = ddlFeedtype.Items.Count - 1;
txtOtherfeed.Text = "";
txtDcno.Text = "";
Bindbatchno();
txtVehicleno.Text = "";
txtDate.Text = DateTime.Now.ToUniversalTime().AddMinutes(DateTime.Now.Subtract(DateTime.Now.ToUniversalTime()).TotalMinutes).ToString("dd/MM/y
Show More