15,915,336 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 Member 12324523 (Top 85 by date)
Member 12324523
17-Aug-19 5:17am
View
it is not asp .net its mvc
Member 12324523
1-Feb-18 5:51am
View
Deleted
i need to call in this way
protected void grd2_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grd2.PageIndex = e.NewPageIndex;
string Eve1 = ViewState["SecondStatus"].ToString();
if (!string.IsNullOrEmpty(Eve1))
{
if (Eve1 == "CompletedBatches")
{
lnkCompleted1_Command(sender, e);
}
else if (Eve1 == "Runningbatches")
{
lnkRunningbatches_Command(sender, e);
}
else if (Eve1 == "NewBatches")
{
lnkNewBatches_Command(sender, e);
}
}
grd2.DataBind();
}
Member 12324523
1-Feb-18 5:20am
View
Deleted
could you please share some sample code
Member 12324523
31-Jan-18 7:32am
View
Every thing is done only thing which was left is suppose if ui have 15 pages in gridview and when i am in 10th page of gridview if i click a row in gridview of that 10th page i will be redirected to another page where i have a back button in that page and again if i click that back button i need to come to previous page which is working but i am going to first page in paging of gridview instead i need to go to 10th page on clicking back button
Member 12324523
31-Jan-18 6:07am
View
my question is different and the anwser you shared is different
Member 12324523
25-Oct-17 6:39am
View
Can anyone help me out how to resolve this
Member 12324523
25-Oct-17 5:34am
View
yes i am using update panel
Member 12324523
29-Sep-17 4:11am
View
but by default it should show my parent form and if i click upload it should show upload form and if i click reports it should show reports form but by default after running it is showing upload form
Member 12324523
21-Sep-17 8:17am
View
yes i need advice how to do this
Member 12324523
21-Sep-17 4:23am
View
but still its not working i is zero only can you please show where did i made mistake inn my code
Member 12324523
20-Sep-17 7:14am
View
i did not get you i had tried in this way is it correct if (CKEditor1.Text.Length > 0)
{
lblerrmsg.Text = "do you want to save partially";
}
else
{
lblerrmsg.Text = "You cannot save empty text";
} but this code is validating properly if i get empty ck editor but in some cases i may already get ck editor with some text then at that time even i am not entering any text it is going into if condition
Member 12324523
20-Sep-17 7:04am
View
they are using .js or custom valdator i need to validate in c# code
Member 12324523
18-Sep-17 8:29am
View
ok how can i implement your idea
Member 12324523
18-Sep-17 8:22am
View
i already have a button with save using this save button i am saving data in database but i need to save the text temporarily in the tiny mc editor only when user closes the tab again after getting logged in he should be able to see the previously entered text
Member 12324523
18-Sep-17 8:06am
View
i need to do it in c# code on clicking the button again if user opens the same page he should be able to continue from the point he stopped
Member 12324523
12-Sep-17 8:40am
View
its not working first time i inserted 300.mp3,301.mp3 while inserting into database second time again i took 300.mp3,301.mp3,302.mp3
as 300 and 301 are alreadythere in database it should skip inserting 300 and 301 abut as 302 is not there it should insert 303 how can i do this
Member 12324523
12-Sep-17 5:53am
View
can you please help me out with this issue as i was strugggling from morning
Member 12324523
12-Sep-17 5:51am
View
could you please show it by editing my post and modifying my code whereever required i tried that also but its not working
Member 12324523
10-Sep-17 12:10pm
View
what i said is that only i tried the above code but it is giving me the error near that line my question is not to post the entire solution but solution which solves my problem
Member 12324523
8-Sep-17 8:44am
View
ok sorry i will do it
Member 12324523
13-Aug-17 13:51pm
View
then how can i hide that second list item view reports i need to hide that if role is user and i need to display that if role is supervisor
Member 12324523
13-Aug-17 13:37pm
View
View Reports
Report1
Reports2
Report3
this is what i want to hide in this we have view reports know that i need to hide
Member 12324523
13-Aug-17 12:49pm
View
i had tried by placing this piece of code in my servlet
if(role.equals("Supervisor"))
{
reports.visible=false;
}
but its not working
Member 12324523
13-Aug-17 12:46pm
View
i had tried by placing this piece of code in my servlet
if(role.equals("Supervisor"))
{
reports.visible=false;
}
but its not working
Member 12324523
13-Aug-17 9:45am
View
i tried but its not working can you show me how to do that as i am new to this i need to hide in servlet and bring the id from master page
Member 12324523
13-Aug-17 2:26am
View
i wan to hide view reports if i hide view reports the sub list items under view reports also gets hided
View Reports
Report1
Reports2
Report3
this is what i want to hide view reports
Member 12324523
6-Aug-17 13:22pm
View
myStoredProcedureCall =
sybConn.prepareCall("{call my_stored_procedure (?, ?, ?, ?, ?, ? , ?, ?, ?)}");
myStoredProcedureCall.setString(1, "ONE");
myStoredProcedureCall.setString(2, "TWO");
myStoredProcedureCall.setString(9, "NINE");
ResultSet paramResults = myStoredProcedureCall.executeQuery();
Member 12324523
5-Aug-17 11:28am
View
i tried but its not working
Member 12324523
27-Jul-17 9:08am
View
can you please show me how to do that as i am new to it
Member 12324523
25-Jul-17 13:48pm
View
Deleted
could you please post the complete code i had tried that even by declaring a variable but i am getting errors on keeping the same code in jsp page so could you please post the complete code as i am new to this
<%
while(rs.next()){
%>
<%
int count=0;
if(count==1)
{
%>
IdNameFirstNameLastNamePasswordStatus
<%
}
%>
<%=rs.getString(2)%>
<%=rs.getString(3)%>
<%=rs.getString(4)%>
<%=rs.getDate(5)%>
<%=rs.getString(6)%>
<%
}
%>
<%
}
catch(Exception e){
e.printStackTrace();
}
%>
i had done in this way to print the headers only once but it is not at all showing headers
Member 12324523
25-Jul-17 8:10am
View
Deleted
could you please post the complete code i am getting error near datafound can you please help me out as i am new to this
Member 12324523
16-Jul-17 3:48am
View
can you please show me how to do that as iam new to this
Member 12324523
16-Jul-17 3:09am
View
Hello richard thanks for your reply but if cell are empty in that column i should print the error message along with cell numbers suppose if the column name is names and t=in that names column i have 250 names out of which cell 100,102,110 are empty i need to display a message that in names column these cells are empty please fill and if there are no empty cells i should insert the data in database can you help me out as i am new to this
Member 12324523
21-Jun-17 7:33am
View
i am binding the grids in a treeview structure and each method for binding each grid
Member 12324523
21-Jun-17 6:47am
View
i am binding the grids in a treeview structure and each method for binding each grid
Member 12324523
8-Jun-17 8:42am
View
my problem is the list boxes are getting loaded from right hand side and the they comes to center after some time
Member 12324523
26-May-17 7:57am
View
i am getting error near GridView2.EditIndex = e.NewEditIndex;
Member 12324523
22-May-17 7:57am
View
yes with treeview structure for each grid that is i am getting 6 tables in my dataset know i need to bind six tables to gridview in such a way that why i click + it should expand and when i click - it should collapse
Member 12324523
2-May-17 2:13am
View
i had update my original post could you please look my original post
Member 12324523
2-May-17 2:11am
View
i have a button on clicking that button i will display textbox with drop downs in a pop up i need to bind 1 to 100 to first dropdown on loading the modal pop and 1 to 50 to second dropdown i had posted my code by editing the post because if i am posting in reply my script is not getting displayed in the post
Member 12324523
2-May-17 1:59am
View
i had done in this way by placing yor code but its not working
function GetDynamicTextBox(value) {
if (value == "") {
return ' ' +
' '
}
}
debugger;
function GetDynamicTextBox1(value, i) {
debugger;
return ' ' +
' '
}
$(document).ready(function () {
var selectHTML = "";
for (i = 1; i < 101; i++) {
selectHTML += "<option value='" + i + "'>" + i + "</option>";
}
$("#ddlID").empty();
$("#ddlID").append(selectHTML);
});
Member 12324523
2-May-17 1:49am
View
i had done the same but i am not getting 1 to 100 into my dropdown can you help me out as i am new to this
Member 12324523
2-May-17 1:43am
View
it can be added in code behind in thousands of ways but i am not getting the id of my drop down in code behind
Member 12324523
25-Apr-17 1:29am
View
i am not getting TotalHrs TotalMins
19 170 how you are binding i am not getting thay output
Member 12324523
17-Apr-17 4:30am
View
hi i had resolved all the issues the only issue that was left over is i am getting alerts after clicking ok it is taking me to a blank page and in that page i am seeing the from date and to date that i have given in this way 04/26/17
13:5804/02/17
13:58 but after clicking on the alert i need to stay in that page only how can i do this
Member 12324523
17-Apr-17 2:23am
View
i am able to resolve that but in today i ma getting Mon Apr 17 11:55:32 UTC+0530 2017 but i need to get "04/28/17" similar to from and to date how can i do this
Member 12324523
17-Apr-17 1:56am
View
near var parts in function toDateObject(dateStr) i am getting this [04,28,17 11:27]
an near var date in am getting this as NaN when debugging
and finally near return date it is returning as NaN
and after executing the function todateobject near
from = toDateObject(from); i am getting Thu Jan 1 05:30:00 UTC+0530 1970 and near
to = toDateObject(to); i am getting NaN
Member 12324523
16-Apr-17 13:39pm
View
could you please help me out now because tomorrow morning it should be handowered to my superiors by 8o'clock
Member 12324523
16-Apr-17 13:12pm
View
yes but i am in learning stage moreover i could not acheive this that is the reason i had asked you how to do this
Member 12324523
16-Apr-17 12:05pm
View
hi karthik could you please show it by editing your post with complete code as i am new to this
Member 12324523
15-Apr-17 23:38pm
View
also i should not allow date greater than todays date for both from date and to date along with start date should be lesser than end date more over i should not display as alerts i should display as error messages
Member 12324523
15-Apr-17 8:15am
View
but i should not allow date greater than todays date for both from date and to date along with start date to be lesser than today date and my date format is not dd/mm/yyyy it is mm/dd/yyyy
Member 12324523
23-Mar-17 14:14pm
View
that only how can i store the password as a a salted hash in sql server
Member 12324523
23-Mar-17 14:14pm
View
that only how can i store the password as a a salted hash
Member 12324523
23-Mar-17 13:59pm
View
how can i prevent displaying the acutal given passwordvand display the password with some unknown format
Member 12324523
23-Mar-17 13:59pm
View
how can i prevent displaying the acutal given passwordvand display the passwor with some unknown format
Member 12324523
6-Mar-17 1:35am
View
yes
Member 12324523
6-Mar-17 1:26am
View
that only i am unable to get it
Member 12324523
6-Mar-17 1:18am
View
web application
Member 12324523
21-Feb-17 1:30am
View
Deleted
more over there is no onchange event for textbox
Member 12324523
21-Feb-17 1:28am
View
Deleted
my problem is not clearing the textbox i need to clear the label message on again selecting the date using calendar image
Member 12324523
11-Feb-17 1:12am
View
actually in reading the spreadsheet i readspreadsheet.cs i have taken all as string but in database there are 4 columns that are created in decimals hence the for loop for (int iCol = 0; iCol < 7; iCol++)
{
drNew[i] = ((XText)oSheet.getCellByPosition(iCol, iRow)).getString();
i++;
} executes three time but 4 time it is going into catch block and throws the exception
Member 12324523
11-Feb-17 1:12am
View
actually in reading the spreadsheet i readspreadsheet.cs i have taken all as string but in database there are 4 columns that are created in decimals hence the for loop for (int iCol = 0; iCol < 7; iCol++)
{
drNew[i] = ((XText)oSheet.getCellByPosition(iCol, iRow)).getString();
i++;
} executes three time but 4 time it is going into catch block and throws the exception
Member 12324523
11-Feb-17 1:11am
View
actually in reading the spreadsheet i readspreadsheet.cs i have taken all as string but in database there are 4 columns that are created in decimals hence the for loop for (int iCol = 0; iCol < 7; iCol++)
{
drNew[i] = ((XText)oSheet.getCellByPosition(iCol, iRow)).getString();
i++;
} executes three time but 4 time it is going into catch block and throws the exception
Member 12324523
10-Feb-17 12:18pm
View
when i am taking all these columns dt.Columns.Add("Month", typeof(string));
dt.Columns.Add("ID", typeof(string));
dt.Columns.Add("Client Name", typeof(string));
dt.Columns.Add("Charges", typeof(string));
dt.Columns.Add("Payment", typeof(string));
dt.Columns.Add("Adjustment", typeof(string));
dt.Columns.Add("W/O", typeof(string)); as strings i am able to read the excel sheet data but i am getting error in the below code near objbulk.WriteToServer(dt);
SqlBulkCopy objbulk = new SqlBulkCopy(con);
objbulk.DestinationTableName = "TestMCount1";
//mapping the columns
objbulk.ColumnMappings.Add("Month", "Uploaded");
objbulk.ColumnMappings.Add("ID", "MID");
objbulk.ColumnMappings.Add("Client Name", "ClientName");
objbulk.ColumnMappings.Add("Charges", "Charge");
objbulk.ColumnMappings.Add("Payment", "Payment");
objbulk.ColumnMappings.Add("Adjustment", "Adjustment");
objbulk.ColumnMappings.Add("W/O", "WO");
con.Open();
objbulk.WriteToServer(dt);
con.Close();
Label1.Text = "Record Uploaded";
So what i had tried is to change the type from string to decimal while reading the spread sheet at that time i am unable to read the spread sheet data
Member 12324523
3-Feb-17 7:57am
View
I wrote but its not firing and not working
Member 12324523
3-Feb-17 7:20am
View
I am unable to do that only also this link is not accessible to me.Can anyone help me out as i am new to this
Member 12324523
24-Jan-17 11:18am
View
Deleted
can you please delete the comments just comments not the solution
Member 12324523
24-Jan-17 10:49am
View
Deleted
ok thankyou can you delete the comments please
Member 12324523
24-Jan-17 10:36am
View
Deleted
thank you for your response could you provide me any links that meets my requirement
Member 12324523
14-Jan-17 10:04am
View
$(function () {
// Setup - add a text input to each footer cell
$('#<%=GridView1.ClientID %> th').each(function () {
var title = $(this).text();
if (title == "A Name" || title == " Name" || title == "ttl") {
$(this).html(title + '<br/><input type="text" style="width:120px" placeholder="Search ' + title + '" />');
}
else {
if (title != " ") {
//$(this).html(title + '<br/><input type="text" style="background-color:#646464;border:none" disabled="disabled" />');
}
}
});
// DataTable
var table = $('#<%=GridView1.ClientID %>').DataTable({
"paging": true,
"ordering": false,
"info": false,
"pageLength": 10,
"bLengthChange": false
});
table.columns().every( function () {
var that = this;
$( 'input', this.header() ).on( 'keyup change', function () {
if ( that.search() !== this.value ) {
that
.search( this.value )
.draw();
}
} );
} );
} );
I had added mu jquery code and here in this part of code var table = $('#<%=GridView1.ClientID %>').DataTable({
"paging": true,
"ordering": false,
"info": false,
"pageLength": 10,
"bLengthChange": false
}); i had added bsavestate=true by doing this i am in the same page when i click edit button that is if i choose 5th page in gridview when i click edit button for one of record i am not redirected to 1st page in the paging of my gridview but again if i login then i am unable to see the first page i am seeing 5th page in gridview that means it is saving that state though i am again getting logged in
Member 12324523
1-Nov-16 12:18pm
View
i tried a lot but i could not get the solution that is the reason i had posted my requirement.I could not find code for my requirement
Member 12324523
1-Nov-16 1:42am
View
Deleted
can anyone delete this post
Member 12324523
1-Nov-16 0:50am
View
Deleted
now i am getting error here public static void Main( )
{
Application.Run(new TestForm( )); //error near TestForm();
}
Member 12324523
1-Nov-16 0:48am
View
Deleted
now i am getting error here public static void Main( )
{
Application.Run(new TestForm( )); //error near TestForm();
}
Member 12324523
31-Oct-16 1:08am
View
i had done but still they are not working can i know if it worked for you
Member 12324523
29-Oct-16 13:54pm
View
Deleted
This is the other way which i tried
<title>
function PlaySound(soundobj) {
var thissound = document.getElementById(soundobj);
thissound.play();
}
function PauseSound(soundobj) {
var thissound = document.getElementById(soundobj);
thissound.pause();
}
<audio id="audio1" controls="controls" preload="auto" src="Sounds/DPM317.wav" type="audio/wav">
<audio id="audio2" controls="controls" preload="auto" src="Sounds/DS250069new.wav" type="audio/wav">
Member 12324523
29-Oct-16 13:16pm
View
Deleted
Hi i too found this while googling but i need to implement it programmatically and i could not find the code for doing this.Also i had converted dss and ds2 files to wav files using NCH software but they are not getting played in google chrome they are working only in firefox browser
Below is the code
//$("#audio").attr("autoplay", true);
//document.getElementById("audio").play();//to play
//document.getElementById("audio").pause();//to pause
window.onload = function () { document.getElementById("audio").play(); }
window.addEventListener("load", function () { document.getElementById("audio").play(); });
<%-- <audio src="Sounds/DPM317.wav" controls="controls" autoplay="autoplay">--%>
<%-- <audio src="Sounds/DS250069new.wav" controls="controls" autoplay="autoplay">
<audio controls="">
<source src="Sounds/DPM317.wav" type="audio/wav" />
Your browser does not support the audio element.
--%>
<audio id="audio" controls="" autoplay="">
<source src="Sounds/DPM317.wav" type="audio/wav" />
Your browser does not support the audio element.
Member 12324523
10-Jul-16 2:16am
View
can you show it in my code
Member 12324523
6-Jul-16 4:51am
View
Deleted
i did but i am getting error can you show it to me also when i click on button i need to display name and method name
Member 12324523
6-Jul-16 1:07am
View
Deleted
the functionality did not worked at all
Member 12324523
28-Jun-16 1:30am
View
Deleted
i tried but it is not working
Member 12324523
19-May-16 1:39am
View
Deleted
string path = @"Here i had given the ftp link path" + directory;
request.Credentials = new NetworkCredential(here ftp user name, here ftp password);
in this way i had provided my credentials.But i am unable to create folder for month,date and year on ftp server.how can i create folder for date,month and year on ftp server using above code.can you please help me out
Member 12324523
19-May-16 1:35am
View
Deleted
string path = @"Here i had given the ftp link path" + directory;
request.Credentials = new NetworkCredential(here ftp user name, here ftp password);
in this way i had provided my credentials.But i am unable to create folder for month,date and year on ftp server and there are no exceptions also.how can i create folder for date,month and year on ftp server using above code.can you please help me out
Member 12324523
11-Mar-16 7:44am
View
then how can i download my files into the application folder is it possible to download in any other way.
Show More