.net Lifecyle Important To Coding In .net?
Oct 20, 2010Why is knowing the Asp.net lifecyle important to coding in Asp.net?
View 10 RepliesWhy is knowing the Asp.net lifecyle important to coding in Asp.net?
View 10 RepliesIf I change (and upload) the web.config of an ASP.NET site, do existing users surfing the site lose their sessions?
Also, does the IIS server need to be reset?
I manage to change part of it and the rest i not quite sure how to do it. Below is the code written in C#, it is a svc file.
[code]....
I was recently asked to speed up a C#/ASP.NET/SQL Server business app website. Since I just started, I don't know too much about the internals. So where do I start? Sight unseen, what is the single most important thing affecting performance on a system like this? Database tuning? Hardware? Individual page optimization? What is the first thing you'd look at? EDIT: After I actually do the work, I'll come back and post the answer. ;)
EDIT again: "Profile" is currently the most-voted answer, and I agree that that is clearly what one should do. But I was looking for guesses/experience as to what the profiling results would show, so I don't think that answer counts...
I heard that for java (jboss + any DB) it's really important cuz there is going to be lot of problems, but for .net not so much, is it ?
View 4 RepliesI have a calender control tht you can click on. When you click on a date you see all the events that happens that date. But i want the calender to show what dates have events. I want these dates to have a seperate styling. In the code behind i catch the DayRender event. I have a list will all important dates called "eventDates".
if (eventDates.Contains(e.Day.Date) == true)
So I have a ntext column in a table with a combination of large random data (hence why ntext in the first place) and sometimes contains a uniqueidentifier.
I need to find and delete rows based on the uniqueidentifier.
I can't do the comparison with it being ntext, but I changed it to varchar(max) in my dev enviornment and it let me do it without any warnings and I can now do my comparison like I want to, so all is good.
I just want to make sure I'm not changing any of my large random data by changing the data type.
I have a web server running IIS 6 which has .NET 2,3.5, and 4 installed. Everytime I install a .NET 4.0 web appication the ASP IIS Registration tool is ran which is clearing out some important registry entries for EnableExtionlessUrls. We have reinstall the .NET 4.0 framework but are still having the same problem.
View 1 RepliesI have a site in development with several web services (ASMX) that post important data to my database. When I navigate to the ASMX file in my browser, I can fill in the form with the parameters and post to the DB. If someone finds the URL to my WS, they can severely alter my database. I want to prevent people from being able to post to my WS publicly. So far, I've thought of two things that may but I'd like to know if there are any other ways:
Check to see if the HTTP Referrer to the WS method is the domain the WS is on Add an additional parameter called Key to all important WS methods and have this be an encrypted "password." Then encrypt my stored password on the WS side and compare if the keys match.
how can i do perfect coding using all oops concepts?
View 6 RepliesI Developing a erp project in that there are more than 100 screens i should provide a one button or any other option if users click that button it show all screens so far you have used for eg:alt+tab event if we press it comes so far used same functionality should be overcome in my project how to achieve this.
View 1 RepliesI really do not have time to learn new language, in my case asp.net, but would like to start developing website in asp.net. I do not want to use asp:SqlDataSource control. is it ok if i write in codebehind aspx: all database connections and other CRUD operations in ado.net and c#. I already know xhtml, javascript - jquery, css, xml, json, some knowledge in sever-side coding (before php). want to start coding, instead of learning messy asp.net controls.I have to sit and learn all bloody ways of using those asp.net controls?
View 2 Repliesasp.net 4.0I'm trying to utilize a webservice but is not 100% sure how to do the coding. I've added reference to the web service in the project.The webservice have this class:sendCompletedEventArgs(object[], System.Exception, bool, object) And this delegate:sendCompletedEventHandler(object, sendCompletedEventArgs, System.AsyncCallback, object)This delegate have BeginInvoke(object, sendCompletedEventArgs, System.AsyncCallback, object) and EndInvoke()any suggestions how to utilize this webservice is most welcome?
View 1 Repliesam displaying various countries names in my dropdownlist and i want to display the data using gridview like whenever i change the country in my ddl it should display the relevant data according to the country?? i have done by using binding data with the datasource without any code but now i want to write the code
View 4 RepliesI want To send Mail On button click But getting Error Failure sending mail.(smtpException was Catched) public string SendEmail(string strTo_Email_Id, string subject, string strMail_Message)
{
try
{
[code]...
i would like to run a command prompt to run the project and set its startup project
View 2 RepliesBelow is the source code that tries to highlight rows in certain colors depending on value of the certificate. The code runs, but the colors are not showing up.
If e.Row.RowType = DataControlRowType.DataRow Then
If CType(sender, GridView).DataKeys(e.Row.RowIndex).Values("Certificate") <100000 Then
e.Row.BackColor = System.Drawing.Color.lightblue
elseIf CType(sender, GridView).DataKeys(e.Row.RowIndex).Values("Certificate") < 1000000 And ("Certificate") > 100000 Then
[code]....
Is using an include file bad coding practice in asp.net? I am aware of master pages, etc. but it seems like in this case an old fashioned include file works best.I have a home page and I have an "all other" page. The all other page is my master page. I place the header include on the master page and at the top of the home page.
<!--#include file="inc/inc_header.aspx"-->
give me a feedback on the below coding. I like to know whether i had improved in writing the .net coding.
[code]....
I typically don't play with betas, so I am just now getting used to vs 2010 pro. I grabbed it from DreamSpark yesterday, and so far I like all the changes.
I was wondering though, with some of the changes to ado.net EF, is there now a way to set a coding namespace for both the context as well as the entities, instead of just setting the custom tool namespace (this wraps both context and entities)? Typically, I like having my classes grouped into namespaces by type, and since a context isn't an entity, it shouldn't go in the entities namespace. note: I am talking about actual coding namespaces, not the conceptual namepsaces used internally by EF.
I was also wondering if having this (the x86 vs 2010 ide) beside my old one (x64 vs 20080 ide) would pose any problems? It seems to be working ok, I just wanted to make sure I hadn't missed announcements saying I had to de-install one before installing the other.
How to integrate PHP into ASP.net easily. I want to know is there a simple coding process to do this.
View 3 RepliesI am converting a VB function into c#. I have this in VB: Dim Ret(2)
Whats the best alternative to convert this in c#?
There are three developers who create a web application with ASP.NET using different coding standarts.First developer: Uses class libraries and Web forms without using ASP.NET Web Components or Codebehind pages. (Just like ASP with HTML components, single .asp file etc.)Second developer : Uses ASP.NET Web Components and codebehind pages (all advantages of ASP.NET)Thirth developer: Uses HTML components and just codebehind files with old ASP methods(Request, Respond etc.)Which method of these developers use is more advantageous ?
View 6 Repliesmodules is being used for some sites when they are developing. what is this module. for example, this sites has some modules; membership module,comment module etc.Are modules a diffrent application that is added to site later, or they talk about httpmodules?
also, how can i begin this module design and coding?
I need to design a website for a programming competition event. It will be similar to TOP CODER competitions. User will be given all questions & then user submits the code, that will be running on the server and checks if it gives the correct solution or not. The first one to finish all the questions is the winner.
I've no clue about how to proceed. Assume that languages that are supported are C, C++, Java.