Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Add query string to the ImageGen.aspx (Read 14716 times)
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Add query string to the ImageGen.aspx
Feb 14th, 2011 at 9:16am
Print Post  
This is the link which generated by the digram control

ImageGen.aspx?type=image/jpeg&dataId=_mfusion_cwc_ctr16457_LinkedinObject_diagra
mView_Image_634332823098376235_0_0"


I need to add a querystring with this link every time
How could I

like

ImageGen.aspx?QS=123456789&type=image
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: Add query string to the ImageGen.aspx
Reply #1 - Feb 14th, 2011 at 10:31am
Print Post  
on this event

  Public Sub OnBeginRequest(ByVal s As Object, ByVal e As EventArgs)


Actually it is calling this page
/MySite/imagegen.aspx

I need to pass some querystring with this link so how I do this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add query string to the ImageGen.aspx
Reply #2 - Feb 14th, 2011 at 11:57am
Print Post  
It's not possible at this time. We can add some property for custom query strings to the v4 release.
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: Add query string to the ImageGen.aspx
Reply #3 - Feb 15th, 2011 at 7:47am
Print Post  
When V4 will be released?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add query string to the ImageGen.aspx
Reply #4 - Feb 15th, 2011 at 8:10am
Print Post  
In a few days.
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: Add query string to the ImageGen.aspx
Reply #5 - Feb 15th, 2011 at 2:19pm
Print Post  
good

another question please

I made a workaround now and my system is working but the all node invisible
drawing code is working but i could not see any thing
did i miss something
be aware that the page in another folder
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: Add query string to the ImageGen.aspx
Reply #6 - Feb 15th, 2011 at 2:28pm
Print Post  
This is the HTML source


<table style="width: 352px">
       <tr>
           <td style="height: 428px">
               <div tabindex="0" id="cwc_ctr16457_LinkedinObject_diagramView" style="height:407px;width:908px;overflow:auto;">
<table cellpadding='0' cellspacing='0' width='513px' height='518px' cols='1px'><tbody>
<tr height='0px'><MAP NAME='_mfusion_cwc_ctr16457_LinkedinObject_diagramView_ImageMap_0_0'>
<AREA SHAPE='POLY' COORDS='292,292,341,348,336,353,286,296'
TITLE="" ID="_mfusion_cwc_ctr16457_LinkedinObject_diagramView_ImageMap_0_0_80" href="javascript:document.getElementById('_mfusion_cwc_ctr16457_LinkedinObject_d
iagramView_ClickedItem').value = '80:-1:-1:-1';__doPostBack('cwc$ctr16457$LinkedinObject$diagramView','_mfusion_c
wc_ctr16457_LinkedinObject_diagramView_ClickedItem');">
<AREA SHAPE='POLY' COORDS='386,372,383,383,377,392,368,398,357,400,346,398,337,392,331,383,329,372,
331,361,337,352,346,346,357,343,368,346,377,352,383,361,386,372'
TITLE="" ID="_mfusion_cwc_ctr16457_LinkedinObject_diagramView_ImageMap_0_0_79" href="javascript:document.getElementById('_mfusion_cwc_ctr16457_LinkedinObject_d
iagramView_ClickedItem').value = '79:-1:-1:-1';__doPostBack('cwc$ctr16457$LinkedinObject$diagramView','_mfusion_c
wc_ctr16457_LinkedinObject_diagramView_ClickedItem');">
<AREA SHAPE='POLY' COORDS='260,294,260,380,253,380,252,294'
TITLE="" ID="_mfusion_cwc_ctr16457_LinkedinObject_diagramView_ImageMap_0_0_78" href="javascript:document.getElementById('_mfusion_cwc_ctr16457_LinkedinObject_d
iagramView_ClickedItem').value = '78:-1:-1:-1';__doPostBack('cwc$ctr16457$LinkedinObject$diagramView','_mfusion_c
wc_ctr16457_LinkedinObject_diagramView_ClickedItem');">
<AREA SHAPE='POLY' COORDS='285,409,283,420,277,429,268,435,257,437,246,435,237,429,231,420,229,409,
231,398,237,389,246,382,257,380,268,382,277,389,283,398,285,409'
TITLE="" ID="_mfusion_cwc_ctr16457_LinkedinObject_diagramView_ImageMap_0_0_77" href="javascript:document.getElementById('_mfusion_cwc_ctr16457_LinkedinObject_d
iagramView_ClickedItem').value = '77:-1:-1:-1';__doPostBack('cwc$ctr16457$LinkedinObject$diagramView','_mfusion_c
wc_ctr16457_LinkedinObject_diagramView_ClickedItem');">
<AREA SHAPE='POLY' COORDS='295,270,410,323,407,330,292,277'
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add query string to the ImageGen.aspx
Reply #7 - Feb 15th, 2011 at 7:43pm
Print Post  
That HTML code does not show the IMG tag generated for the diagram. Does its SRC point to the correct location of ImageGen.aspx?
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: Add query string to the ImageGen.aspx
Reply #8 - Feb 16th, 2011 at 5:20am
Print Post  
. Does its SRC point to the correct location of ImageGen.aspx?

What do mean????
how I change the location of imageGen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add query string to the ImageGen.aspx
Reply #9 - Feb 16th, 2011 at 7:06am
Print Post  
I mean the DiagramView control should generate an <img> element, not shown in the code you pasted above. The "src" attribute of that <img> should refer to ImageGen.aspx as the image source. Does the "src" value correspond to the correct location of ImageGen.aspx on the server? You can change it by setting the ImageLocation property.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: Add query string to the ImageGen.aspx
Reply #10 - Feb 16th, 2011 at 8:06am
Print Post  
it did not work
actually  the diagram in a control page ascx
and it has proxy
the main page has the script manager
did u try this scenario before
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add query string to the ImageGen.aspx
Reply #11 - Feb 16th, 2011 at 8:30am
Print Post  
What do you mean by proxy, are you using the ScriptManagerProxy class? We have tried the scenario with a user control and ImageGen.aspx in the root folder, without a ScriptManagerProxy, it worked fine.
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: Add query string to the ImageGen.aspx
Reply #12 - Feb 16th, 2011 at 8:51am
Print Post  
yes
I am using
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>


  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add query string to the ImageGen.aspx
Reply #13 - Feb 16th, 2011 at 11:11am
Print Post  
Here is our test project showing the DiagramView inside a user control:

https://mindfusion.eu/_samples/UserControlTest.zip

It uses asp:ScriptManagerProxy and the diagram is rendered fine. So if you have problems with RadAjaxManagerProxy, you should contact telerik support for that.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add query string to the ImageGen.aspx
Reply #14 - Feb 16th, 2011 at 11:22am
Print Post  
btw. the diagramview build from the zip file contains ImageGenArguments property that lets you add custom query arguments.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint