Hi all, need some help here. I've been cracking my skull but I'm new at asp.net. I have a web form for polling (Form1) with radio buttons and a button control. When the user selects an option from the radiobuttons and clicks the button, my desired effect is to open up a new window (Form2) and pass the radiobutton.selecteditem property to the new window. How can I achieve this? I can open a new window by setting the postbackurl property of the button to javascript:var win=window.open("form2.aspx") but I'm not sure how to pass the variable.
Os Sutrisno
Posts
-
Passing variable to a new browser window -
Loading multiple image filesHmm, I'm starting to get this :-D Thanks guys!
-
Loading multiple image filesThanks, array is a great idea! I never thought of that :~ Newbie here X| Regarding PictureBoxes, if I want to load multiple images, I have to use one PictureBox for each correct? Is PictureBox or using Graphics class a better way to approach this?
-
Loading multiple image filesHi all! I'm trying to load several image files into a form. These files may overlap and can be moved by up, down, left and right button controls. How can I achieve this? Do I have to use picture boxes? Can one picture box contain several images? Thanks!;)
-
try catch and return valueI see! Thanks very much Colin! Regards, Os
-
try catch and return valueFor example, if I am retrieving data from a DB and returning the dataset. An exception occurs and no data is retrieved. In this case, should I still return the dataset in the catch block\after finally? My initial thought was that I wouldn't return anything if an exception occurs. :(
-
try catch and return valueI'm writing a function as below: public string returnString() { try { //open connections return var1; } catch (Exception ex) { //write to trace } finally { //close connections } } I'm getting an error that says the function will not return a value in some execution. Where should I return the value? After finally? X|
-
Adding Events to Web User ControlsIt will work for me i suppose. But i've seen a few articles that can do in all within .Net. It just that I don't get it =( I was hoping that someone would be kind enough to guide me. Oh well, back to reading them articles i guess! Thanks!
-
Adding Events to Web User ControlsI have created a user control with an image and a label in it. I want to add an event when the user control is clicked to change the back color of the label (within the user control). How can I achieve this? Thanks! :)
-
Image.FromFile()Find as in when I type Image myPic = new Image. Intellisense doesn't list FromFile as one of the methods. Anyways, I found out what was going on ;P .Net Compact Framework doesn't support Image.FromFile :doh:
-
Image.FromFile()I can't seem to find and use the Image.FromFile method. MSDN states that there is this function available and I have already included: using System.Drawing Can anyone help me please? :sigh:
-
API ProgrammingVery useful site! Thank you! :)
-
API ProgrammingThank you! I have been wondering for the longest time!