15,666,122 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 Python questions
View Javascript questions
View C++ questions
View Java 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 user 3008 (Top 43 by date)
user 3008
8-Aug-19 10:08am
View
Thank you so much for your help. I just found that the view state for my page is 59928 and so even 2048 also didn't work. Now set the value to 59930. Fingers crossed
user 3008
8-Aug-19 8:49am
View
I actually have an issue with my ViewState, where it is intermittently throwing an error occurred in a few pages in my project and so I am trying to add the maxPageStateFieldLength in the config settings. But I am not sure what value should I have to give. I tried with 40/60 but still got the issue. Now I have given the value as 2048 and no errors till now. I am not sure whether I have given very high value than needed for my project.
user 3008
22-Jun-16 11:52am
View
I have included the entire scripthelper custom class that we used for your refernce
user 3008
22-Jun-16 6:11am
View
That is quite big with 1316 lines I will just add few add few lines in that which will be the same for other query with different in culture name and localisation id
user 3008
20-May-16 4:57am
View
yes tried that but it is not trimming
user 3008
20-May-16 4:52am
View
dto.VarEmail = supplier.VarEmail.trim();
and also
@Html.TextBoxFor(m => m.VarEmail, Model.VarEmail.Trim(), new { style = "width:50%" })
user 3008
19-May-16 6:49am
View
Thanks for your reply. I also tried using dateformat. Another part of this issue is that , I am getting this error message only in the chrome but it works fine in IE and firefox
user 3008
13-May-16 10:20am
View
Thanks for your reply. If I code as you said I am getting the error message but I couldn't include a styling if the validation returns false.
user 3008
14-Apr-16 6:25am
View
Deleted
:-)
user 3008
13-Apr-16 7:31am
View
Thank you so much for the link you gave. It worked if I try the way explained in the link and at last my big issue is sorted. Thanks again for your time in my issue
user 3008
12-Apr-16 10:23am
View
The start options page has few radio buttons under "Start action" like
User current page
specific page
start external program
start URL
Don't open page. Wait for a request from an external application.
And got Base Url under "Server" which is disabled.
Even in few other forums many have mentioned about this sever to change to IIS which is disabled for me
user 3008
12-Apr-16 10:15am
View
I even tried property pages. I am getting only the following tabs
references
Build
Accessibility
Start Options
MSBuild Options
Silverlight Applications
user 3008
12-Apr-16 8:06am
View
Thanks for your reply. Sorry about that I don't have properties when I right click. I can find only property window and property pages options
user 3008
14-Jan-16 7:26am
View
I tried the where condition as SignOff.SignedOffBySchoolDate!=1 in the select statement and it is returning the correct records and I tried using the same where condition in the update statement but it is not having any effect.
user 3008
14-Jan-16 6:36am
View
the field Submitted is a Boolean field and is there any other way to give the where condition so that it will have some effect
user 3008
14-Jan-16 6:34am
View
I even tried that, now it is not showing any errors but the where condition is not having any effect in the output
user 3008
7-Jan-16 7:08am
View
Or is there any option to delete the record in the table [busRoute] without deleting the corresponding foreign record in the table [SchoolBusRecord]. If so I can perform seperate delete operation to delete from both the tables.
user 3008
7-Jan-16 6:18am
View
I can't delete all the BusRoute Corresponding to that BusRouteID in schoolBusRoute as the same BusRouteID is used for other schools as well.
Now I want to delete the record from the BusRoute by deleting only the corresponding schoolrecord in the schoolBusRoute. Is anyone having any idea about how do I perform this operation.
user 3008
7-Jan-16 6:03am
View
Have updated the question with the code now. Thanks for your suggestion.
user 3008
7-Jan-16 5:55am
View
Deleted
else if (e.CommandName == "DeleteRecord")
{
//Delete and raise event to rebibnd
SchoolBusRoute thisSchoolBusRoute = selectedBusRoute.SchoolBusRoutes.Where(p => p.BusRouteID == selectedBusRoute.BusRouteID).FirstOrDefault();
if (thisSchoolBusRoute != null)
{
schoolBusRoutesService.Delete(thisSchoolBusRoute);
BusRoutesService.Delete(selectedBusRoute);
if (OnBusRouteStatusChanged != null)
{
EventArgs newArgs = new EventArgs();
OnBusRouteStatusChanged(this, newArgs);
}
}
}
public void Delete(SchoolBusRoute DataEntity)
{
SchoolBusRoute entityInstance = currentContext.SchoolBusRoutes.Where(p => p.SchoolBusRouteID == DataEntity.SchoolBusRouteID).FirstOrDefault();
if (entityInstance != null)
{
currentContext.DeleteObject(entityInstance);
currentContext.SaveChanges();
}
}
public void Delete(BusRoute DataEntity)
{
BusRoute entityInstance = currentContext.BusRoutes.Where(p => p.BusRouteID == DataEntity.BusRouteID).FirstOrDefault();
if (entityInstance != null)
{
currentContext.DeleteObject(entityInstance);
currentContext.SaveChanges();
}
}
user 3008
10-Dec-15 9:01am
View
Thanks for your quick response.
Actually the files are stored in database and the project is stored locally in my system. The urlrequest displays "/DocumentRepository/Schools/4687/Logos/8994.gif"
which is the url as per the sql, where 4687 is the schoolID as per the database record and I have issue in loading the logo of the school. The filePath shows "C:\User\vasur\Desktop\Solution\Cds.Tfl.Stars.Wed\Document\Schools\4687\Logos\8994.gif" is the path where my project is stored locally my project is stored locally and the file does not exist in that local path as it is stored in the database.
I even tried by including ~/ to the front of urlrequest but that didn't have any effect.
user 3008
5-Nov-15 4:05am
View
My issue is resolved by including currentcontext.savechanges(); inside for loop as
foreach(var changedByIDSchool in queryResult.ToList())
{
changedByIDSchool.ChangedByID = 1;
Currentcontext.SaveChanges();
}
This has the saved the value that I am assigning to the database. Thanks all for your help.
user 3008
12-Oct-15 7:21am
View
Sorry about I cannot see your answer
user 3008
23-Sep-15 7:02am
View
SurveyID | SchoolID | SurveyDate | Year | ClassSize | ClassName
168294 | 4968 | 2015-05-19 00:00:00:000 | 13 | 20 | 13c
168321 | 4895 | 2015-02-17 00:00:00:000 | 15 | 45 | 14a
This must be the result.
If I apply distinct as
Select distinct [SchoolID], [SurveyID] from [Survey]
then it is applying as to remove the duplicate records for the combination of the SchoolID and SurveyID that occurs more than one. I do not want that to happen. It must only check for the duplicate records of the [SchoolID] and remove the entire records of the duplicate record in all fields and display the rest of the records with all the fields. Hope I am clear now.
user 3008
22-Sep-15 9:35am
View
Want only one single row per schoolid.
SurveyID | SchoolID | SurveyDate | Year | ClassSize | ClassName
168293 | 4968 | 2015-05-20 00:00:00:000 | 13 | 18 | 13b
168294 | 4968 | 2015-05-19 00:00:00:000 | 13 | 20 | 13c
168321 | 4895 | 2015-02-17 00:00:00:000 | 15 | 45 | 14a
I think this example data from survey would give you an idea.
user 3008
21-Aug-15 9:55am
View
Thank you so much for your response.
what is the UserId? Where did you declare that?
user 3008
16-Jul-15 4:20am
View
when the checkbox is unchecked the panel collapses and when it is checked the panel opens. When we click on the save button the checkbox is still in the checked state.
user 3008
15-Jul-15 9:11am
View
No I can't see any errors in the console window. When I click on the save the respective values are been stored in the database which means that the save button is working but the panel is not collapsing.If I can attach the screenshot I can do it but code project is supporting to attach the screenshot.
user 3008
24-Jun-15 5:24am
View
Thank you.. The exception is been fixed when I change to HttpContext.Current.Session but now I am getting an error message as
Server Error in '/Cds.Tfl.Stars.Web' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Cds.Tfl.Stars.Web/DocumentRepository/Schools/5182/TravelPlan/TravelPlan2012-13.pdf
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248.
user 3008
12-Jun-15 6:49am
View
we create a website where we can download few pdf files. This download will not be supported in the MAC operating system. Thus we want to display a warning message in the download only if the operating system not windows. In order to do this we need to acquire the environment operating system.
user 3008
2-Jun-15 12:13pm
View
Thank you so much for the solution. It is now working perfectly. :-) :-)
user 3008
29-May-15 7:33am
View
Sorry about that. I want the this updating to be done using ASP.NET code, so that this will data will be copied to the table Schools each time it is been changed in the website.
user 3008
28-May-15 10:14am
View
update the data of the column DateTravelPlanSubmitted to the table Schools each time it changes in the SignOff table. This update must be automatically
user 3008
27-May-15 6:44am
View
Thank you so much for your idea. I had an error in the query. I didn't delete in its dependent table of Consultation and hence it has rolledback
user 3008
14-May-15 10:20am
View
If the value is not loaded in the control then it will enter into the statement 'if(SelectedSurveyID.SurveyDate!=null){' The control checks the condition and finds that it is not null and thus it enters into the if statement. If I am not correct can you please let me know how to in control itself
user 3008
13-May-15 10:26am
View
I checked in the DB the completed year value is present. It is even calling the correct ID of the data and the completedday, completedmonth. It shows null only for the year that too only for older year but not for the latest years.
user 3008
30-Apr-15 10:59am
View
LinkButton btnDelete = (LinkButton)e.Item.FindControl("btnDelete");
if (btnDelete != null)
{
if (this.ReadOnly)
{
btnDelete.Visible = false;
}
else
{
btnDelete.Visible = true;
if (thisContact.UserDetails != null && thisContact.UserDetails.Count > 0)
{
btnDelete.CommandName = "CannotDelete";
btnDelete.OnClientClick = "return window.alert('This contact cannot be deleted as there is a user login record using it')";
}
else
{
btnDelete.OnClientClick = "return window.confirm('Are you sure you want to delete this staff contact?')";
}
btnDelete.CommandArgument = thisContact.ContactID.ToString();
if (thisContact.ContactID == SessionContents.CurrentUser.ContactID)
{
btnDelete.Visible = false;
}
}
}
user 3008
30-Apr-15 10:57am
View
Deleted
Am deleting the contact from the SchollContact
user 3008
30-Apr-15 10:56am
View
Deleted
Am deleting the contact from the SchollContact
user 3008
30-Mar-15 9:13am
View
I now changed the value but still getting the same error message page. Actually the control is going to the function when the file size is been exceeded. That is the issue that if I provide conditions still it is not working. Can you provide me with any other alternatives
user 3008
29-May-14 7:16am
View
Whenever I use a "if" condition for checking whether it is checked or not for the first time it is working perfectly but for the second time the "if" condition is been converted to normal code statement and hence makes the checkbox unchecked if the checked is checked
user 3008
26-May-14 0:49am
View
Here the checkboxes have parent child relationship thus you have give as traversing.If suppose the two checkboxes do not have parentchild relationship and are two different checkboxes with different class name and Id then how can we give the click function?
user 3008
19-May-14 2:52am
View
Thank you for your reply. Here I have provided only a part of my code but I have nearly 50 cases. and 20 checkboxes in each catgory. In tha case it will not be possible to write indivual hide and show script for each cases. Is there any other solution for this? And moreover I haven't wrriten all the content in my html itslef. I have written the content in xml page and retieved in my view page using looping, so it will not be possible for me to provide indiviual name for each checkbox.
Show More