Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:796525
More Search Options
RSS Available
Matching Posts
Re: server side event doesn't get called if Ajax and OnClientclick added
Here’s answer for this problem: Ajax changes submit behavior of the buttons to postback through script/__doPostBack../. Due to this fact all the script that you append OnClientClick it is inserted right before submit script. In this case if we have return in front of the submit script it will not be executed regardless whether your return type is true or false. I.e. the following won’t cause the alert to be called: To workaround this behavior we should construct the script as follow: <asp:Button
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
man_gurav
on 11/9/2009
Re: Problem in OnClientClick and OnClick sync
Hi, Here’s answer for this problem: Ajax changes submit behavior of the buttons to postback through script/__doPostBack../. Due to this fact all the script that you append OnClientClick it is inserted right before submit script. In this case if we have return in front of the submit script it will not be executed regardless whether your return type is true or false. I.e. the following won’t cause the alert to be called: To workaround this behavior we should construct the script as follow: <asp
Posted to
Client Side Web Development
(Forum)
by
man_gurav
on 11/9/2009
Not getting Distinct values despite of using Distinct()
Hi, Below is my statement which I used to filter the result: var PNRCollection = (from pnr in nameListRS.Element( "ListRS" ).Element( "Index" ).Descendants( "Item" ).Descendants( "RecordLocator" ) select pnr).Distinct(); but still I get repeat values in my collection. Please see the attached screenshot. Am I doing anything wrong? Regards, Mangesh
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
man_gurav
on 11/9/2009
Re: Not getting Distinct values despite of using Distinct()
Sorry...I don't see any way to attach image here so I can't show the sample output but it is returning repeat values.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
man_gurav
on 11/9/2009
Re: Not getting Distinct values despite of using Distinct()
Making code statement simpler: var PNRCollection = (from pnr in nameListRS.Descendants( "RecordLocator" ) select pnr).Distinct();
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
man_gurav
on 11/9/2009
Re: Not getting Distinct values despite of using Distinct()
Anybody??
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
man_gurav
on 11/9/2009
Re: Not getting Distinct values despite of using Distinct()
For e.g.: I have 4 values in the filtered result as: <RecordLocator>ABCDE</RecordLocator> <RecordLocator>ABCDE</RecordLocator> <RecordLocator>PQRST</RecordLocator> <RecordLocator>PQRST</RecordLocator> Here, the result should return ABCDE and PQRST only once and result count should be 2 but in actual, I am getting each result twice and result count is coming 4. For now, I have applied logical filtration as: string prevPNR = string.Empty; foreach (XElement
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
man_gurav
on 11/9/2009
server side event doesn't get called if Ajax and OnClientclick added
Below is my scenario: Scenario: 1. I have one AJAX panel on my page which contains few textboxes, requiredfieldvalidators for them and one server side button. 2. The button has onclientclick and onclick events registered. 3. Onclientclick event calls a simple javascript function which does some validation of form data and returns true or false. (OnClientClick="return ValidatePage();") 4. Onclick event calls some server side implementation. Behavior: 1. When a button is clicked, requiredfieldvalidators
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
man_gurav
on 10/29/2009
Re: server side event doesn't get called if Ajax and OnClientclick added
I confirmed it through debugging and it actually returns true. I also tried by writing OnClientClick="return true;". but still it didn't worked.
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
man_gurav
on 10/29/2009
Re: server side event doesn't get called if Ajax and OnClientclick added
HI Brent, I tried by removing all other validators on the page but still it is not calling server side button click event.
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
man_gurav
on 10/29/2009
Page 1 of 4 (33 items) 1
2
3
4
Next >
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
ASP.NET:
Hanselminutes Podcast 188: ASP.NET MVC 2 Beta with Phil Haack
ASP.NET:
Hanselminutes Podcast 186: .NET Debugging 101 with Tess Ferrandez
TechNet Edge:
WinRE and free stuff with Sean Kearney
WindowsClient:
XslCompiledTransform and large template elements
WindowsClient:
The Future of Client App Dev : WPF and Silverlight Convergence
Channel 9:
PDC09 GeekFest Party
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
Channel 9:
The Visual Studio Documentary: Jeff Hadfield Full Length Interview
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 9:
The Access Show: Managing Access Databases with SharePoint
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online