15,886,799 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 Dinesh Mani (Top 27 by date)
Dinesh Mani
19-Apr-12 1:34am
View
Why do you want to bind the download address to a file upload control???
Dinesh Mani
28-Mar-12 3:01am
View
I assume your "View More" button is not related to the page nos. Just have the gridview properties reset to what ever page size that you need and rebind the data.
The ambiguity that I foresee here is that when the user is on page 4 with 10 records in 1 page, what should the grid display now? records 31 to 50 or 61 to 80??
Dinesh Mani
20-Mar-12 3:30am
View
Why do you want to write data into your app config???
Dinesh Mani
20-Mar-12 2:45am
View
Code for both the controls would give better insights into the problem!
Dinesh Mani
20-Mar-12 2:32am
View
Please provide more context... preceeding and succeding lines of code would help.
Dinesh Mani
20-Mar-12 2:31am
View
Please share the code that is throwing this error!
Dinesh Mani
6-Mar-12 23:19pm
View
Apologies if I sound naive, but I've not worked on ASP.Net for some time so not sure if there have been changes to the way newer versions wire-up events.
Anyway, my question is where is the wire-up for the cancel button to this event handler? As per your code you are creating the button at runtime, so you need to assign the event handler at runtime. Try assigning an event handler for this button.
Dinesh Mani
2-Mar-12 5:20am
View
If you use javascript the screenshot would only be available on the client machine and not on the server. I believe CopyFromScreen is the way to go.
Post your code so that we can see what is throwing the invalid handle error...
Dinesh Mani
2-Mar-12 1:39am
View
Where do you want to place the screen shot? on the client machine?
Dinesh Mani
2-Mar-12 0:45am
View
I assume you are getting the error when you access the e.RowIndex property? Are you able to pinpoint when this error occurs? May be it only occurs when clicking on the row header?
If you are not able to pin point / reproduce the error I would suggest you mask it by having a try...catch block around the code and doing nothing on the index out of range exception.
BTW, When you have buttons on the gridview to initiate this, why not use command click event rather than the cell click event?
Dinesh Mani
2-Mar-12 0:26am
View
I assume you just need to check the 8L+ records only once and you probably need to do the same thing for all records that are inserted newly when they are created?
Create a SSIS package to do the bulk operation and have a trigger and a stored procedure to do the subsequent checks.
Dinesh Mani
2-Mar-12 0:20am
View
why do you want to duplicate data between two tables? Is this duplication at the database level or only in the application level? if you just wish to duplicate the data try the clone method on the datatable object.
And your source datatable is empty either because you have not filled it yet or the orignial data source to your datatable is empty.
Dinesh Mani
13-Feb-12 5:35am
View
Please be more clear. Do you wish to crop the image or reduce the DPI? Do you want to do this when uploading the image or displaying it?
Dinesh Mani
13-Feb-12 5:19am
View
Do you mean when the server event is complete?
Dinesh Mani
2-Jan-12 23:34pm
View
Why do you want to write something onto your server file system from a web application?? This is very dangerous and can lead to breakins on your server...
BTW, you do know that this piece of code would write to the server, right???
Dinesh Mani
29-Dec-11 0:09am
View
First off, what is the limitation to using a data adapter???
Next, Why do you assign a value form a query to a variable, when APF_PL_ID can have more than one APF_FRIENT_ID associated with it???
Dinesh Mani
28-Dec-11 23:58pm
View
I don't get it... One product can have only one unit cost right?? Then why do you wish to execute multiple queries for the same product id???
Dinesh Mani
28-Dec-11 23:52pm
View
Why not have a datapoint with "0" as the data???
Dinesh Mani
8-Dec-11 2:45am
View
Why do you need a custom control?? Why can't you have a normal page do this?? What pop-up are you referring to normal or ajax pop-up?
Dinesh Mani
2-Dec-11 8:23am
View
Why do you have so many tables in a single Template column? If you just wish to bind a checkbox and couple of images, use the bound columns to achive your requirement.
Dinesh Mani
2-Dec-11 8:13am
View
Can you elaborate your query and can you post your entire method, masking the "sensitive" text??
Dinesh Mani
2-Dec-11 6:17am
View
Why do you need to display your Emp id in a gridview? What else is to be displayed along with the Emp id? Why would you want to allow the user to edit employee id???
Dinesh Mani
29-Nov-11 0:09am
View
"document.getelementbyid" is how you access any control from javascript. When I said have a hidden text box to hold the value from javascript, this is exactly what I meant, i.e. you would access the hidden control say hdnText1 using "document.getelementbyid('hdnText1').value = varValue" and access the hdnText1 from the action code on the server side.
Dinesh Mani
25-Nov-11 8:02am
View
Apart from the solution below the code that you have posted contains a lot of unwnated lines of code and bad coding practices, I've pointed a few below -
1. When using data adapter, don't open the connection. Just provide the connection object. data adapter would take care of opening/closing the connection.
2. Check the status of the connection before attempting to close it.
3. Don't close the connection inside the try block. Do it in Finally block.
Just wanted to help.
Dinesh Mani
25-Nov-11 5:51am
View
The question isn't clear. Can you give more details?
BTW, I don't seem to find you having 2 forms, all I can see is Form2 and its instance form1 in the given code snippet.
Dinesh Mani
25-Nov-11 1:37am
View
Is "bobj" an object that you are using to load data for your reports?? Check if the data stream is working as expected.
BTW, please provide more details and correct the title to make it more relavent.
Dinesh Mani
25-Nov-11 1:28am
View
What is the purpose of the dropdown list? Is it doing a postback or is it clearing the contents using client script?
Show More