Displaying Images dynamically
-
Hi, How to display images dynamically? am displaying Radio buttons dynamically.My requirement is beside each radio button I want to show image. Am reading data from Xml file and make it in Dataset then using DataView am reading one by one. pls see the code what I have written: DataSet dsPaymentMethod = new DataSet(); dsPaymentMethod.ReadXml(strFilePath); DataView dvForDisplay = dsPaymentMethods.Tables[0].DefaultView; for (int i = 0; i < dvForDisplay.Count; i++) { rdb = new HtmlInputRadioButton(); img = new Bitmap(5, 5); rdb.ID = dvForDisplay[i]["RadioButtonId"].ToString(); rdb.Value = dvForDisplay[i]["PaymentGateway"].ToString(); img = System.Drawing.Image.FromFile(@"D:\VSSNew\SourceCode\Telefonica.MSNOut\Telefonica.MSNOut.UI\images\logos\cards\visa.gif"); panelInternational.Controls.Add(rdb); } I have written above code. but it only showing Radio buttons not images. How can I display images? Is there any server side contorl equal to this html
; Thanks
-
Hi, How to display images dynamically? am displaying Radio buttons dynamically.My requirement is beside each radio button I want to show image. Am reading data from Xml file and make it in Dataset then using DataView am reading one by one. pls see the code what I have written: DataSet dsPaymentMethod = new DataSet(); dsPaymentMethod.ReadXml(strFilePath); DataView dvForDisplay = dsPaymentMethods.Tables[0].DefaultView; for (int i = 0; i < dvForDisplay.Count; i++) { rdb = new HtmlInputRadioButton(); img = new Bitmap(5, 5); rdb.ID = dvForDisplay[i]["RadioButtonId"].ToString(); rdb.Value = dvForDisplay[i]["PaymentGateway"].ToString(); img = System.Drawing.Image.FromFile(@"D:\VSSNew\SourceCode\Telefonica.MSNOut\Telefonica.MSNOut.UI\images\logos\cards\visa.gif"); panelInternational.Controls.Add(rdb); } I have written above code. but it only showing Radio buttons not images. How can I display images? Is there any server side contorl equal to this html
; Thanks
-
Hi, How to display images dynamically? am displaying Radio buttons dynamically.My requirement is beside each radio button I want to show image. Am reading data from Xml file and make it in Dataset then using DataView am reading one by one. pls see the code what I have written: DataSet dsPaymentMethod = new DataSet(); dsPaymentMethod.ReadXml(strFilePath); DataView dvForDisplay = dsPaymentMethods.Tables[0].DefaultView; for (int i = 0; i < dvForDisplay.Count; i++) { rdb = new HtmlInputRadioButton(); img = new Bitmap(5, 5); rdb.ID = dvForDisplay[i]["RadioButtonId"].ToString(); rdb.Value = dvForDisplay[i]["PaymentGateway"].ToString(); img = System.Drawing.Image.FromFile(@"D:\VSSNew\SourceCode\Telefonica.MSNOut\Telefonica.MSNOut.UI\images\logos\cards\visa.gif"); panelInternational.Controls.Add(rdb); } I have written above code. but it only showing Radio buttons not images. How can I display images? Is there any server side contorl equal to this html
; Thanks