15,906,624 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 amperayani (Top 45 by date)
amperayani
15-Apr-13 2:08am
View
public static void minimum_cost(out string[] input1, out int[] input2)
{
input1 = new string[4] { "A", " B", " C", " D" };
input2 = new int[6] { 2, 3, 1, 5, 4, 3 };
int i = 0;
int j = 0;
var query = from s in input1
let num = i++
group s by num / 2 into g
select g.ToArray();
var results = query.ToArray();
var query2 = from s1 in input2
let num1 = j++
group s1 by num1 / 1 into g1
select g1.ToArray();
var results2 = query.ToArray();
foreach (string[] r1 in results)
{
Console.WriteLine("{0}",r1);
}
foreach (string[] r2 in results2)
{
Console.WriteLine("{0}", r2);
}
}
i was try this i didn't get it
amperayani
15-Apr-13 1:48am
View
write like this
if(session["username"]!=null)
amperayani
27-Aug-12 11:58am
View
it is showing same error .Fill: SelectCommand.Connection property has not been initialized. how can i solve this
amperayani
27-Aug-12 11:57am
View
where it is ? please tell me
amperayani
27-Aug-12 11:56am
View
Again same error it is not accepting
SqlDataAdapter da = new SqlDataAdapter(cmd, con); it is shwoing error
amperayani
10-Aug-12 11:19am
View
asking
amperayani
10-Aug-12 11:18am
View
asking
amperayani
10-Aug-12 11:18am
View
i tried above code but it is not working . please anyone tell me
amperayani
10-Aug-12 11:18am
View
i tried baove but it is not working . please anyone tell me
amperayani
5-Aug-12 8:55am
View
<configuration>
<connectionstrings>
<add name="cnstr" providername="System.Data.SqlClient"
="" connectionstring="Data Source=localhost;Initial Catalog=airindia_db; Integrated Security=true">
this is my connection string
amperayani
2-Aug-12 4:02am
View
i know but i want how to display selected image in image control
from database
amperayani
2-Aug-12 4:02am
View
i know how to display selected image in image control
from database
amperayani
2-Aug-12 2:52am
View
thank you
amperayani
26-Jul-12 7:55am
View
how can i get api key
amperayani
26-Jul-12 7:54am
View
it is asking google api key but it was costly , i want free api key
amperayani
17-Jul-12 8:03am
View
yeah correct
amperayani
17-Jul-12 8:00am
View
both are showing null
amperayani
17-Jul-12 8:00am
View
but it shows null txtfrm null and txttodt null not working
amperayani
10-Jul-12 6:28am
View
i have data on database front end aspx ,codebehind we are using vb.net
...
i have aspx page that contain only label and texbox,calender extender control eg. whenever a person to see on particular past day what he done so he need to put cursor on date that selected date should display what he done on that day. iam using vb.net please tell me vb.net
amperayani
10-Jul-12 4:42am
View
i haven't understand please describe
amperayani
7-Jul-12 8:39am
View
i want those values to be display 3rd textbox
i.e.. 1st textbox date and 2nd textbox date should be minus and that value should display in 3rd textbox how would i get this please help me
amperayani
7-Jul-12 7:54am
View
yeah some scriptmanager is working
amperayani
14-Jun-12 6:05am
View
function myfunction()
{
var txt="'hi how are you";
var n =txt.split();
strrev(n);
}
is it write? please tell me urgent
amperayani
14-Jun-12 6:04am
View
function myfunction()
{
var txt="'hi how are you";
var n =txt.split();
strrev(n);
}
is it write?
please tell me urgent
amperayani
9-Jun-12 0:29am
View
it is saying ,invalid ;,invalid ) so again so many error coming
what to do
amperayani
4-Jun-12 8:12am
View
thanks i got it
amperayani
13-May-12 11:09am
View
if i want to insert different data how it possible
amperayani
13-May-12 11:02am
View
i try that i got this error executeNonquery:connection prperly has not been initialized
private void btnew_Click(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand("insert into emp values(empno,'ename','job',sal,'hiredate',comm,dept)");
con.Open();
cmd.ExecuteNonQuery();
}
amperayani
13-May-12 10:47am
View
hi i written the code for to display the data but i don't know how to insert the data in the button . i have writtend sqlconnection in general declaration. please help me
amperayani
8-May-12 11:13am
View
I WANT TO INSERT , SAVE AND DELETE THE DATA PLEASE HELP ME OUT TO SOLVE THIS PROBLEM
amperayani
8-May-12 9:09am
View
i have written the i dont know how to insert in the buttonclck,delete button click please help me out of this problem
amperayani
3-May-12 11:05am
View
Thanks . i got it
amperayani
3-May-12 10:46am
View
i am using sqlserver enterprise edition not sqlexpress
it is showing same on loging
amperayani
3-May-12 10:22am
View
"A connection was successfully established with server but then an error occurred during the login procees (priovider:shared memory,error:0 ,No procees is on other end of the pipe )(microsoft sqlserver ,Error :233"
it is saying like this
amperayani
18-Apr-12 9:15am
View
actually i have 6 columns so in that only one or two columns i need logic . is possible write logic only 2 columns
amperayani
17-Apr-12 10:37am
View
i need to write database connection in app.config , is this same
amperayani
27-Mar-12 8:02am
View
yes sir i have app.config and i need to design a form without gridview , i need to design a form using textbox and labels connect to sqlserver database
amperayani
25-Mar-12 8:34am
View
how can i test app.config file
amperayani
25-Mar-12 7:38am
View
how can i test app.config file
amperayani
25-Mar-12 7:33am
View
k i know that if i have app.config file ,is DLL necessary to create
amperayani
25-Mar-12 7:28am
View
k thank u where should i use using system.configuaration in dll or any normall win for
amperayani
25-Mar-12 7:12am
View
please tell me how to use app.config file is this app.config file is correct
<configuration>
<configsections>
<appsettings>
<add key="SqlProviderType" value="SqlServer">
<connectionstrings>
<add name="SqlConnection" connectionstring="Data Source=.;Initial Catalog=airindia;User ID=sa;Password=123;Integrated Security=false;"
="" providername="System.Data.SqlClient">
<add name="dbconnection.Properties.Settings.databaseConnectionString"
="" connectionstring="Data Source=.;Initial Catalog=airindia;User ID=sa;Password=123" providername="System.Data.SqlClient">
amperayani
25-Mar-12 7:11am
View
please tell me how to use app.config file is this app.config file is correct
<configuration>
<configsections>
<appsettings>
<add key="SqlProviderType" value="SqlServer">
<connectionstrings>
<add name="SqlConnection" connectionstring="Data Source=.;Initial Catalog=airindia;User ID=sa;Password=123;Integrated Security=false;"
="" providername="System.Data.SqlClient">
<add name="dbconnection.Properties.Settings.databaseConnectionString"
="" connectionstring="Data Source=.;Initial Catalog=airindia;User ID=sa;Password=123" providername="System.Data.SqlClient">
amperayani
25-Mar-12 7:10am
View
<configuration>
<configsections>
<appsettings>
<add key="SqlProviderType" value="SqlServer">
<connectionstrings>
<add name="SqlConnection" connectionstring="Data Source=.;Initial Catalog=airindia;User ID=sa;Password=123;Integrated Security=false;"
="" providername="System.Data.SqlClient">
<add name="dbconnection.Properties.Settings.databaseConnectionString"
="" connectionstring="Data Source=.;Initial Catalog=airindia;User ID=sa;Password=123" providername="System.Data.SqlClient">
and dll file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.SqlClient;
using System.Data;
using System.Text;
namespace dbconnection
{
public class database
{
public static DataSet GetData(string cnstr, string tn)
{
SqlConnection cn = new SqlConnection("userid=sa;password=123;database=airindia");
SqlDataAdapter da = new SqlDataAdapter("tn",cn);
DataSet ds = new DataSet();
da.Fill(ds, "d");
return ds;
}
}
}
amperayani
25-Mar-12 7:09am
View
actually i wrote app.config file to connect sqlserver 2008 so i need to use that file please tell me so see below app.config file and my dll is dll file is needed while connecting to database
Show More