15,891,976 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 ravi sharma11 (Top 41 by date)
ravi sharma11
3-Nov-12 1:30am
View
i have done as u said but still same problem. It is going in error
ravi sharma11
31-Oct-12 3:07am
View
I have already kept this code in try and catch and tried to write this exception in log file.
ravi sharma11
31-Oct-12 1:44am
View
I have already provided full permission. Still facing problem,
ravi sharma11
31-Oct-12 1:34am
View
It is just about my system. My OS in windows7. I have created virtual directory and accessing it from IIS in my own system. I have given all permission from iis and folder.
ravi sharma11
6-Oct-12 0:20am
View
My up audio file is on server and my converter u p2wav.exe is also on server. How can I have to pass mu source and destination file in up2wav.exe on server how to do it.
ravi sharma11
6-Oct-12 0:19am
View
My up audio file is on server and my converter u p2wav.exe is also on server. How can I have to pass mu source and destination file in up2wav.exe on server how to do it.
ravi sharma11
4-Oct-12 0:21am
View
yes, I want to play on webpage with my exe, or it should run direct with exe.
I just need a controler that helps tp play pause , stop or close sound
it means it should display gui to control running audio file
ravi sharma11
29-Sep-12 5:20am
View
suppose if i put my exe in client pc statically, and give a path of client pc like c:\upplayer.exe? then? active x will only install exe?
ravi sharma11
29-Sep-12 3:13am
View
than what is the solution ? this player is give by client and this files not supported by media player or other players
Please give me the solution.
ravi sharma11
29-Sep-12 2:46am
View
I want to play it on client side.
I was said to keep it into c drive in client pc. Actually it is a player given by client.
And it is only exe file
So when user play file, it will take a file from server and run exe from client.
It starts the process of exe but do not show GUI of player
ravi sharma11
22-Sep-12 7:28am
View
i want to do it just like when you play some file and it says to donwload flash player in mozilla and after donwload it starts setup and play
ravi sharma11
22-Sep-12 7:27am
View
I am using up player
ravi sharma11
10-Sep-12 6:50am
View
I can not access query.CopyToDataTable()
can not find .CopyToDataTable() this.
ravi sharma11
10-Sep-12 1:55am
View
Thanks sandip, I have solved that issue. I have taken seprate datatable and fetch by product id and bind lable with the text....
ravi sharma11
8-Sep-12 6:55am
View
can you give me some introduction ??? how the database goes?
ravi sharma11
8-Sep-12 6:39am
View
My application is in visual studio 2010.
I have to send my database also.
current database is in sql server, So how is it possible to send database with setup??????????
ravi sharma11
4-Sep-12 0:59am
View
Deleted
I am not using jquery.
protected void gvAdmin_RowEditing(object sender, GridViewEditEventArgs e)
{
gvAdmin.EditIndex = e.NewEditIndex;
FillData();
}
protected void gvAdmin_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
gvAdmin.EditIndex = -1;
FillData();
}
protected void gvAdmin_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
obj.id = Convert.ToInt64(gvAdmin.DataKeys[e.RowIndex].Value.ToString());
TextBox txtFirstName = (TextBox)(gvAdmin.Rows[e.RowIndex].FindControl("txtFirstName"));
TextBox txtLastName = (TextBox)(gvAdmin.Rows[e.RowIndex].FindControl("txtLastName"));
DropDownList ddlCity = (DropDownList)(gvAdmin.Rows[e.RowIndex].FindControl("ddlCity"));
TextBox txtEmail = (TextBox)(gvAdmin.Rows[e.RowIndex].FindControl("txtEmail"));
TextBox txtUsername = (TextBox)(gvAdmin.Rows[e.RowIndex].FindControl("txtUsername"));
//TextBox txtPassword = (TextBox)(gvAdmin.Rows[e.RowIndex].FindControl("txtPassword"));
RadioButton rbMale = (RadioButton)(gvAdmin.Rows[e.RowIndex].FindControl("rbMale"));
RadioButton rbFemale = (RadioButton)(gvAdmin.Rows[e.RowIndex].FindControl("rbFemale"));
CheckBox chkActive = (CheckBox)(gvAdmin.Rows[e.RowIndex].FindControl("chkIsActive"));
obj.flag = "Update";
obj.firstname = txtFirstName.Text;
obj.lastname = txtLastName.Text;
obj.emailid = txtEmail.Text;
obj.username = txtUsername.Text;
obj.password = "ravi123";
obj.isactive = chkActive.Checked;
obj.city = Convert.ToInt64(ddlCity.SelectedValue);
if (rbMale.Checked == true)
{
obj.gender = Convert.ToBoolean(1);
}
else
{
obj.gender = Convert.ToBoolean(0);
}
obj.update();
gvAdmin.EditIndex = -1;
FillData();
}
protected void gvAdmin_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
obj.id = Convert.ToInt64(gvAdmin.DataKeys[e.RowIndex].Value);
obj.flag = "Delete";
obj.Delete();
gvAdmin.EditIndex = -1;
FillData();
}
<asp:GridView ID="gvAdmin" runat="server" AutoGenerateColumns="False" DataKeyNames="id"
CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" OnRowEditing="gvAdmin_RowEditing"
OnRowCancelingEdit="gvAdmin_RowCancelingEdit" OnRowDeleting="gvAdmin_RowDeleting"
OnRowUpdating="gvAdmin_RowUpdating">
<alternatingrowstyle backcolor="White" forecolor="#284775">
<editrowstyle backcolor="#999999">
<footerstyle backcolor="#5D7B9D" font-bold="True" forecolor="White">
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<rowstyle backcolor="#F7F6F3" forecolor="#333333">
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<sortedascendingcellstyle backcolor="#E9E7E2">
<sortedascendingheaderstyle backcolor="#506C8C">
<sorteddescendingcellstyle backcolor="#FFFDF8">
<sorteddescendingheaderstyle backcolor="#6F8DAE">
<columns>
<asp:TemplateField>
<HeaderTemplate>
<asp:CheckBox ID="chkHeader" runat="server" OnClick="javascript:SelectAll();" />
</HeaderTemplate>
<itemtemplate>
<asp:CheckBox ID="chkDelete" runat="server" OnClick="javascript:DeselectHeader();" />
<asp:TemplateField HeaderText="Full Name">
<itemtemplate>
<%#Eval("firstname")+" "+ Eval("lastname")
ravi sharma11
1-Sep-12 5:14am
View
nly from c#
ravi sharma11
1-Sep-12 4:40am
View
Actually I need such report that user himself will select biller from dropdown which is a foreign key,same as he will select shipper and total of item and price should be displayed in footer.
ravi sharma11
1-Sep-12 3:25am
View
It's ItemDataBound. Can you give an example how to do it?
ravi sharma11
1-Sep-12 3:03am
View
Yes ProductImage is a field in database. I want o make such code as if database Productimage field is empty then show noimage.jpeg
ravi sharma11
1-Sep-12 2:34am
View
I have noimage.jpeg in database. I have update question please check
ravi sharma11
31-Aug-12 12:41pm
View
But I have binded it in follwing way so I just want to keep condition in Datalist
public void BindProduct()
{
rptProduct.DataSource = objProduct.SelectHomePageProduct();
rptProduct.DataBind();
}
And I dont want to code too much. It's really easy, I have done in past but I can not get it because I have done in previouse company..
ravi sharma11
31-Aug-12 0:28am
View
my project is in vs2010 so here i have deleted reference and added again,i have tried cleaning web solution also....
ravi sharma11
30-Aug-12 7:44am
View
I have already checked it and count all 15 perameters. when i editedmx, This error is generated
ravi sharma11
30-Aug-12 6:44am
View
This I have done before but I need such report that when user select Product name or Item name or he select checkbox only that fields should be displayed. I was said to do it.
ravi sharma11
29-Aug-12 1:28am
View
yes, I just want to display only single image
ravi sharma11
29-Aug-12 1:13am
View
I want only first image from Image table
ravi sharma11
28-Aug-12 7:52am
View
ResizeImageFreeSize(SourcePath, DestinationPath, 250, int 180,FileExtension)
I am passing this values from a function
ravi sharma11
28-Aug-12 4:53am
View
You mean to say that whenever anyone bid on product, I need to check in database and comapre with higest bid and if it is bigger, then store in database as bid
winner with date comparision of closing date
ravi sharma11
25-Aug-12 1:42am
View
Actually I have removed connection string and all code for insertion in database and kept a code to generate log in web service but still web service not calling.
In local machine, Web service working well....
ravi sharma11
25-Aug-12 1:38am
View
Actually I am also new developer and trying to make a payment from paypal and webservice. No senier is available to tell me atleast 1 word. So please help me
ravi sharma11
24-Aug-12 8:40am
View
This is a code in web service
public void GetData(string mc_gross, string protection_eligibility, string address_status, string payer_id, string tax, string address_street, string payment_date, string payment_status, string charset, string address_zip, string first_name, string mc_fee, string address_country_code, string address_name, string notify_version, string payer_status, string business, string address_country, string address_city, string payer_email, string verify_sign, string txn_id, string payment_type, string last_name, string address_state, string receiver_email, string payment_fee, string receiver_id, string txn_type, string item_name, string mc_currency, string item_number, string residence_country, string test_ipn, string handling_amount, string transaction_subject, string payment_gross, string shipping)
{
StreamWriter log;
if (!File.Exists(Server.MapPath("log.txt")))
{
log = new StreamWriter(Server.MapPath("log.txt"));
}
else
{
log = File.AppendText(Server.MapPath("log.txt"));
}
log.WriteLine("******************This is web service Data******************");
log.WriteLine("Inserte Complete");
log.Close();
}
Actually I am getting all data into logfile but can not access web service
ravi sharma11
24-Aug-12 8:00am
View
item_number = document.getElementById("lblitem_number").innerHTML;
residence_country = document.getElementById("lblresidence_country").innerHTML;
test_ipn = document.getElementById("lbltest_ipn").innerHTML;
handling_amount = document.getElementById("lblhandling_amount").innerHTML;
transaction_subject = document.getElementById("lbltransaction_subject").innerHTML;
payment_gross = document.getElementById("lblpayment_gross").innerHTML;
shipping = document.getElementById("lblshipping").innerHTML;
//alert("this is ajax");
$.ajax({
type: "POST",
url: "WebService.asmx/GetData",
data: "mc_gross='" + mc_gross + "'&protection_eligibility='" + protection_eligibility + "'&address_status='" + address_status + "'&payer_id='" + payer_id + "'&tax='" + tax + "'&address_street='" + address_street + "'&payment_date='" + payment_date + "'&payment_status='" + payment_status + "'&charset='" + charset + "'&address_zip='" + address_zip + "'&first_name='" + first_name + "'&mc_fee='" + mc_fee + "'&address_country_code='" + address_country_code + "'&address_name='" + address_name + "'¬ify_version='" + notify_version + "'&payer_status='" + payer_status + "'&business='" + business + "'&address_country='" + address_country + "'&address_city='" + address_city + "'&payer_email='" + payer_email + "'&verify_sign='" + verify_sign + "'&txn_id='" + txn_id + "'&payment_type='" + payment_type + "'&last_name='" + last_name + "'&address_state='" + address_state + "'&receiver_email='" + receiver_email + "'&payment_fee='" + payment_fee + "'&receiver_id='" + receiver_id + "'&txn_type='" + txn_type + "'&item_name='" + item_name + "'&mc_currency='" + mc_currency + "'&item_number='" + item_number + "'&residence_country='" + residence_country + "'&test_ipn='" + test_ipn + "'&handling_amount='" + handling_amount + "'&transaction_subject='" + transaction_subject + "'&payment_gross='" + payment_gross + "'&shipping='" + shipping + "'",
success: function (msg) {
//alert("You have done...");
}
});
});
</script>
ravi sharma11
24-Aug-12 7:57am
View
This is ajax code which is post from this paypal.aspx page
<script type="text/javascript">
$(document).ready(function () {
//function CallValues() {
var mc_gross = "";
var protection_eligibility = "";
var address_status = "";
var payer_id = "";
var tax = "";
var address_street = "";
var payment_date = "";
var payment_status = "";
var charset = "";
var address_zip = "";
var first_name = "";
var mc_fee = "";
var address_country_code = "";
var address_name = "";
var notify_version = "";
var payer_status = "";
var business = "";
var address_country = "";
var address_city = "";
var payer_email = "";
var verify_sign = "";
var txn_id = "";
var payment_type = "";
var last_name = "";
var address_state = "";
var receiver_email = "";
var payment_fee = "";
var receiver_id = "";
var txn_type = "";
var item_name = "";
var mc_currency = "";
var item_number = "";
var residence_country = "";
var test_ipn = "";
var handling_amount = "";
var transaction_subject = "";
var payment_gross = "";
var shipping = "";
mc_gross = document.getElementById("lblmc_gross").innerHTML;
protection_eligibility = document.getElementById("lblprotection_eligibility").innerHTML;
address_status = document.getElementById("lbladdress_status").innerHTML;
payer_id = document.getElementById("lblpayer_id").innerHTML;
tax = document.getElementById("lbltax").innerHTML;
address_street = document.getElementById("lbladdress_street").innerHTML;
payment_date = document.getElementById("lblpayment_date").innerHTML;
payment_status = document.getElementById("lblpayment_status").innerHTML;
charset = document.getElementById("lblcharset").innerHTML;
address_zip = document.getElementById("lbladdress_zip").innerHTML;
first_name = document.getElementById("lblfirst_name").innerHTML;
mc_fee = document.getElementById("lblmc_fee").innerHTML;
address_country_code = document.getElementById("lbladdress_country_code").innerHTML;
address_name = document.getElementById("lbladdress_name").innerHTML;
notify_version = document.getElementById("lblnotify_version").innerHTML;
payer_status = document.getElementById("lblpayer_status").innerHTML;
business = document.getElementById("lblbusiness").innerHTML;
address_country = document.getElementById("lbladdress_country").innerHTML;
address_city = document.getElementById("lbladdress_city").innerHTML;
payer_email = document.getElementById("lblpayer_email").innerHTML;
verify_sign = document.getElementById("lblverify_sign").innerHTML;
txn_id = document.getElementById("lbltxn_id").innerHTML;
payment_type = document.getElementById("lblpayment_type").innerHTML;
last_name = document.getElementById("lbllast_name").innerHTML;
address_state = document.getElementById("lbladdress_state").innerHTML;
receiver_email = document.getElementById("lblreceiver_email").innerHTML;
payment_fee = document.getElementById("lblpayment_fee").innerHTML;
receiver_id = document.getElementById("lblreceiver_id").innerHTML;
txn_type = document.getElementById("lbltxn_type").innerHTML;
item_name = document.getElementById("lblitem_name").innerHTML;
mc_currency = document.getElementById("lblmc_currency").innerHTML;
ravi sharma11
24-Aug-12 7:53am
View
This is paypal.aspx code where ipn data comes.
protected void Page_Load(object sender, EventArgs e)
{
string strSandbox = "https://www.sandbox.paypal.com/cgi-bin/webscr";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(strSandbox);
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
byte[] param = Request.BinaryRead(HttpContext.Current.Request.ContentLength);
string strRequest = Encoding.ASCII.GetString(param);
strRequest += "&cmd=_notify-validate";
req.ContentLength = strRequest.Length;
StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
streamOut.Write(strRequest);
streamOut.Close();
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
string strResponse = streamIn.ReadToEnd();
streamIn.Close();
if (strResponse == "VERIFIED")
{
lbllast_name.Text = Request["last_name"].ToString();
lblfirst_name.Text = Request["first_name"].ToString();
StreamWriter log;
if (!File.Exists(Server.MapPath("log1.txt")))
{
log = new StreamWriter(Server.MapPath("log1.txt"));
}
else
{
log = File.AppendText(Server.MapPath("log1.txt"));
}
log.WriteLine(DateTime.Now);
//PPH.State = HttpContext.Current.Request["address_state"];
lblverify_sign.Text = "verify";
lblmc_gross.Text = Request["mc_gross"].ToString();
lblprotection_eligibility.Text = "Dummy";
lbladdress_status.Text = Request["address_status"].ToString();
lblpayer_id.Text = Request["payer_id"].ToString();
lbltax.Text = Request["tax"].ToString();
lbladdress_street.Text = Request["address_street"].ToString();
lblpayment_date.Text = Request["payment_date"].ToString();
lblpayment_status.Text = Request["payment_status"].ToString();
lblcharset.Text = Request["charset"].ToString();
lbladdress_zip.Text = Request["address_zip"].ToString();
lblmc_fee.Text = Request["mc_fee"].ToString();
lbladdress_country_code.Text = Request["address_country_code"].ToString();
lbladdress_name.Text = Request["address_name"].ToString();
lblnotify_version.Text = Request["notify_version"].ToString();
lblpayer_status.Text = Request["payer_status"].ToString();
lblbusiness.Text = Request["business"].ToString();
lbladdress_country.Text = Request["address_country"].ToString();
lbladdress_city.Text = Request["address_city"].ToString();
lblpayer_email.Text = Request["payer_email"].ToString();
lbltxn_id.Text = Request["txn_id"].ToString();
lblpayment_type.Text = Request["payment_type"].ToString();
lbladdress_state.Text = Request["address_state"].ToString();
lblreceiver_email.Text = Request["receiver_email"].ToString();
lblpayment_fee.Text = "0";
lblreceiver_id.Text = Request["receiver_id"].ToString();
lbltxn_type.Text = Request["txn_type"].ToString();
lblitem_name.Text = Request["item_name"].ToString();
lblmc_currency.Text = Request["mc_currency"].ToString();
lblitem_number.Text = Request["item_number"].ToString();
lblresidence_country.Text = Request["residence_country"].ToString();
lbltest_ipn.Text = Request["test_ipn"].ToString();
log.Close();
}
else if (strResponse == "INVALID")
{
}
else
{
}
}
ravi sharma11
24-Aug-12 0:55am
View
One more thing is that I can not access my web service from live, I think this.
ravi sharma11
24-Aug-12 0:42am
View
The actual problem is that my client is saying that anyone makes payment from Paypal.com. It should send IPN data from paypal. I have enabled my page paypal so whenever anyone makes payment, It redirects to my page, where I am getting the value and post all the data in web service using ajax, But I can not access my web service.
In a web service I have set my connection string and database connection..
I think I can not access database or web service.
From local everything working properly.
ravi sharma11
24-Aug-12 0:22am
View
We have to set it from database or IIS?????????
ravi sharma11
23-Aug-12 5:43am
View
Actually when I am running programme from local database, It is working but from remote, It is not working. Is it codding problem ????????
ravi sharma11
22-Aug-12 2:46am
View
I am not familier with web service. Please give me the brief detail how to do this.... And what setps to follow one by one
Show More