16,004,833 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
Azee
(Top 123 by date)
Azee
14-Oct-13 3:23am
View
Use code converter to Convert the code to C#.
Azee
13-Oct-13 10:56am
View
If it helped, you can mark this as solution as well. :)
Azee
12-Oct-13 7:52am
View
Hey there, can you post the structure of your listview?
Azee
12-Oct-13 6:06am
View
Hey, download the latest JQuery.js and replace <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> with that one. It'll work.
let me know.
Azee
12-Oct-13 5:22am
View
Can you post the your updated code (jquery and aspx), so I can reproduce it here and see whats wrong.
Azee
12-Oct-13 4:59am
View
Great, cheers.
Azee
12-Oct-13 4:47am
View
You can use CommandArgument or CommandName's value to identify which TextBox was changed. I have shown you how to get those values. What is the problem now?
and What is the parent control of these TextBoxes?
Azee
12-Oct-13 1:15am
View
Can you post the content of your GridView as well?
Azee
12-Oct-13 1:00am
View
What is the error that system shows?
Azee
11-Oct-13 15:18pm
View
Please post the relevant code.
Azee
11-Oct-13 7:39am
View
Post the relevant code where you are experiencing the problem.
Azee
11-Oct-13 6:38am
View
How are you selecting the ListView rows? CheckBoxes?
Azee
10-Oct-13 13:20pm
View
good, mark as solved. :)
Azee
10-Oct-13 7:54am
View
:)
Azee
10-Oct-13 7:25am
View
mark as solution :)
Azee
10-Oct-13 7:07am
View
A little description of problem would be helpful.
Azee
10-Oct-13 4:38am
View
check the path for web service, is it ok? and where is the web service in your own project?
Azee
10-Oct-13 4:32am
View
What do you need it for?
Azee
9-Oct-13 9:21am
View
As you can see, what I did in first Select statement is not generic, its specifically for 4 items, if you do it for more items the conditions in the where clause will increase by many.
Azee
9-Oct-13 9:17am
View
Let me see what I can do.
Azee
9-Oct-13 8:48am
View
Sorry I missed the C# part, I have added a basic code for this operation, and converted the script to a stored procedure.
Azee
9-Oct-13 8:36am
View
Add Drop Table #TempTable at the start of the script .. remove it when you use it in a stored procedure
Azee
9-Oct-13 6:22am
View
which one is it? :)
Azee
9-Oct-13 6:18am
View
Does table_Items_Shelves already contains records? and you want to update against those records?
Or you want to insert new records from table_items?
Azee
8-Oct-13 13:48pm
View
what value does TextBoxSchool.Text return?
Azee
8-Oct-13 13:35pm
View
Hey there, one idea would be to combine Name and Item with another character in the middle and use it as one key, for example, "Store1$Beans" as key.
Azee
8-Oct-13 8:02am
View
Have you configured the GridView to show two columns?
Azee
8-Oct-13 7:58am
View
Is there a possibility that you are using the sqlParams more than 1 for multiple commands?
Azee
8-Oct-13 7:43am
View
Which line throws the Exception?
Azee
8-Oct-13 6:18am
View
Hey there, put a break point on LoadCommunicationGrid method and see which line throws the exception.
Azee
8-Oct-13 2:18am
View
Windows? Asp.net? mention the framework please
Azee
7-Oct-13 16:29pm
View
Didn't you try binding those Values against the Texts with the ComboBox and try SelectedValue to get the Values?
Azee
7-Oct-13 16:09pm
View
in this line, this Exception could occur if row.RowIndex does not lie within the indexes of the GridView Rows, and since its in a loop, this should not be a problem.
what is row.RowIndex when you debug?
Azee
7-Oct-13 15:15pm
View
That is the problem. docid '0', I am sure there is no docid in DocumentInfo table with value 0. Why are you getting values from Session for docc.approve? when did you store them there?
Azee
7-Oct-13 15:11pm
View
By the way, your code doesn't make much sense, you are trying to call the same SP twice with different values using docc.approve and rest of the code.
Azee
7-Oct-13 15:08pm
View
Take a closer look, that is the only reason this Exception could occur, where exactly the Exception is occuring, here:
docc.approve(Convert.ToInt32(Session["UserID"]), Convert.ToInt32(Session["DocID"]), Convert.ToInt32(Session["ApproveID"]), Convert.ToString(Session["Login2"]));
or here:
cmd.ExecuteNonQuery(); ?
Azee
7-Oct-13 14:58pm
View
Debug and check the value of DocID that you are trying to insert in Approval table, it should be present in Primary key values of DocumentInfo table.
Azee
7-Oct-13 14:15pm
View
Is there any specific part of Submit operation that is causing an issue? be more specific please.
Azee
7-Oct-13 6:42am
View
Deleted
Complete please..
Azee
7-Oct-13 5:52am
View
Just the formatting, nothing to worry :)
Azee
7-Oct-13 4:21am
View
Hey there, I don't see sNO, Name or Contact being saved in the ViewState, there is BatchNo, Quantity and SelectedQuantity.
Azee
7-Oct-13 4:16am
View
Can you post your Store Procedure as well?
Azee
7-Oct-13 4:14am
View
SQL SERVER, MYSQL? what are you using and please specific the functions that you tried.
Azee
7-Oct-13 3:41am
View
I am a little confused, do you want you TextBoxes to have values with Decimal or without?
Azee
7-Oct-13 3:23am
View
Could you all post aspx side of the code (TextBoxes) in your question?
Azee
7-Oct-13 2:46am
View
Please post the code that you have tried to insert data in database.
Azee
7-Oct-13 2:27am
View
So you mean, that there are multiple entries in table of a specific food name?
Azee
7-Oct-13 2:24am
View
IE supports a Microsoft-only property alpha filter. Alpha filters in IE accept values from 0 (completely transparent) to 100 (completely opaque). So, to get your transparency in IE, you should multiply your opacity by 100 and add an alpha filter to your styles
Azee
7-Oct-13 2:10am
View
So you want your SP to return just the full name concatenated? You don't need an SP for that, just create a function and return concatenated full name.
Azee
7-Oct-13 2:02am
View
I mean, post the Buttons of aspx page and the JavaScript function implementation.
Azee
7-Oct-13 1:35am
View
Can you please add Button's code and JavaScript function as well in your Question?
Azee
6-Oct-13 13:08pm
View
This code:
if (Session["UserID"] != null)
{
//Store the value into a variable
int userId = Convert.ToInt32(Session["UserID"]); //you could also use Convert.ToInt32(Session["UserID"]);
}
gets UserID from Session.
You need to save UserID to session before you can get from it.
Azee
6-Oct-13 13:06pm
View
Where? I don't see it
The UserID is supposed to be the ID of the user who logged in, so according to my understanding, you should get UserID when you verify User Name and Password, and according to your code, this line should return the UserID of the verified User:
int users = aa.SignIn(txt_username.Value, txt_pass.Value);, isn't it?
Azee
6-Oct-13 13:00pm
View
In all your code, there isn't one line that SAVES UserID in Session, Do have any code where you are doing this:
Session["UserID"] = SomeValue?
Azee
6-Oct-13 12:34pm
View
Please add code of upload operation in your question.
Azee
6-Oct-13 12:02pm
View
If you can get the userid from Session on Upload.aspx, then what is the problem now?
Azee
6-Oct-13 11:56am
View
Hey there, user is just being logged in in your Btn_login_Click, then how are you getting an ID from the Session: user_id = Convert.ToInt32(Session["UserID"].ToString());?
Azee
6-Oct-13 6:29am
View
You have already passed @transno alone in the second scipt, and have tried passing @tranname in the first one, what exactly do you want to do with these paramters. what will you compare @transname with? any table column's value?
Azee
6-Oct-13 6:21am
View
Hey there, have you checked your Table data, may be there are duplicate records, e.g, for Firstname and Surname,
check and let me know, if there are, I'll let you know how to avoid the duplicates
Azee
6-Oct-13 6:06am
View
Any progress that you have made so far?
Azee
6-Oct-13 3:44am
View
hey there, what is the DataType of column txtDate, Date or DateTime?
Azee
5-Oct-13 14:08pm
View
I mean what is the exact datetime string that dgr.Cells[2].Value returning?
Azee
5-Oct-13 13:26pm
View
What value does this part return,
dgr.Cells[2].Value?
Azee
5-Oct-13 13:21pm
View
Hey there, Do you mean, you are redirecting to another page, multiple times an each time adding a row, but losing the previous ones?
Azee
4-Oct-13 4:44am
View
Please verify your link.
Azee
4-Oct-13 2:38am
View
So you want to calculate child nodes of the parent?
Azee
4-Oct-13 1:12am
View
What have you done so far? post your effort we'll take a look.
Azee
4-Oct-13 1:08am
View
So according to the table, 1 has 2 and 3 attached to its left and right. not 4
Azee
3-Oct-13 15:18pm
View
Hey, dont remove the while loop, just move the email code:
int quantity = var;
if (quantity < 5)
{
MailMessage mailObj = new MailMessage(
"from", "to", "product low quantity",pro);
SmtpClient SMTPServer = new SmtpClient("localhost");
try
{
SMTPServer.UseDefaultCredentials = false;
SMTPServer.Host = "smtp.gmail.com";
SMTPServer.Port = 587;
SMTPServer.Credentials = new NetworkCredential("email", "password");
SMTPServer.EnableSsl = true;
SMTPServer.Send(mailObj);
}
catch (Exception ex)
{
// Label1.Text = ex.ToString();
}
}
Inside the loop.
and keep these two lines outside the loop.
read.Close();
con.Close();
Azee
3-Oct-13 14:43pm
View
Give an example of the output you are expecting after combining page23.aspx?cat=shoes with navigateURL and please specify what does "area" field return?
Azee
3-Oct-13 14:39pm
View
Not clear man, you have got the query, what is the problem?
Azee
3-Oct-13 13:35pm
View
how is 4 related to 1 in your first example?
Sorry it seems a little confusing.
Azee
3-Oct-13 13:29pm
View
Great, cheers :)
Azee
3-Oct-13 12:42pm
View
Could you please post your code as well?
Azee
3-Oct-13 12:04pm
View
Could you please specify the actual content of the logo field?
Azee
3-Oct-13 8:31am
View
do you want to check quantity for each row of listview?
Azee
3-Oct-13 7:28am
View
where did you write the above code? and lblHrs is not in your footer template.
Azee
3-Oct-13 7:24am
View
Can you post the code and css?
Azee
3-Oct-13 7:13am
View
Try to set the min-height of the container in which the this perticular Content is placed inside master page.
Azee
3-Oct-13 7:10am
View
Please debug your code and find the line where this exception is occurring.
Azee
3-Oct-13 6:58am
View
Use it when you need the UserID to insert in the documents table. Get the UserID as stated above and pass it to the procedure that is inserting document records.
Note: I used long, because I supposed UserID DataType is Bigint, if its Int then you can use Int here as well.
Azee
3-Oct-13 6:29am
View
You should be able to see the problem. Anyway, do you have access to the server where the application is deployed? If you browse on the server locally, then instead of this page you should be able to see the real error.
Azee
3-Oct-13 6:14am
View
Hey there,
The server display this error when there is some kind of problem (either an exception on the page or configuration issue)
and when you set customerrors mode="Off" and browse instead of above content it displays the actual problem that is causing the application to not work.
You should be able to see the actual problem now.
What does the page display when you set customError mode="Off"?
Azee
3-Oct-13 5:49am
View
Can you please post the code as well?
Azee
3-Oct-13 5:32am
View
Can please you post your code as well?
Azee
3-Oct-13 4:07am
View
Deleted
Could the DownVoter dare to explain the reason for down voting?
Azee
3-Oct-13 3:49am
View
Post your code please.
Azee
3-Oct-13 2:30am
View
Great, cheers :)
Azee
3-Oct-13 2:07am
View
there are two question in my above comment, please answer the first one.
Azee
3-Oct-13 2:02am
View
You have droplistcolumn and you are bind the values in your code,
does the selection of the DropDownList's values is based on data from dtCurrentTable?
that you are binding to the ListView? and which DropDown is it ddldatatype or ddlexamples
Azee
3-Oct-13 1:56am
View
what error does this line return,
objBusinessUI.StockDate =Convert.ToDateTime(((TextBox)(GridView1.Rows[e.RowIndex].Cells[3].Controls[0])).Text.Trim());
You said runtime error?
Azee
3-Oct-13 1:50am
View
You are binding the ListView in your AddRow method,
listview1.DataSource = dtCurrentTable;
listview1.DataBind();
It will reset all data inside the ListView, hence reseting the DropDownLists.
Do you want to keep the state of that dropdownlist?
Azee
3-Oct-13 1:41am
View
Is the DropDownList that is clearing, inside the ListView?
Azee
3-Oct-13 1:20am
View
Could you post your code where you delete the row?
Azee
3-Oct-13 1:19am
View
When you debug, what value does this line return
((TextBox)(GridView1.Rows[e.RowIndex].Cells[3].Controls[0])).Text ?
Azee
3-Oct-13 1:18am
View
Do you have to add the UserControl dynamically? In this case code inside If(!Ispostback) will never get executed since your above code is executed afterwards.
Azee
2-Oct-13 9:17am
View
Please clear, do you want to get the days where the value is 'absent' or select only that column where value is 'absent'?
Azee
2-Oct-13 8:48am
View
hey, on mouse click your image button will get a postback, so any javascript will not affect. do you want to keep button_yellow.jpg image after the postback or when user just presses the click button??
Azee
1-Oct-13 13:15pm
View
Could you explain the term Sub Categories? and how would you wanna use them?
Azee
1-Oct-13 7:43am
View
Can you please post your blur event code and TextBox?
Azee
1-Oct-13 7:20am
View
Whoever down voted the solution, would you care providing a reason for that?
Azee
1-Oct-13 6:43am
View
Its good to want things :), what have you tried so far, Rahul?
Azee
1-Oct-13 4:21am
View
Hey Faizan, what is the datatype of hadith_eng_book Column in your table?
Azee
1-Oct-13 2:21am
View
Sorry, I couldn't understand your question. Check the example below.
Azee
1-Oct-13 2:09am
View
Hey, I am asking why do you need to do that when you can do sorting in the query? Give me a good reason then I'll suggest a solution.
Azee
1-Oct-13 1:57am
View
So you are saying you want to change the order by which the rows are saved in the database table? and why does that even matter when you can order them anyway you want in your queries?
Azee
1-Oct-13 1:39am
View
By "
order those row by my needs
" do you mean in a Select statement?
Azee
30-Sep-13 3:37am
View
What are you referring to? Use what? Can you access the resource file by name?
Azee
29-Sep-13 15:13pm
View
You mean a property that you could access from aspx page where you might use the Control?
Azee
29-Sep-13 9:26am
View
What is the data structure that contains those numbers?
Azee
29-Sep-13 9:21am
View
Please post your stored procedure where you want to apply the above statements.
Azee
29-Sep-13 7:15am
View
You wrote you are getting any error in Select, what is that specific error.
Post you MyCar table structure.
Azee
29-Sep-13 7:08am
View
What error are you getting?
Azee
29-Sep-13 7:05am
View
here I think this'll do:
Declare @CustomerId int = 1;
Select distinct PM.ProdModelId, PM.ProdMasId, PM.ProdModName, @CustomerId as CustomerId ,
Case when SD.SalesId IS NULL THEN 'false' ELSE 'true' END AS Purchased
from ProductModel PM
Left Join SalesDetails SD on PM.ProdModelId = SD.ProdModelId
Left Join SalesMaster SM on SD.SalesID = SM.SalesID and SM.CustomerID = @CustomerId
Azee
29-Sep-13 3:53am
View
What have you tried? a little demonstration might get you a help quick.
Azee
28-Sep-13 16:54pm
View
Ok, from your code in the second page, I get that you are trying to insert a record in the database using that QueryString and the TextBox value in the Button event. First thing I don't understand is why you are using Page.FindControl to get the TextBox, if its on your page you should be able to use it with just its ID.
Anyway you should move the code to get querystring from Page_Load to your Button's click event because that's where it'll be used.
That's it, I don't see anything else wrong with code. If you find one, try debugging.
Azee
28-Sep-13 12:11pm
View
Are you sure this is the output that you expect based on the data in the tables? I strongly suggest you to recheck.
What I understood is that you want details of ProductModels, whether they have been purchased by a Customer or not and if yes then the ID of the Customer.
So, in your case 'nokia 6300' have been purchased by two customers so there should be two records for this model in your output and since 'Samsung Note' haven't been purchased by anyone there isn't supposed to be a CustomerId against this record in your Output. Please verify.
Azee
28-Sep-13 11:20am
View
I replicated your scenario and the JavaScript function does get called. There could be something wrong in your function. Debug your JavaScript function. Try alerts from line to line. If its not your function that post your complete code. I'll take a look.
Azee
28-Sep-13 11:18am
View
Could you please specify the possible output that you would expect from the stored procedure?
Azee
27-Sep-13 8:33am
View
if you need specific solution, please post your code that you tried.
Azee
26-Sep-13 13:38pm
View
Yes that would be better, please do.
Azee
26-Sep-13 7:52am
View
Could you leave the code and actual name of the Page in which you have the User Control. I produced the scenario and its working for me. In my scenario if MyPageName is name of your page and the User Control is placed inside this page then it should work.
Azee
26-Sep-13 4:22am
View
Is your TextBox inside another Server control e.g. Repeater etc?
Show More