16,005,178 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 Raj@88 (Top 54 by date)
Raj@88
18-Nov-14 4:32am
View
Hi..
Dinesh ..thanx for reply ..actually i knw dis process...
bt i want to fech data on button click by id ...
i did like dis..
if (Ds.Tables[0].Rows.Count > 0)
{
DRDCountry.SelectedValue = Ds.Tables[0].Rows[0]["Country"].ToString();
DRDState.SelectedValue = Ds.Tables[0].Rows[0]["State"].ToString();
DRDDistrict.SelectedValue = Ds.Tables[0].Rows[0]["District"].ToString();
DRDTahasil.SelectedValue = Ds.Tables[0].Rows[0]["Tahsil"].ToString();
DRDVillage.SelectedValue = Ds.Tables[0].Rows[0]["Village"].ToString();
}
but problem is ..it displays on 1st drop down data..
Raj@88
18-Nov-14 4:00am
View
No One??
Raj@88
23-Apr-13 13:25pm
View
Deleted
can anybody tell me the solution..plzz
Raj@88
23-Apr-13 12:55pm
View
i did this on update update..
double diff = 0;
if (txtdiffrence.Text != "")
{
diff = Convert.ToDouble(txtdiffrence.Text);
}
Raj@88
19-Apr-13 14:46pm
View
main ne solve kar diya hain problem...
anyways...thanx..
agar kabhi problem aayto...plz help me
Raj@88
18-Apr-13 8:35am
View
Sir am using Access database..
Raj@88
18-Apr-13 7:40am
View
Tadit Dash sir.. as we discuss ..i used the dataset, all is working properly ...but the problem is that , i couldn't fetch data in gridview2 from table2 (SlideShowTable2)..
can i send my demo ..can u please send me ur mail-id
thank you...
Raj@88
18-Apr-13 3:16am
View
Ok..thanx..a lot :)
Raj@88
18-Apr-13 2:08am
View
if i have a database, with login , employee1 and employee2 tables
and also have 2 grid views 1st grid view to fetch the data from login and employee1 ,
in 1st grid view have link button with name activate for each row n when i click that activate button the data move from employee1 to employee2 table (employee1 & employee2 have same structure) and grid view 2 used to fetch the data of employee2 ..in that case what will i used dataset or datatable..
Raj@88
17-Apr-13 15:27pm
View
Suppose i have 2 tables say-Login and Employee and there is relation between these 2 tables in one database and i am fetching data in grid view . on the grid i have one link button for each row , when i click that link button than that related row will move from one table two another table...in that case what will i use dataset or datatable..
Raj@88
17-Apr-13 7:06am
View
kar diya mail...plz check it out..
Raj@88
17-Apr-13 6:52am
View
i tried but not getting the solution
sir...give me ur mail id ...the id which u given is wrong..
Raj@88
17-Apr-13 6:04am
View
U_id is field that present in LOGIN table.
U_id,U_name,U_Email,U_Mobile,U_password
Raj@88
17-Apr-13 5:46am
View
am unable to send u..
Raj@88
17-Apr-13 5:02am
View
yes ..value is copied.
Raj@88
17-Apr-13 4:48am
View
Can anybody help me..?
Raj@88
17-Apr-13 3:34am
View
Dnyaneshwar sir...can i send u the project on ur mail id ...if yes plz send me ur mail id...
i checked all things ..bt not getting the solution ...can plz help me out
thanx
Raj@88
17-Apr-13 2:47am
View
no error...am unable show data in table 2 in grid view 2..
Raj@88
15-Apr-13 6:22am
View
Thanx a lot sir....:)
Raj@88
15-Apr-13 2:33am
View
i had send u mail ..plz check it out..thanx
Raj@88
14-Apr-13 14:29pm
View
plz check the code above....am not using update panel...
Raj@88
14-Apr-13 14:23pm
View
all is working sir..
query also correct..
i have data in 2nd table..
Raj@88
14-Apr-13 14:13pm
View
AM NOT ABLE TO FETCH THE VALUE IN 2ND GIRD FROM 2ND TABLE..
Raj@88
14-Apr-13 13:48pm
View
u told me two things..i did 1st thing properly working...2nd thing is not working...
Raj@88
14-Apr-13 12:37pm
View
not working...:(
Raj@88
10-Apr-13 1:50am
View
i hv two table in my project Advertise1,Advertise2...the project is related to Advertising the business, when user insert data related to their business data will save in Advertise1 ...with start date and end date after completion the date the data of the particular user should move from Advertise1 to Advertise2...for that am using access database.
Raj@88
5-Apr-13 11:21am
View
thanxxx
Raj@88
4-Apr-13 23:29pm
View
am not getting....!!!!...:(
Raj@88
4-Apr-13 8:36am
View
thanx..mr.amit
Raj@88
4-Apr-13 8:03am
View
i removed it..but
Error occurs
.The TargetControlID of 'CalendarExtender1' is not valid. The value cannot be null or empty.
this error is occurred when i removed it
Raj@88
4-Apr-13 7:59am
View
Amit sir...
The TargetControlID of 'CalendarExtender1' is not valid. The value cannot be null or empty.
this error is occurred when i removed it
Raj@88
1-Apr-13 8:16am
View
sir ..i mean to say dat...in my project ...user uploaded the image ..at the time of updatn the time and date will save in database...and i want to delete the image after 2 day/5 days automatically...
Raj@88
24-Mar-13 13:58pm
View
Mr.Prasad Khandekar i hv commented the delete query...if u remove it,,,the program execute properly but not update command
Raj@88
24-Mar-13 9:50am
View
plz anybody help me...to solve this..
Raj@88
22-Mar-13 0:10am
View
am using accsee database
Raj@88
22-Mar-13 0:09am
View
sir can u send me any link or example..
Raj@88
20-Mar-13 5:42am
View
thanx a lot..i am new in asp.net ...refrence ke liye koi books bata sakte ho...
Raj@88
20-Mar-13 5:41am
View
Mr. amit...problem solved...
Raj@88
20-Mar-13 5:36am
View
no error...only page refresh ho raha hain
Raj@88
20-Mar-13 5:32am
View
hey...amit its working...bt page redirect nahi ho ra hain ..
Raj@88
18-Mar-13 5:45am
View
hey...friend its workingggg...:)
Raj@88
18-Mar-13 3:41am
View
kzzz let me try..
Raj@88
13-Mar-13 3:01am
View
Prakash u hv any demo...
Raj@88
12-Mar-13 7:08am
View
thanxsssssssssss a lot............
Raj@88
12-Mar-13 6:33am
View
Deleted
id - 520 424 644
pwd- 4002
Raj@88
12-Mar-13 6:32am
View
Deleted
1 min
Raj@88
12-Mar-13 6:30am
View
Aarti Meswania: can u join me with team viewer...
Raj@88
12-Mar-13 6:15am
View
Same Error.......
Raj@88
12-Mar-13 6:03am
View
kk
Raj@88
12-Mar-13 5:48am
View
yaa..i have passed...den why dis happned...?...
Raj@88
12-Mar-13 5:42am
View
mam...No value given for one or more required parameters....this error is occured.. :(
Raj@88
12-Mar-13 5:30am
View
yes...mam..i want update the row..
Raj@88
12-Mar-13 5:25am
View
sir...i know that bt...i want insert the data in particular row..where the data is already filled bt not these 2 colm ...for this i hv taken these value in session from another page...
wait...
the another page coding is given below..
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OleDb;
using System.IO;
public partial class CreatAdverties : System.Web.UI.Page
{
OleDbConnection con = new OleDbConnection(ConfigurationManager.ConnectionStrings["dbconnection"].ToString());
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bindcatogeryropdown();
BindAreadropdown();
}
}
protected void BindAreadropdown()
{
//conenction path for database
con.Open();
OleDbCommand cmd = new OleDbCommand("select * from AreaTable", con);
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
con.Close();
ddlCreateAddArea.DataSource = ds;
ddlCreateAddArea.DataTextField = "AreaName";
ddlCreateAddArea.DataValueField = "AreaID";
ddlCreateAddArea.DataBind();
ddlCreateAddArea.Items.Insert(0, new ListItem("Select Area", "0"));
ddlCreateAddArea.Items.Insert(0, new ListItem("Select Category ", "0"));
}
protected void Bindcatogeryropdown()
{
//conenction path for database
con.Open();
OleDbCommand cmd = new OleDbCommand("select * from catname", con);
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
con.Close();
ddlCreateAddCategory.DataSource = ds;
ddlCreateAddCategory.DataTextField = "CategoryName";
ddlCreateAddCategory.DataValueField = "ID";
ddlCreateAddCategory.DataBind();
ddlCreateAddArea.Items.Insert(0, new ListItem("Select Area", "0"));
ddlCreateAddCategory.Items.Insert(0, new ListItem("Select Category ", "0"));
}
public void ddlCreateAddArea_SelectedIndexChanged(object sender, EventArgs e)
{
string AreaID = ddlCreateAddArea.SelectedItem.ToString();
con.Open();
OleDbCommand cmd = new OleDbCommand("select * from SlideShow where AreaName='" + AreaID + "' ", con);
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataSet ds = new DataSet();
con.Close();
if (ddlCreateAddCategory.SelectedValue == "0")
{
}
}
public void ddlCreateAddCategory_SelectedIndexChanged(object sender, EventArgs e)
{
string CategoryID = ddlCreateAddCategory.SelectedItem.ToString();
string ArName = ddlCreateAddCategory.SelectedItem.ToString();
con.Open();
OleDbCommand cmd = new OleDbCommand("select * from SlideShowTable where CategoryName='" + CategoryID + "' And AreaName='" + ArName + "' ", con);
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
con.Close();
}
protected void btncreat_Click(object sender, EventArgs e)
{
////Get Filename from fileupload control
//String extention;
//String name = fileuploadimages.FileName;
//String name1 = name.ToUpper();
//if (name1.EndsWith(".JPG"))
// extention = ".JPG";
//else if (name1.EndsWith(".GIF"))
// extention = ".GIF";
//else if (name1.EndsWith(".JPEG"))
// extention = ".JPEG";
//else
// extention = "";
//String filename = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTi
Raj@88
12-Mar-13 5:12am
View
what is the mistake...didn't getting..plz tell me..
Show More