15,894,410 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 kapil0411 (Top 17 by date)
kapil0411
25-Jun-15 4:33am
View
Thanks for you reply but i dont want to use any third party dll's.
kapil0411
5-Nov-14 4:26am
View
i tried with putting my java script in header content but its giving same error :(
kapil0411
5-Nov-14 2:22am
View
Below is my code.
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript" language="javascript">
function validateFileSize() {
var uploadControl = document.getElementById('<%= fileupld1.ClientID %>');
if (uploadControl.files[0].size > 1048576) {
alert('Maximum size allowed is 1 MB');
return false;
}
else {
return true;
}
}
</script>
<asp:FileUpload ID="fileupld1" runat="server" Onchange="return validateFileSize();" />
kapil0411
5-Nov-14 2:14am
View
Praneet i am getting error for
"uploadControl.files[0]" it is coming as null.
kapil0411
5-Nov-14 2:04am
View
Hi Praneet,
Thanks for your response.
but i am getting java script error in line :-
if (uploadControl.files[0].size > 1048576*5)
kindly help me on this
kapil0411
20-Aug-14 5:58am
View
Thanks for your reply.
yes i have checked that excel file is closed before uploading and also office is installed on server machine.but yet facing the issue....
kapil0411
20-Nov-13 6:52am
View
Deleted
Please put your code
kapil0411
9-Aug-12 5:00am
View
Thanks for your response.
I want image compression in wpf application.
kapil0411
7-Dec-11 6:00am
View
Thanks saichandra but i have very large data so i cant use this method.
the only way is break the data in multiple lines.
kapil0411
2-May-11 7:15am
View
Hi,
Thanks for your response. bt in this solution if i am lookion value in debuging mode it display in double slash....
kapil0411
30-Nov-10 2:14am
View
Hi, Sandeep
Thanks for your response.but my requirement is more like how can i convert my gridview data also can you pls help me out on this.
kapil0411
26-Nov-10 7:17am
View
Hi,
Thanks for your quick response but i want my whole content of the page are converted.
kapil0411
17-Nov-10 0:13am
View
ya i check the extension of the file it isi9n correct format.
if i used "Extended Properties='HTML IMPORT;IMEX=1'";
then it work fine but when i am going to upload this file and export to data table
so space in column value get reduced.
i.g .:- if i have value like :- kapil r then it export in datattable as kapilr but actual data should be export (kapil r).
Thanks for giving you valuable time....
kapil0411
9-Aug-10 6:36am
View
Reason for my vote of 3
good answer
kapil0411
3-Aug-10 8:36am
View
Hi,
Thanks for your quick response.
i am using window service because as the user upload any excel file in server.this excel file should be uploaded on database.
kapil0411
2-Aug-10 1:19am
View
Hi,Sandeep
Thanks for your quick response.
Actually when user types color class property in the user control tag in aspx page, we should get intellisense of nested property (Child property) i.e we will get nested property like color red,blue,green and we can select value true or false accordingly.
Similarly to style tag work.i.e style="color:Red;Width:100%;". .
i have done like this in my user control but i am not able to select multiple color and set value.
bool red,blue,green;
public RainbowClass()
{
red=false;
blue=false;
green=false;
}
public bool Blue
{
get { return blue; }
set { blue=value; }
}
public bool Green
{
get { return green; }
set { green=value; }
}
awating for your response.
kapil0411
31-Jul-10 2:09am
View
Hi,Kabeer
Thanks for your quick response.
Actually when user types rainbow class property in the user control tag in aspx page, we should get intellisense of nested property (Child property) i.e we will get nested property like color red,blue,green and we can select value true or false accordingly.
Similarly to style tag work.i.e style="color:Red;Width:100%;".
Awaiting for your reply.
Show More