Click here to Skip to main content
15,910,234 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: HTML Editor Pin
jayantbramhankar17-Jun-11 3:06
jayantbramhankar17-Jun-11 3:06 
AnswerRe: HTML Editor Pin
Ra-one17-Jun-11 3:15
Ra-one17-Jun-11 3:15 
AnswerRe: HTML Editor Pin
That's Aragon17-Jun-11 3:35
That's Aragon17-Jun-11 3:35 
AnswerRe: HTML Editor Pin
Ali Al Omairi(Abu AlHassan)17-Jun-11 10:42
professionalAli Al Omairi(Abu AlHassan)17-Jun-11 10:42 
GeneralRe: HTML Editor Pin
berba17-Jun-11 21:12
berba17-Jun-11 21:12 
AnswerRe: HTML Editor Pin
Prasanta_Prince19-Jun-11 6:33
Prasanta_Prince19-Jun-11 6:33 
AnswerRe: HTML Editor Pin
Vasudevan Deepak Kumar22-Jun-11 10:43
Vasudevan Deepak Kumar22-Jun-11 10:43 
QuestionJQuery and button click in usercontrol [modified] Pin
V.17-Jun-11 0:08
professionalV.17-Jun-11 0:08 
I have an ImageButton in my usercontrol that will save information to the database when clicked. This works, until I move my usercontrol inside a DIV tag that is handled with JQuery (to show as a dialog). I researched a bunch of information and tried to call the __postback function with the button's id, but whatever I do, the event-handler never gets called when the usercontrol resides in the JQuery's controlled DIV tag.
All the information I read up until now also seemed more like a hacking workaround than a genuine solution.

Did anyone ecounter this problem? What's the solution to this?

thanks.

[EDIT]-----------------------------------------------[/EDIT]
I found something like this:
function btn_save_Click() {
		//__doPostBack('btn_ticketsave', null);
		//		alert("yup");
		try {
			$.ajax({
				type: 'POST',
				url: '~/TravelTicket.ascx/testMethod',
				data: '{}',
				contentType: 'application/json; charset=utf-8',
				dataType: 'json',
				success: function (result) {
					alert(result);
				}
			});
		}
		catch (ex) {alert(ex);}

	}

when I press the button the btn_save_Click function is called correctly, but the server side code is not fired. (my real function is an eventhandler and has parameters so I expect to have to fill in the data property) There is no exception thrown however when I add the property failed: alert("failed"); that does get called, how can I figure out the error ?I tried jumping in, but that didn't do any good.

Am I even looking in the right direction here?
V.
modified on Friday, June 17, 2011 7:28 AM

AnswerRe: JQuery and button click in usercontrol Pin
Not Active17-Jun-11 2:06
mentorNot Active17-Jun-11 2:06 
GeneralRe: JQuery and button click in usercontrol Pin
V.17-Jun-11 2:09
professionalV.17-Jun-11 2:09 
GeneralRe: JQuery and button click in usercontrol Pin
V.17-Jun-11 3:29
professionalV.17-Jun-11 3:29 
QuestionDAAB and Cryptography Application Blocks Pin
infy_ramu16-Jun-11 22:11
infy_ramu16-Jun-11 22:11 
AnswerRe: DAAB and Cryptography Application Blocks Pin
Blue_Boy16-Jun-11 22:54
Blue_Boy16-Jun-11 22:54 
GeneralRe: DAAB and Cryptography Application Blocks Pin
infy_ramu17-Jun-11 1:40
infy_ramu17-Jun-11 1:40 
QuestionDeleting Directories with ASP.NET (VB) Pin
Member 408840116-Jun-11 18:47
Member 408840116-Jun-11 18:47 
QuestionASP.NET C#, Pin
meetnneel15-Jun-11 21:36
meetnneel15-Jun-11 21:36 
AnswerRe: ASP.NET C#, Pin
JV999916-Jun-11 2:38
professionalJV999916-Jun-11 2:38 
QuestionJSON Parser for asp.net 2 ? Pin
zeego14-Jun-11 23:02
zeego14-Jun-11 23:02 
AnswerRe: JSON Parser for asp.net 2 ? Pin
Atulkryadav16-Jun-11 7:54
Atulkryadav16-Jun-11 7:54 
GeneralRe: JSON Parser for asp.net 2 ? Pin
tanvon malik17-Jun-11 21:45
tanvon malik17-Jun-11 21:45 
GeneralRe: JSON Parser for asp.net 2 ? Pin
zeego21-Jun-11 19:58
zeego21-Jun-11 19:58 
Questiondynamically build reports during runtime Pin
pzn3xq14-Jun-11 11:32
pzn3xq14-Jun-11 11:32 
AnswerRe: dynamically build reports during runtime Pin
JV999916-Jun-11 2:39
professionalJV999916-Jun-11 2:39 
AnswerRe: dynamically build reports during runtime Pin
Atulkryadav16-Jun-11 7:56
Atulkryadav16-Jun-11 7:56 
Questionaccented characters in email addresses Pin
l a u r e n14-Jun-11 9:02
l a u r e n14-Jun-11 9:02 

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.