15,887,746 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 The Praveen Singh (Top 48 by date)
The Praveen Singh
16-Oct-17 5:27am
View
kahna kya chahte ho ??
The Praveen Singh
16-Oct-17 5:26am
View
where did yot get this put your code and try and catch
The Praveen Singh
16-Oct-17 5:21am
View
@Member 12234802 DataAdopter is not used for joining the table,
as you describes table name only please share more details like Table structure etc, for better support.
The Praveen Singh
7-Oct-16 2:44am
View
Declare pettype outside try block
The Praveen Singh
9-Sep-16 7:19am
View
when you want to validation works is there any condition..
The Praveen Singh
9-Sep-16 7:12am
View
you mean common id data like 1 and 3 in a single datagrid.
The Praveen Singh
1-Sep-16 8:49am
View
use group by with oeShift.
The Praveen Singh
1-Sep-16 3:42am
View
check id of your textbox after inspecting in master page this will be changed as text box id, master page appends something like this:-ctl00$cpMainContent$ check and change in your case.
The Praveen Singh
26-Aug-16 2:21am
View
in your excel there is 11 colomn and in your loop you have set 7.
The Praveen Singh
25-Aug-16 6:47am
View
where is the code ..
The Praveen Singh
25-Aug-16 6:45am
View
put debug on cmd.CommandType = CommandType.Text; see what is the final query is made run it over SQL and Finds where the mistake.
The Praveen Singh
24-Aug-16 6:45am
View
how to get only 5,6,7 from "copkshopno in ('5,6,7') and"
The Praveen Singh
24-Aug-16 6:34am
View
sure i have store all value in variable after that i used your code this will return like this copkshopno in ('5') and copkshopno in ('1','2','3','4')
The Praveen Singh
24-Aug-16 6:27am
View
and I can't use OR operator here due to dependency of Other params.
The Praveen Singh
24-Aug-16 6:27am
View
this will return like this copkshopno in ('5') and copkshopno in ('1','2','3','4')
which does not provide expected result because of AND operator.
The Praveen Singh
24-Aug-16 6:25am
View
before second parameter came Value look like copkshopno in ('5') and i want to append a String value='1,2,3' into in operator after 5.
The Praveen Singh
24-Aug-16 6:03am
View
yes
The Praveen Singh
24-Aug-16 5:56am
View
Deleted
still waiting..
The Praveen Singh
24-Aug-16 5:41am
View
this is contains Value of Textbox.
The Praveen Singh
24-Aug-16 5:36am
View
yes
The Praveen Singh
24-Aug-16 5:32am
View
//here ConnectedField return Param Names.
The Praveen Singh
24-Aug-16 5:31am
View
if (whereCondition.Contains((ctrlParam as DNTextBox).ConnectedField))
{
//here i want to apend.
}
The Praveen Singh
24-Aug-16 5:29am
View
pnl.Controls.CopyTo(arrCtrl, 0);
string whereCondition = string.Empty;
string SelectedValue = "";
//bool selectShop = false;
List<control> list = new List<control>(arrCtrl);
foreach (HtmlControl genParam in list.FindAll(p => { return (p is HtmlGenericControl); }))
{
if ((ctrlParam as DNTextBox).InputTable.ToLower() == "tashop")
{
whereCondition += (ctrlParam as DNTextBox).ConnectedField + " in ('" + string.Join("','", (ctrlParam as DNTextBox).Text.Replace(",", "','")) + "') and ";
}
if ((ctrlParam as DNTextBox).InputTable.ToLower() == "tashopgroups")
{
string selectItems = Parameters.getShopGroup(string.Join("','", (ctrlParam as DNTextBox).Text));
//Select items returns shop no on the basis of shop group which i want to append
if (selectItems == "")
{
string value = XYX.GUI.MultiLanguage.DNMultiLanguage.GetMessage("noshopfound");
string sccript = "<script>alertify.alert('" + value + "');</script>";
Page.ClientScript.RegisterStartupScript(GetType(), "key", sccript);
return;
}
}
}
The Praveen Singh
24-Aug-16 5:18am
View
@Karthik Actually you don't undersatnd what i exactly want to ask:-
whereCondition += (ctrlParam as DNTextBox).ConnectedField + " in ('" + string.Join("','", (ctrlParam as DNTextBox).Text.Replace(",", "','")) + "') and ";
Above syntax returns "copkshopno in ('5') and"
Again through loop next param comes Shopgroup in which multiple shop were found i want to append that in my wherecondition in query for coshopno.
The Praveen Singh
23-Aug-16 7:53am
View
Install target framework 4
The Praveen Singh
16-Aug-16 1:23am
View
i did't help due to lack of Information.
The Praveen Singh
16-Aug-16 1:20am
View
Run SQL Server with Administrative Privilege.
The Praveen Singh
12-Aug-16 8:17am
View
Deleted
it may be the problem with app.config settings.
u hv to code like this
<appsettings>
<add key="ConnectionString" value="Data Source=server name;Initial Catalog=db name;User ID= sa;Password= sa">
if u code this wrongly ,typeintializer error w'll throw.
Also if the key name is used different from app.config also exception will throw.
The Praveen Singh
12-Aug-16 8:13am
View
what error you have get ??
The Praveen Singh
11-Aug-16 3:43am
View
question not clear
The Praveen Singh
11-Aug-16 2:35am
View
if can't use primary key then don't use EF because its necessary to be a primary key in table used in EF.
The Praveen Singh
11-Aug-16 0:29am
View
please explain what are you trying to ask..
The Praveen Singh
10-Aug-16 6:18am
View
you can not pass value in output parameter
The Praveen Singh
10-Aug-16 5:17am
View
use temp table with auto identity colomn
The Praveen Singh
10-Aug-16 2:21am
View
if you need freelancer to make service then contact to me on my mail praveendotnetexe@gmail.com
The Praveen Singh
10-Aug-16 2:19am
View
use service to get data
The Praveen Singh
9-Aug-16 8:30am
View
first check in your data table there should be all column name which you used on RowIndex. For eg-
dt.Rows[row.DataItemIndex]["APCUserID"] = ((Label)(row.Cells[1].Controls[0])); in dt there shuld be "APCUserID",this the only cause when error occurs as you mentioned.
The Praveen Singh
9-Aug-16 5:11am
View
because you have inserted value of your foreign key before it is exists in Table in which you have make primary key.
The Praveen Singh
9-Aug-16 0:47am
View
where is the problem or what error you get ?
The Praveen Singh
4-Aug-16 6:32am
View
Use Server side paging, also optimize your query if possible.
The Praveen Singh
4-Aug-16 5:58am
View
may be you are not close your connection object
The Praveen Singh
4-Aug-16 5:57am
View
No codes written means it is in the air..
The Praveen Singh
4-Aug-16 5:56am
View
Share what are you tried ?
The Praveen Singh
4-Aug-16 1:00am
View
what do you want to ask please clear ?
The Praveen Singh
4-Aug-16 0:59am
View
is there any error occured ?
The Praveen Singh
3-Aug-16 3:48am
View
try with Temp table
The Praveen Singh
3-Aug-16 2:50am
View
data.addRow([jsonData[i].Text, jsonData[i].Value]);
put alert before above line alert(jsonData[i].Text);
Is data comes ??
The Praveen Singh
3-Aug-16 0:50am
View
What error you have get ??
Show More