Click here to Skip to main content
15,887,027 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Help with a connection string Pin
Member 1212435411-Nov-15 11:59
Member 1212435411-Nov-15 11:59 
QuestionJquery Ajax method call with asp.net static webmethods Pin
ganesh.dks8-Nov-15 20:31
ganesh.dks8-Nov-15 20:31 
AnswerRe: Jquery Ajax method call with asp.net static webmethods Pin
Nathan Minier9-Nov-15 2:53
professionalNathan Minier9-Nov-15 2:53 
GeneralRe: Jquery Ajax method call with asp.net static webmethods Pin
F-ES Sitecore9-Nov-15 4:49
professionalF-ES Sitecore9-Nov-15 4:49 
GeneralRe: Jquery Ajax method call with asp.net static webmethods Pin
Nathan Minier9-Nov-15 6:05
professionalNathan Minier9-Nov-15 6:05 
GeneralRe: Jquery Ajax method call with asp.net static webmethods Pin
Richard Deeming9-Nov-15 9:04
mveRichard Deeming9-Nov-15 9:04 
GeneralRe: Jquery Ajax method call with asp.net static webmethods Pin
Nathan Minier19-Nov-15 1:23
professionalNathan Minier19-Nov-15 1:23 
AnswerRe: Jquery Ajax method call with asp.net static webmethods Pin
F-ES Sitecore9-Nov-15 4:59
professionalF-ES Sitecore9-Nov-15 4:59 
ganesh.dks wrote:
These static web methods cannot access the page's controls or their view state hence the danger of multiple requests and concurrency does not arise.


Unless your static methods then use static variables. As long as your static methods only use local variables you'll be ok.

ganesh.dks wrote:
You call a static web method which means it does not have an associated object making it stateless(why do they use the term stateless?), which there by makes it work like a service which takes data, processes it, and returns something but does not keep anything to itself.


It's called stateless because it takes data, processes it, and returns something but does not keep anything to itself Smile | :)

ganesh.dks wrote:
Also you can choose to change the state of the controls present on the webpage by getting data in this manner and using JavaScript


If I had to be really pedantic I would point out that "controls" (as in server-controls like asp:Textbox etc) only exist while the page is being processed in the asp.net page lifecycle. Once the page has finished being created it is converted to html and sent to the client to display. At this point you simply have html and html elements, your controls no longer exist. When you submit the form asp.net uses view state to re-create those controls, re-create the html, server that html and again your controls are destroyed, they no longer exist.

If you call ajax methods and update the DOM via javascript all you are doing is amending the DOM, the client html elements. You are not changing the state of the controls as that state is held in the view state, and that is what your controls get re-created\deserialized from. Any changes you make to the "state" of your controls via js (let's say you add an option to a select element, or change the colour of some text) are unknown to asp.net and when you submit your form the controls will be re-created from the viewstate (which you haven't amended) and your amendments will be lost.
QuestionASP.NET MVC How to implement timer functionality to update dock panels on client side respective to their time intervals? Pin
glitteringsound4-Nov-15 20:41
glitteringsound4-Nov-15 20:41 
AnswerRe: ASP.NET MVC How to implement timer functionality to update dock panels on client side respective to their time intervals? Pin
Nathan Minier5-Nov-15 1:37
professionalNathan Minier5-Nov-15 1:37 
QuestionMVC View and Sub Views, Child View? Views within a View? Pin
jkirkerx4-Nov-15 7:38
professionaljkirkerx4-Nov-15 7:38 
AnswerRe: MVC View and Sub Views, Child View? Views within a View? Pin
F-ES Sitecore9-Nov-15 5:11
professionalF-ES Sitecore9-Nov-15 5:11 
GeneralRe: MVC View and Sub Views, Child View? Views within a View? Pin
jkirkerx9-Nov-15 6:22
professionaljkirkerx9-Nov-15 6:22 
QuestionInterview Question Pin
zephaneas3-Nov-15 7:23
zephaneas3-Nov-15 7:23 
QuestionRe: Interview Question Pin
Richard MacCutchan3-Nov-15 21:57
mveRichard MacCutchan3-Nov-15 21:57 
AnswerRe: Interview Question Pin
Blikkies8-Nov-15 10:11
professionalBlikkies8-Nov-15 10:11 
GeneralRe: Interview Question Pin
Richard MacCutchan8-Nov-15 22:30
mveRichard MacCutchan8-Nov-15 22:30 
AnswerRe: Interview Question Pin
F-ES Sitecore9-Nov-15 5:05
professionalF-ES Sitecore9-Nov-15 5:05 
Questionhow to do a a parody album management ASP.NET application Pin
kushaochin2-Nov-15 21:30
kushaochin2-Nov-15 21:30 
AnswerRe: how to do a a parody album management ASP.NET application Pin
OriginalGriff2-Nov-15 21:32
mveOriginalGriff2-Nov-15 21:32 
GeneralRe: how to do a a parody album management ASP.NET application Pin
kushaochin2-Nov-15 21:43
kushaochin2-Nov-15 21:43 
GeneralRe: how to do a a parody album management ASP.NET application Pin
OriginalGriff2-Nov-15 21:49
mveOriginalGriff2-Nov-15 21:49 
GeneralRe: how to do a a parody album management ASP.NET application Pin
Richard MacCutchan2-Nov-15 21:53
mveRichard MacCutchan2-Nov-15 21:53 
GeneralRe: how to do a a parody album management ASP.NET application Pin
kushaochin2-Nov-15 21:56
kushaochin2-Nov-15 21:56 
GeneralRe: how to do a a parody album management ASP.NET application Pin
OriginalGriff2-Nov-15 22:03
mveOriginalGriff2-Nov-15 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.