15,911,848 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 Palash Sachan (Top 55 by date)
Palash Sachan
20-Nov-17 12:25pm
View
sorry i forgot..
Palash Sachan
20-Nov-17 12:24pm
View
working perfectly..thank u sir :)
Palash Sachan
18-Nov-17 22:23pm
View
yes sir its the nested gridview..i have updated the question..added the code behind and other methods also..please check and please help if u know the answer..thanks
Palash Sachan
5-Nov-17 11:50am
View
yeah this solves my problem of removing the milliseconds..although i was looking for if any method they have it..but you gave this trick to solve it and now i have just edited the code like this :- return s.Contains("milliseconds") ? s.Substring(0, s.LastIndexOf(',')) : s.Contains("no time") ? "Calculating..." : s;
thank you sir :)
Palash Sachan
5-Nov-17 11:46am
View
hi sir, thanks for the reply..as you said i have posted the issue there.thanks :)
Palash Sachan
5-Nov-17 11:45am
View
hi, thanks for the reply sir..i know and i have read the documentation..and i think there is no method to remove this..thanks :)
Palash Sachan
18-Jul-17 4:22am
View
thanks for the reply..but i don't want to do this with javascript..
Palash Sachan
18-Jul-17 4:22am
View
thanks for the reply..but i don't want to do this with javascript..
Palash Sachan
18-Jul-17 4:19am
View
understood sir..thanks for the explanation..thanks
Palash Sachan
3-Mar-17 5:14am
View
yeah the problem is solved..now the page is not reloading
anyway, thanks to you also for the help :)
Palash Sachan
3-Mar-17 5:00am
View
yeah..thanks for the help :)
Palash Sachan
3-Mar-17 4:58am
View
although it reloads the page 1 time but then it stops the reloads and does my work perfectly
thank a lot sir :)
Palash Sachan
3-Mar-17 4:54am
View
my requirment is very small..what here i want to do is-->
"when and as soon as the webform7.aspx page is fully loaded then it should auto click the button which will invoke the code behind method and do the stuff"
I did this only but the page is reloading and i need to stop the reload..
Palash Sachan
3-Mar-17 4:43am
View
okay so how do i stop that autopostback from happening when the button is clicked??
Palash Sachan
3-Mar-17 4:40am
View
but i need the javascript to load as the page is loaded..On removing this the javascript will not work when the page is loaded..
also i tried to use jQuery and its not loaded when the page is loaded
$(window).load(function () {
document.getElementById('<%= bttn.ClientID %>').click();
});
so is there any other way to stop that reload??
Palash Sachan
2-Mar-17 6:01am
View
don't know why i am getting the error "System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation."
hey please don't mind but can u give me your email or anything else where i can show u the code privately so that u can understand my problem better
i am just asking this because u r the only person here who helps me every time in the past also :)
otherwise just leave it, i will be keeptrying by myself
thanks a lot for the help Sir
have a good day :)
Palash Sachan
2-Mar-17 5:14am
View
i know how to use ajax..i am using it as "ScriptManager", "UpdatePanel" and "UpdateProgress" and then changing the panel as it is necessary to display the msg to user
but here i want to do a task as soon as the page is loaded
i also tried [System.Web.Services.WebMethod] with jquery and with ajax also
but none is working or maybe i am not doing it in the correct way
i can do my work either by calling the [WebMethod] or it will be best if its a button onclick method
can you please show me any small example so that i can complete my task
can you tell me how can i click button inside $(windows).load ???
Palash Sachan
26-Feb-17 11:45am
View
worked like a charm..thanks a lot @Arindam :)
Palash Sachan
9-Feb-17 12:41pm
View
okay..understood..thanks a lot for the help :)
Palash Sachan
9-Feb-17 7:06am
View
OMG.."Session_Start" in Global.asax worked
i added a new session like this there
protected void Session_Start(object sender, EventArgs e)
{
Session.Add("UsernameAvailable", "false");
}
and then checked in the content page page_load
thanks a lot sir..its working now :)
1 ques - when does this session_start trigger and when not??
pls tell
Palash Sachan
8-Feb-17 14:04pm
View
yeah but its showing error..i don't know why its showing error when everything is fine..anyway thanks for the help :)
Palash Sachan
8-Feb-17 13:41pm
View
i know which session objects are NULL when the page loads and so i am checking it that if its null then do some stuff..but it gives error
do u know how can i initialize the session variable when the website loads on client machine?
Palash Sachan
22-Apr-16 0:35am
View
yes the linear layout is inside ScrollView and it is not showing TextView in bottom..pls help if u can
Palash Sachan
23-Feb-16 11:06am
View
ok sir..no problem..can u pls help me in this
i trying to make a program which can sort numbers and strings both because i don't know what user will input
i am getting this wrong output
For Example:-
Please enter how many names of the student you want to arrange
-----------------------
Enter 10 Names Of Students
-----------------------
<1> palash
<2> 10
<3> 100
<4> 8
<5> 40
<6> sachan
<7> good
<8> boy
<9> 6
<10> 3
-----------------------
Sorted Linked List In Ascending Order Is=====>
-----------------------
<1> 10
<2> 100
<3> 3
<4> 40
<5> 6
<6> 8
<7> boy
<8> good
<9> palash
<10> sachan
Palash Sachan
23-Feb-16 11:03am
View
please help any
Palash Sachan
23-Feb-16 10:57am
View
dear sir, i trying to make a program which can sort numbers and strings both because i don't know what user will input
i am getting this wrong output
For Example:-
Please enter how many names of the student you want to arrange
-----------------------
Enter 10 Names Of Students
-----------------------
<1> palash
<2> 10
<3> 100
<4> 8
<5> 40
<6> sachan
<7> good
<8> boy
<9> 6
<10> 3
-----------------------
Sorted Linked List In Ascending Order Is=====>
-----------------------
<1> 10
<2> 100
<3> 3
<4> 40
<5> 6
<6> 8
<7> boy
<8> good
<9> palash
<10> sachan
Palash Sachan
23-Feb-16 10:50am
View
what is this..pls explain
static DataSet FetchEmailDetails(IDetailsRepository bl)
{
DataSet ds = bl.GetData();
return ds;
}
Palash Sachan
23-Feb-16 10:43am
View
sir sorting the integer linked list also giving wrong output
see this:-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SortAndMergeLinkedList
{
class SortAndMerge
{
int i, j;
LinkedList<int> List1 = new LinkedList<int>();
LinkedList<int> List2 = new LinkedList<int>();
LinkedList<int> List3 = new LinkedList<int>();
Random rand = new Random();
public SortAndMerge()
{
i = 0;
j = 0;
}
static void Main(string[] args)
{
SortAndMerge ob = new SortAndMerge();
ob.InputList1();
ob.InputList2();
ob.Merge();
ob.Sort();
ob.Display();
Console.Read();
}
void InputList1()
{
Console.WriteLine("\n-----------------------");
Console.WriteLine("\tList 1");
Console.WriteLine("-----------------------");
int n = 10;
Console.WriteLine("\n-----------------------");
Console.WriteLine("Enter {0} Names Of Students ", n);
Console.WriteLine("-----------------------");
for (int i = 0; i < n; i++)
{
Console.Write("<" + (i + 1) + "> ");
List1.AddLast(rand.Next(1,100));
}
}
void InputList2()
{
Console.WriteLine("\n-----------------------");
Console.WriteLine("\tList 2");
Console.WriteLine("-----------------------");
int n = 10;
Console.WriteLine("\n-----------------------");
Console.WriteLine("Enter {0} Names Of Students ", n);
Console.WriteLine("-----------------------");
for (int i = 0; i < n; i++)
{
Console.Write("<" + (i + 1) + "> ");
List2.AddLast(rand.Next(1,100));
}
}
void Merge()
{
foreach(var item in List1)
{
List3.AddLast(item);
}
foreach(var item in List2)
{
List3.AddLast(item);
}
}
void Sort()
{
for (i = 0; i < List3.Count; i++)
{
for (j = 0; j < List3.Count - 1; j++)
{
if (List3.ElementAt(j) > List3.ElementAt(j + 1))
{
LinkedListNode<int> current = List3.Find(List3.ElementAt(j));
var temp = current.Next.Value;
current.Next.Value = current.Value;
current.Value = temp;
}
}
}
}
void Display()
{
Console.WriteLine("\n-----------------------");
Console.WriteLine("Sorted Linked List In Ascending Order Is=====>");
Console.WriteLine("-----------------------");
i = 1;
foreach (var item in List3)
{
Console.Write("<" + (i++) + "> ");
Console.WriteLine(item);
}
}
}
}
Palash Sachan
23-Feb-16 10:37am
View
ohh..this little problem i had with this..thanks sir
can u tell me should i have to make another program to sort numbers also??
i cannot sort it with the strings??
Palash Sachan
14-Dec-15 13:11pm
View
yes sure sir..pls give any source or link
Palash Sachan
14-Dec-15 13:06pm
View
can u pls give me some example..
Palash Sachan
14-Dec-15 12:41pm
View
then how can i get the progress??
Is there any other way to copy files in c#??
Palash Sachan
12-Dec-15 3:20am
View
got it..thanks sir :)
Palash Sachan
12-Dec-15 3:20am
View
working perfectly by giving left and top position and also b adding this line
Console.Write("\r" + new string(' ', Console.WindowWidth) + "\r");
thanks sir :)
Palash Sachan
12-Dec-15 3:19am
View
Deleted
got it..thanks sir :)
Palash Sachan
11-Dec-15 23:44pm
View
dear sir..edited all things you said
except for using "WriteLine" or "\n" instead of "Write" or "\r"
i m using Write so that it do not create the new line everytime
and i m using \r so that the line is updated evertime
now pls give any solution to my problem sir
thanks
Palash Sachan
11-Dec-15 23:28pm
View
i have updated the ques sir..please see https://goo.gl/CXty8c
Palash Sachan
11-Dec-15 4:55am
View
read it..thanks for the reply :)
Palash Sachan
11-Dec-15 4:54am
View
thanks a lot sir..this is working very fine :)
Palash Sachan
11-Dec-15 3:57am
View
this thread.sleep pauses the whole program for some time and then do the work..is there something instead of pausing the whole program stop the working method only
Palash Sachan
11-Dec-15 3:45am
View
sir, will this work on console application??
Palash Sachan
10-Dec-15 21:56pm
View
dear sir..i just made the program what i could make at this moment as i m new to c#..and so i was just asking to how to make it in as the list so that it can be simple..and NO i m not cheating on anyone sir..i m new to it..and i know that if i will do so than it will not be good for me as then i will not learn anything..and thanks for the help and ur solution sir :)
Palash Sachan
10-Dec-15 13:47pm
View
this is it..this is what i wanted..thanks @ridoy
Palash Sachan
10-Dec-15 13:44pm
View
nice trick..thanks @Anisuzzaman Sumon for the quick answer :)
Palash Sachan
10-Dec-15 13:34pm
View
sir..u r correct..this is my homework..and i have tried this in easy way like this..see the ques again
Palash Sachan
22-Nov-15 3:52am
View
ok..reading it..will reply to you if have any problem..thanks for the reply sir
Palash Sachan
22-Nov-15 3:38am
View
sir..i want to do 2 things at one time i means i want to use 2 different for loops at the same time in and it display in console..by using threading class is it possible??
Palash Sachan
16-Nov-15 3:24am
View
okay if this will slow down the copy speed then how should i do it? i have got this projject to copy and paste the file and display the current progress..please help if u can..thanks
Palash Sachan
16-Nov-15 1:42am
View
i checked..what it is doing is when it copies the whole file then it moves further and so the si is 100% shown..the wrong thing is i think file.copy..is it??
Palash Sachan
3-Nov-15 0:24am
View
why the hell you both are fighting..i got the solution of my problem dear..thanks to all for reply :)
Palash Sachan
3-Nov-15 0:24am
View
Deleted
why the hell you both are fighting..i got the solution of my problem dear..thanks to all for reply :)
Palash Sachan
2-Nov-15 22:23pm
View
nothing different..its the same as yours sir :)
Palash Sachan
2-Nov-15 1:55am
View
Working fine..thanks sir for help
Palash Sachan
2-Nov-15 1:54am
View
Nice..this also working very fine..thanks Sir
Palash Sachan
2-Nov-15 1:53am
View
working perfectly correct..Thanks you sir
Show More