15,903,030 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 hsakarp (Top 21 by date)
hsakarp
13-Mar-15 8:09am
View
can you elaborate your problem?
hsakarp
7-Feb-14 1:50am
View
Deleted
have you tried with direct statement MaterialList.FindControl('<LabelId>');
hsakarp
22-Nov-13 7:08am
View
If you want to pass the value from aspx to HTML ,could you try using the query string(not sure).
hsakarp
22-Nov-13 7:01am
View
try closing and reopen the Visual studio. This may help you to get the controls aligned in your page.
hsakarp
19-Nov-13 2:31am
View
are you sure , the problem happens only when you open a page in the new window.Have you tried loading the page directly?.
hsakarp
14-Nov-13 6:10am
View
From google...
http://www.aspforums.net/Threads/160388/Create-TextBox-dynamically-using-c-Windows-Form-Winforms-Application/
hsakarp
14-Nov-13 5:39am
View
On page load you can check the current time and disable the corresponding text-box.
hsakarp
14-Nov-13 5:23am
View
instead of css use border-color,border-style.
hsakarp
14-Nov-13 5:15am
View
Please find the below link..
http://stackoverflow.com/questions/15662543/check-session-in-every-page . It might help you
hsakarp
14-Nov-13 4:57am
View
as per the error , instead of directly passing the value assign the dropcategory.SelectedItem.Value into a string and attach. This will help
hsakarp
14-Nov-13 3:23am
View
what was the error you are getting?
hsakarp
21-Oct-13 2:16am
View
are you trying to get the text of combobox or assigning to textbox.
hsakarp
18-Oct-13 2:44am
View
I guess the problem is with cc1:GMap. Have you tried with direct button click event?
hsakarp
16-Aug-13 9:50am
View
Thanks Thomas, But i am not that good at RegEx to resolve this complex(atleast for me) Expression.
hsakarp
16-Aug-13 7:13am
View
Sure Maciei , that happened by mistake.:)
hsakarp
14-Aug-13 8:04am
View
superbb!!!..
Many thanks..:)
hsakarp
14-Aug-13 7:05am
View
Thanks for quick reply..i have tried to replicate the same with my model class.while converting that into the list i ma getting the error "cannot convert the string to model class".I have tried changing the class also cant able to figure out the way to achieve..
Currently i am sorting the entire list with a column called activity
ASList
//.OrderBy(list => DateTime.Parse(list.CreatedDate))
//.OrderBy(list => list.ActivityID)
.Select(list => list.ActID.Split(new [] { "-" }, StringSplitOptions.RemoveEmptyEntries))
.OrderBy(a => Int32.Parse(a[0]))
.ThenBy(a => Int32.Parse(a[1]))
.Select(a => String.Join("-", a))
.OrderBy(list => DateTime.Parse(list.CreatedDate))
".ToList()";
If i change the string to the model class i dont have the access to the split option.could you share me the way to achieve this
Regards,
Hsakarp
hsakarp
30-Jul-13 9:49am
View
Thanks Prasad,That worked for me .:)
Regards,
Hsakarp
hsakarp
30-Jul-13 4:13am
View
Yes,the function is in javascript. I am calling the method on click of the submit button
<asp:Button ID="Button2" CausesValidation="true" Text="Close" OnClientClick="CheckAttachments()" runat="server" />
and for the value for local variable after setting it am returning that .Still i am unable to resolve this.I have copy the code below.please refer to that
function CheckAttachments() {
var QueueContainer = document.getElementById("AjaxFileUpload_QueueContainer");
var UploadButton = document.getElementById("AjaxFileUpload_UploadOrCancelButton");
var ErrorLabel = document.getElementById("UploadErrorMessageLabel");
var QClength = QueueContainer.children.length;
var isValid = Page_ClientValidate("");
if (isValid) {
var valid = true;
for (var i = 0; i < QClength; i++) {
var qtext = QueueContainer.childNodes[i].textContent;
if (qtext.match(/Remove/g)) {
ErrorLabel.style.visibility = "visible";
ErrorLabel.innerHTML = "Please click Upload to include attachments";
valid = false;
isValid = false;
return valid;
}
}
}
}
hsakarp
29-Jul-13 10:10am
View
Sorry for the late reply. I was on leave
Hi,
I have found this solution.Since i dont want to use Jquery.But i am facing a problem even though i am returning false the page is posting bak.How can i stop that.
note : I am using ASP.net validations in the page.
<pre lang="cs">function CheckAttachments() {
var QueueContainer = document.getElementById("AjaxFileUpload_QueueContainer");
var UploadButton = document.getElementById("AjaxFileUpload_UploadOrCancelButton");
var ErrorLabel = document.getElementById("UploadErrorMessageLabel");
var QClength = QueueContainer.children.length;
var isValid = Page_ClientValidate("");
if (isValid) {
var valid = true;
for (var i = 0; i < QClength; i++) {
var qtext = QueueContainer.childNodes[i].textContent;
if (qtext.match(/Remove/g)) {
ErrorLabel.style.visibility = "visible";
ErrorLabel.innerHTML = "Please include attachments";
valid = false;
}
}
}
}</pre>
Please help me on this.
Regards,
Hsakarp
hsakarp
26-Jul-13 2:07am
View
Thanks Prasad Khandekar,but that event will fire only when the upload button is clicked .I need to get the status of file before itself.
Regards,
hsakarp
Show More