Click here to Skip to main content
15,888,003 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to open a word doc in firefox in a write mode using asp.net Pin
G Nathan8-Jul-09 19:10
G Nathan8-Jul-09 19:10 
AnswerRe: How to open a word doc in firefox in a write mode using asp.net Pin
PJWindsor8-Jul-09 22:39
PJWindsor8-Jul-09 22:39 
QuestionSome Basic ASP .Net Security Questions Pin
swjam8-Jul-09 18:20
swjam8-Jul-09 18:20 
QuestionCrystal Reports 2008 (12) Error when running on server Pin
Battlehammer8-Jul-09 7:32
Battlehammer8-Jul-09 7:32 
AnswerRe: Crystal Reports 2008 (12) Error when running on server Pin
Battlehammer8-Jul-09 8:06
Battlehammer8-Jul-09 8:06 
GeneralRe: Crystal Reports 2008 (12) Error when running on server Pin
Abhijit Jana8-Jul-09 8:53
professionalAbhijit Jana8-Jul-09 8:53 
GeneralRe: Crystal Reports 2008 (12) Error when running on server Pin
Battlehammer8-Jul-09 9:48
Battlehammer8-Jul-09 9:48 
QuestionASP.net Ajax Server Control Pin
PJWindsor8-Jul-09 4:04
PJWindsor8-Jul-09 4:04 
Hi all,

I have a composite ASP.NET server control includes a HTML button that shows a div which allows searching capacities, the Search capacities are implimented using AJAX, im inheriting from WebControl and impliementing INamingContainer and ICallbackEventHandler.

The Control that works fine if you have just one control on the an ASP.NET page.

If you add further controls onto the page the first control still works fully but all contols after that allow the show/hide behaviour but the Ajax bits dont work. There are no errors, the data area just stays blank.

I think i have a problem with the way im registering the callback function. this is the code im using which is in the overridded OnPreRender Method of the Server Control.
string sref = Page.ClientScript.GetCallbackEventReference(this, "arg", "display","", true);

string Callback = "function GetData(arg, context){" + sref + ";}";

Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "CallBack", Callback, true);

This outputs the following section of html
<script type="text/javascript">
//<![CDATA[
function GetData(arg, context){WebForm_DoCallback('LookupBox23123',arg,display,"",null,true);}//]]>
</script>

As you can see the first parameter of the callback contains the ID of the first control added (I know the ID is abit weird). I Think that is why the first control continues to work with Ajax but the rest don't.

Is there a way i can pass in the control name to the callback method so i can use multiple controls, or can i amend the script Reference to allow this functionality.

Many thanks Phil
AnswerRe: ASP.net Ajax Server Control Pin
PJWindsor8-Jul-09 5:59
PJWindsor8-Jul-09 5:59 
QuestionNeed to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 3:41
professionalAntone Eason8-Jul-09 3:41 
AnswerIgnore repost [modified] Pin
Manas Bhardwaj8-Jul-09 4:02
professionalManas Bhardwaj8-Jul-09 4:02 
GeneralRe: Ignore report Pin
Antone Eason8-Jul-09 4:07
professionalAntone Eason8-Jul-09 4:07 
GeneralRe: Ignore report Pin
N a v a n e e t h8-Jul-09 4:45
N a v a n e e t h8-Jul-09 4:45 
GeneralRe: Ignore report Pin
Antone Eason8-Jul-09 4:52
professionalAntone Eason8-Jul-09 4:52 
GeneralRe: Ignore report Pin
N a v a n e e t h8-Jul-09 17:21
N a v a n e e t h8-Jul-09 17:21 
GeneralRe: Ignore report Pin
Antone Eason8-Jul-09 18:46
professionalAntone Eason8-Jul-09 18:46 
GeneralRe: Ignore report Pin
Antone Eason8-Jul-09 9:44
professionalAntone Eason8-Jul-09 9:44 
AnswerRe: Need to capture data of currently displayed webpage Pin
PJWindsor8-Jul-09 4:17
PJWindsor8-Jul-09 4:17 
GeneralRe: Need to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 4:27
professionalAntone Eason8-Jul-09 4:27 
GeneralRe: Need to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 4:32
professionalAntone Eason8-Jul-09 4:32 
GeneralRe: Need to capture data of currently displayed webpage Pin
PJWindsor8-Jul-09 5:03
PJWindsor8-Jul-09 5:03 
GeneralRe: Need to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 5:10
professionalAntone Eason8-Jul-09 5:10 
GeneralRe: Need to capture data of currently displayed webpage Pin
PJWindsor8-Jul-09 5:20
PJWindsor8-Jul-09 5:20 
GeneralRe: Need to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 9:39
professionalAntone Eason8-Jul-09 9:39 
GeneralRe: Need to capture data of currently displayed webpage Pin
PJWindsor8-Jul-09 5:47
PJWindsor8-Jul-09 5:47 

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.