16,010,392 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 madhav_jain (Top 33 by date)
madhav_jain
30-May-17 2:41am
View
you can not set the width because it is read only property... If you wanna update the with u need to implement _Application interface to update the width
madhav_jain
24-May-17 2:03am
View
I think you should add one more column in dtExcelData for config value.
madhav_jain
11-May-17 3:42am
View
requirement is not clear
madhav_jain
10-May-17 0:59am
View
I think that due to event OnRowEditing and OnRowUpdating both will be trigger.
madhav_jain
16-Mar-17 5:28am
View
Just tried by yourself everything is in your requirement... after code if u found any issue we will help u to solved that ..
madhav_jain
16-Mar-17 5:19am
View
Its not required...
madhav_jain
14-Mar-17 5:42am
View
give us the code what u have tried for serializing the class..
madhav_jain
28-Feb-17 2:25am
View
https://www.codeproject.com/Articles/259776/Extending-an-AJAX-Toolkit-Control-Disabling-past-d
madhav_jain
27-Feb-17 2:21am
View
Think yourself you can give better ans as well ... Think if you know multiple languages than what can you do?... as well as Dot not is concern think in business prospective, availability,accessibility. world wide usages.
madhav_jain
24-Feb-17 6:21am
View
Use "SelectedValue" property to get value.
madhav_jain
23-Feb-17 8:06am
View
Use below code in Java script
function callme() {
document.getElementById("lblerrorMessage").innerHTML="";
}
And Change Asp:lable to
And .Cs use InnerText Property
lblerrorMessage.InnerText = "Valid Document";
madhav_jain
23-Feb-17 6:52am
View
Use
u can show alert massage like
function callme() {
alert(document.getElementById("lblerrorMessage").value);
}
madhav_jain
23-Feb-17 6:48am
View
Deleted
try This aspx.cs
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button Text="Click" runat="server" ID="btnClick"
onclick="btnClick_Click" />
under Header
function callme() {
alert(document.getElementById("lblerrorMessage").value);
}
and in .cs on button click after
if (Ismatch == true)
{
lblerrorMessage.Value = "Valid Document";
ClientScript.RegisterStartupScript(GetType(), "Javascript", "javascript:callme();", true);
}
else
{
lblerrorMessage.Value = "not Valid Document";
ClientScript.RegisterStartupScript(GetType(), "Javascript", "javascript:callme(); ", true);
return;
}
madhav_jain
23-Feb-17 6:44am
View
debug the code and check passing value signature/Datatype matches with DB parameter Datatypes..
madhav_jain
23-Feb-17 6:32am
View
give me some more information what u have tried..
madhav_jain
15-Feb-17 3:58am
View
max time to finish the processing is 3 min.. their are no impact if its finished in 1 min..
madhav_jain
14-Feb-17 7:22am
View
what u have tried and describe more about it.
madhav_jain
9-Feb-17 4:16am
View
what is your question ?
madhav_jain
21-Jul-16 1:45am
View
Deleted
you compare your disk space of both Desktop and laptop
madhav_jain
18-Jul-16 3:01am
View
I dont think there is any error in code ... do one thing change the name of Oncheckedchanged event and write new event handler in cs.
madhav_jain
2-May-16 3:24am
View
check your connection string in Web.config file it should be in below format
<add name="ConnectionStringName" providername="System.Data.SqlClient" connectionstring="Data Source=ServerName;Initial Catalog=DatabaseName;Integrated Security=False;User Id=userid;Password=password; ></add></div> <div id=" editdialogplaceholder"="">
madhav_jain
29-Apr-16 3:15am
View
You can make use of Jquery in the same file added
<script src="Scripts/jquery-latest.js" type="text/javascript"></script>
<script src="Scripts/jquery.tablesorter.js" type="text/javascript"></script>
and
$(document).ready(function () {
$("#grdEmployeeExpenses").tablesorter({
});
});
the header will enable the sorting.
madhav_jain
29-Apr-16 2:07am
View
Frist add the ref of Microsoft.Office.Interop.Excel dll in your project. than in File
using Excel = Microsoft.Office.Interop.Excel;
And declare below variable globally
Excel.Application xlApp;
Excel.Workbook xlWorkBook;
Excel.Worksheet xlWorkSheet;
Excel.Range range;
madhav_jain
28-Apr-16 7:12am
View
here is the code in solution
madhav_jain
28-Apr-16 4:56am
View
existing javascript itself dont set width of table and Div. It is fixed your header issue.
madhav_jain
28-Apr-16 3:33am
View
I have analysis you script just comment below code and your problem will be fixed.
<script type = "text/javascript">
var GridId = "<%= grdEmployeeExpenses.ClientID %>";
var ScrollHeight = 600;
window.onload = function () {
var grid = document.getElementById(GridId);
var gridWidth = grid.offsetWidth;
var gridHeight = grid.offsetHeight;
var headerCellWidths = new Array();
for (var i = 0; i < grid.getElementsByTagName("TH").length; i++) {
headerCellWidths[i] = grid.getElementsByTagName("TH")[i].offsetWidth;
}
grid.parentNode.appendChild(document.createElement("div"));
var parentDiv = grid.parentNode;
var table = document.createElement("table");
for (i = 0; i < grid.attributes.length; i++) {
if (grid.attributes[i].specified && grid.attributes[i].name != "id") {
table.setAttribute(grid.attributes[i].name, grid.attributes[i].value);
}
}
table.style.cssText = grid.style.cssText;
//table.style.width = gridWidth + "px";
table.appendChild(document.createElement("tbody"));
table.getElementsByTagName("tbody")[0].appendChild(grid.getElementsByTagName("TR")[0]);
var cells = table.getElementsByTagName("TH");
var gridRow = grid.getElementsByTagName("TR")[0];
for (var i = 0; i < cells.length; i++) {
var width;
if (headerCellWidths[i] > gridRow.getElementsByTagName("TD")[i].offsetWidth) {
width = headerCellWidths[i];
}
else {
width = gridRow.getElementsByTagName("TD")[i].offsetWidth;
}
cells[i].style.width = parseInt(width - 3) + "px";
gridRow.getElementsByTagName("TD")[i].style.width = parseInt(width - 3) + "px";
}
parentDiv.removeChild(grid);
var dummyHeader = document.createElement("div");
dummyHeader.appendChild(table);
parentDiv.appendChild(dummyHeader);
var scrollableDiv = document.createElement("div");
if(parseInt(gridHeight) > ScrollHeight){
gridWidth = parseInt(gridWidth) + 25;
}
scrollableDiv.style.cssText = "overflow:auto;height:" + ScrollHeight + "px;";
scrollableDiv.appendChild(grid);
parentDiv.appendChild(scrollableDiv);
}
</script>
madhav_jain
22-Apr-16 4:43am
View
try this Open SQL Server Management Studio go to Edit -> IntelliSense -> Refresh Local Cache
madhav_jain
22-Apr-16 3:28am
View
table name login is not present in connected DB. check in DB login table is present or not.
madhav_jain
25-Jul-13 14:57pm
View
explain ur ques in detail..
madhav_jain
30-Apr-13 5:25am
View
I think you have some set of textboxes and in one text box if you give time 8:30 than in next text box user should allow only take 8:30 and after 08:30 values right
madhav_jain
13-Mar-13 14:10pm
View
check your web.config which version of VS you r using Example compilation targetframework="4.0" debug="true">
madhav_jain
13-Mar-13 14:03pm
View
can you send code?
madhav_jain
13-Mar-13 13:55pm
View
What is the data type of item_rate in the table in data base? if datatype is Int and you try to insert string into table. an you got this error. check your DB table and insert proper data into it.
Show More