Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Questions on RadioListButtonList, Textbox, and ImageURL

Questions on RadioListButtonList, Textbox, and ImageURL

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Infernojericho
    wrote on last edited by
    #1

    How do you reset the value stored in a RadioListButtonList (I want to it back to the state that the user has choose nothing at all) I tried NameofRadioButtonList.SelectedValue = "", NameofRadioButtonList.SelectedValue = null, they both didn't work. And anyone know how is it possible to align the text in a multilined textbox? And I'd like to know how to enlarge a photo in a ImageURL control. For example, I have shrunk PhotoA displayed on my ImageURL control, and I want the user to be able to click on that and simply show the original size of the PhotoA. So basically all I need to do is to create a hyperlink linking to the name of the photo I am using in the ImageURL. Can it be done? Thanks and a wonderful new year!

    I 1 Reply Last reply
    0
    • I Infernojericho

      How do you reset the value stored in a RadioListButtonList (I want to it back to the state that the user has choose nothing at all) I tried NameofRadioButtonList.SelectedValue = "", NameofRadioButtonList.SelectedValue = null, they both didn't work. And anyone know how is it possible to align the text in a multilined textbox? And I'd like to know how to enlarge a photo in a ImageURL control. For example, I have shrunk PhotoA displayed on my ImageURL control, and I want the user to be able to click on that and simply show the original size of the PhotoA. So basically all I need to do is to create a hyperlink linking to the name of the photo I am using in the ImageURL. Can it be done? Thanks and a wonderful new year!

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      Infernojericho wrote:

      How do you reset the value stored in a RadioListButtonList (I want to it back to the state that the user has choose nothing at all) I tried NameofRadioButtonList.SelectedValue = "", NameofRadioButtonList.SelectedValue = null, they both didn't work.

      Record the selection in the viewstate ViewState"{Selection1"] = bla bla;

      Infernojericho wrote:

      And anyone know how is it possible to align the text in a multilined textbox?

      You cant. Use a RichText box instead and apply formatting. You will have to download. Theres several free one on the web.

      Infernojericho wrote:

      And I'd like to know how to enlarge a photo in a ImageURL control. For example, I have shrunk PhotoA displayed on my ImageURL control, and I want the user to be able to click on that and simply show the original size of the PhotoA. So basically all I need to do is to create a hyperlink linking to the name of the photo I am using in the ImageURL. Can it be done?

      Change the width and height properties 1 line of code equals many bugs. So don't write any!!

      I 1 Reply Last reply
      0
      • I Ista

        Infernojericho wrote:

        How do you reset the value stored in a RadioListButtonList (I want to it back to the state that the user has choose nothing at all) I tried NameofRadioButtonList.SelectedValue = "", NameofRadioButtonList.SelectedValue = null, they both didn't work.

        Record the selection in the viewstate ViewState"{Selection1"] = bla bla;

        Infernojericho wrote:

        And anyone know how is it possible to align the text in a multilined textbox?

        You cant. Use a RichText box instead and apply formatting. You will have to download. Theres several free one on the web.

        Infernojericho wrote:

        And I'd like to know how to enlarge a photo in a ImageURL control. For example, I have shrunk PhotoA displayed on my ImageURL control, and I want the user to be able to click on that and simply show the original size of the PhotoA. So basically all I need to do is to create a hyperlink linking to the name of the photo I am using in the ImageURL. Can it be done?

        Change the width and height properties 1 line of code equals many bugs. So don't write any!!

        I Offline
        I Offline
        Infernojericho
        wrote on last edited by
        #3

        Thanks for the reply, Ista, remember I asked you before on passing Session variables via the URL. I tried your suggestion of xxx.aspx?sessionvar=xxx but it didn't work. I have a adrotator, when the user clicks on the banner it should redirect them to another products page. Therefore the ID of the item must be passed via the URL to the products details page. However I keep getting an error in the products details page that the ID value is Null, which means the value was never passed. For example, I am trying to pass the session variable of "nbid" from Page A to B. This is what I have: http://localhost/EAIProject/catalog/viewnotebook.aspx?nbid=45 What am I missing? Is there anything else I have to do?

        I 1 Reply Last reply
        0
        • I Infernojericho

          Thanks for the reply, Ista, remember I asked you before on passing Session variables via the URL. I tried your suggestion of xxx.aspx?sessionvar=xxx but it didn't work. I have a adrotator, when the user clicks on the banner it should redirect them to another products page. Therefore the ID of the item must be passed via the URL to the products details page. However I keep getting an error in the products details page that the ID value is Null, which means the value was never passed. For example, I am trying to pass the session variable of "nbid" from Page A to B. This is what I have: http://localhost/EAIProject/catalog/viewnotebook.aspx?nbid=45 What am I missing? Is there anything else I have to do?

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          Try this: string nbid = Request.QueryString("nbid"); Use HttpUtility.UrlEncode to build correct UrlPaths 1 line of code equals many bugs. So don't write any!!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups