Adding a value to the QueryString when "Insert Hyperlink" is called

Last post 06-12-2008, 11:03 AM by Adam. 9 replies.
Sort Posts: Previous Next
  •  08-11-2006, 4:55 PM 21753

    Adding a value to the QueryString when "Insert Hyperlink" is called

    I am adding server script to the tag_a.ascx control, and I need to be able to access an id. 
     
    Is there a way I can add a value to the querystring when the "Insert Hyperlink" button is clicked?
     
    Thanks,
     
    Mike
     
  •  08-11-2006, 5:10 PM 21754 in reply to 21753

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    Mike,
     
    Please open the tag.aspx file.
     
    And append your querystring to the following cod:
     
    <%
       string FrameSrc="Tag.Frame.Aspx?"+Request.ServerVariables["QUERY_STRING"];
    %>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-14-2006, 1:53 PM 21798 in reply to 21754

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    Thanks Adam.  But I think I need to go back one step farther. 
    It looks like tag.aspx is called when the "Insert Hyperlink" button () is click.  I need to add to the querystring coming into the tag.aspx page which in turn will pass it to theTag.Frame.Aspx page.
     
    How would I do this??
     
    Mike
     
     
     
     
     
  •  08-14-2006, 5:41 PM 21801 in reply to 21798

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    Mike,
     
    You have to put your string into tag.aspx file.
     
    Try something like:
     
    <%
       string FrameSrc="Tag.Frame.Aspx?"+Request.ServerVariables["QUERY_STRING"]+"&myString=123456";
    %>
     
    >>I need to add to the querystring coming into the tag.aspx page
     
    No, it's not possible. The querystring coming into the tag.aspx page is dynamically created by the editor.
     
    Can you explain the whole situation: why do you want to use this method?
     
    Maybe I can find a work-around for you.
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-15-2006, 10:32 AM 21811 in reply to 21801

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    We have a asp.net application that allows our users to create their own website.  One of the requirements is that the users should be able to add a hyperlink to a page within their own website.
     
    I modified the tag_a.ascx to display the pages in the user's website.  I made this work much like how "Select a named anchor in the current page" works.  This is what I have so far (you will notice that I also did other modifications to this control to simplify this dialog)... 
     
     
    Right now, I am hard coding the user's website id into the querystring on the tag.aspx page,
    string FrameSrc="Tag.Frame.Aspx?"+Request.ServerVariables["QUERY_STRING"] + "&id=1076";
     
    And on the tag_a.ascx page, I am getting this id from the querystring,
    int id = Convert.ToInt32(Context.Request.QueryString["id"]);
     
    And then calling one our business objects to get the list of pages. 
     
    So, my issue is, how do I get the id from the page that has the cute editor to the tag_a.ascx page?  I was hoping to be able to add it to the querystring.  Is there another way within Cute Editor??
     
    If I can't customize Cute Editor to do this, then I suppose I could use a different technique such as create a session variable.
     
    What do you think?
     
    Thanks,
     
    Mike
     
     
     
  •  08-18-2006, 2:58 PM 21985 in reply to 21753

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    MichaelPhillips:
     
    Is there a way I can add a value to the querystring when the "Insert Hyperlink" button is clicked?
     
    Thanks,
     
    Mike
     
     
    Mike,
     
    Yes,  please use the Editor. DNN_Arg to pass the querystring.
     
    Example:

    Editor1.DNN_Arg="querystringID=123";
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-12-2008, 4:12 AM 41346 in reply to 21985

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    How i can get the value of this querystring on tag.aspx page?
    I have tried Request.QueryString[querystringID], but its not working.
     
    Adam:
    MichaelPhillips:
     
    Is there a way I can add a value to the querystring when the "Insert Hyperlink" button is clicked?
     
    Thanks,
     
    Mike
     
     
    Mike,
     
    Yes,  please use the Editor. DNN_Arg to pass the querystring.
     
    Example:

    Editor1.DNN_Arg="querystringID=123";
     
  •  06-12-2008, 4:13 AM 41347 in reply to 21985

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    How i can get the value of this querystring on tag.aspx page?
    I have tried Request.QueryString[querystringID], but its not working.
     
    Adam:
    MichaelPhillips:
     
    Is there a way I can add a value to the querystring when the "Insert Hyperlink" button is clicked?
     
    Thanks,
     
    Mike
     
     
    Mike,
     
    Yes,  please use the Editor. DNN_Arg to pass the querystring.
     
    Example:

    Editor1.DNN_Arg="querystringID=123";
     
  •  06-12-2008, 4:13 AM 41348 in reply to 21985

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    How i can get the value of this querystring on tag.aspx page?
    I have tried Request.QueryString[querystringID], but its not working.
     
    Adam:
    MichaelPhillips:
     
    Is there a way I can add a value to the querystring when the "Insert Hyperlink" button is clicked?
     
    Thanks,
     
    Mike
     
     
    Mike,
     
    Yes,  please use the Editor. DNN_Arg to pass the querystring.
     
    Example:

    Editor1.DNN_Arg="querystringID=123";
     
  •  06-12-2008, 11:03 AM 41367 in reply to 41348

    Re: Adding a value to the QueryString when "Insert Hyperlink" is called

    mtrvikas:
    How i can get the value of this querystring on tag.aspx page?
    I have tried Request.QueryString[querystringID], but its not working.
     
    Adam:
    MichaelPhillips:
     
    Is there a way I can add a value to the querystring when the "Insert Hyperlink" button is clicked?
     
    Thanks,
     
    Mike
     
     
    Mike,
     
    Yes,  please use the Editor. DNN_Arg to pass the querystring.
     
    Example:

    Editor1.DNN_Arg="querystringID=123";
     
     
    Try:
     
    Request.ServerVariables["QUERY_STRING"]

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML