I want to implement dropdown list in web parts in asp.net 2.0, so that i can implement personalization. there must be Enum to use dropdown list. I have created Enum Dynamically. I already created a Propert of System.object return type. now i want to change its return type as per Enum, i created dynamically. Thats why i need some solution of it. if you have any idea, please let me know. Thanks.
unil Dhiman
Posts
-
change property return type dynamically -
change property return type dynamicallyI have create a property of System.object return type I want to change its Type at runtime according to my need. for example I want to convert it into System.String or System.Enum. is it possible ? Thanks.
-
Error - can not create enum dynamicallyHi Navaneeth Sorry !!! I got busy in an urgent task at that time.
-
Error - can not create enum dynamicallyHi Navaneeth I want to use Enum in Web parts to show DropDown. Web parts use only Enum to bind Dropdown. is there ant other way to solve this problem ? thanks
-
Error - can not create enum dynamicallyHi Michael, Thanks for reply. I tried to Inherite "Enum" class. but it is giving an error message - "cannot derive from special class 'System.Enum'" Please help me how to create Enum Dynamically. Regards, Sdhimann
-
Error - can not create enum dynamicallyHi All, I am trying to create Enum Dynamically. When I try to Save dll It gives me error - "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" I am also writing code snippet :- AppDomain currentDomain = AppDomain.CurrentDomain; AssemblyName aName = new AssemblyName("TempAssembly"); AssemblyBuilder ab = currentDomain.DefineDynamicAssembly(aName, AssemblyBuilderAccess.RunAndSave); ModuleBuilder mb = ab.DefineDynamicModule(aName.Name, aName.Name + ".dll"); EnumBuilder eb = mb.DefineEnum("Elevation", TypeAttributes.Public, typeof(int)); eb.DefineLiteral("Low", 0); eb.DefineLiteral("High", 1); Type finished = eb.CreateType(); ab.Save(aName.Name + ".dll"); I got error at last line. I am working on Vista Premium. I gave permissions to Network Service User but still not solved. Please help me. your help is appreciated. Regards, Sdhimann
-
Error - can not create enum dynamicallyHi All, I am trying to create Enum Dynamically. When I try to Save dll It gives me error - "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" I am also writing code snippet :- AppDomain currentDomain = AppDomain.CurrentDomain; AssemblyName aName = new AssemblyName("TempAssembly"); AssemblyBuilder ab = currentDomain.DefineDynamicAssembly(aName, AssemblyBuilderAccess.RunAndSave); ModuleBuilder mb = ab.DefineDynamicModule(aName.Name, aName.Name + ".dll"); EnumBuilder eb = mb.DefineEnum("Elevation", TypeAttributes.Public, typeof(int)); eb.DefineLiteral("Low", 0); eb.DefineLiteral("High", 1); Type finished = eb.CreateType(); ab.Save(aName.Name + ".dll"); I got error at last line. Please help me. your help is appreciated. Regards, Sunil Dhiman
-
Implement Webpart with Custom Personlization [modified]Hi All, I want to implement Web Part in my Existing Project. We have implemented our own way for User Creation and User Role facility in our project. As you know, To implement web Part We need to use pre-built Tables and Stored Procedures. But We dont want to use all these rather we want to implement Web Part with our existing working functionality. Is there any way to implement Web Part in such a way so that our existing user creation and Role tables do not need to do big changes. Is this possible. your help is appreciated. Thanks. Sdhimann
modified on Thursday, August 20, 2009 1:33 AM
-
use C# DLL in JavascriptHi All, I want to call C# Dll in Javascript. How can I use Method of this DLL using Javascript. Regards Sunil
-
How to call code behind function in JavaScript ?Hi All, I have a button on page. when user click this button it will call a server side function, which check some data in database. then there will be confirmation message like "Record already exist, Do you want to continue?". if user click (OK)Yes then it will process further in database using another server side function. otherwise it will not process further. Please tell me how can I do this using javascript ? I need to show confirmation message. Thanks. Regards, Sunil
-
how to call code behind function in javascript ? [modified]Hi All, I have a button on page. when user click this button it will call a server side function, which check some data in database. then there will be confirmation message like "Record already exist, Do you want to continue?". if user click (OK)Yes then it will process further in database using another server side function. otherwise it will not process further. Please tell me how can I do this using javascript ? I need to show confirmation message. Thanks. Regards, Sunil
modified on Monday, September 8, 2008 4:27 AM
-
How to create menu using CSSHi I want to create menu using CSS. there are four depth level in my menu. Main Menu -> Sub Menu -> 2SubMenu -> 3SubMenu. suppose if there is 10 Items in 2SubMenu then I want to break these into two or three(depends on items count) columns each contains 5 items. for example i want like this - Main SubMenu->AA|DD BB|EE CC|FF HH|JJ UU|YY can any body help me . how to break using CSS. which property in CSS supports such facility. Thanks & Regards, Sunil
-
How to get printed document name using Printer Job Language (PJL) in C#Hi, I need to get printed document name using PJL in C#. I tried USTATUS command , but unable to get document name and computer name. can anybody help me, if anybody has done this before? Thanks. Regards, Sunil.
-
How to develop Application to control Printer in C#Hi, I need to develop an applicaion to control over printer, It should support- Print Test Page Get User name Get IP Address / system name Get Printer status Current Printed page count Toner Status etc. Is this possible to develop this application using Printer Job Language (PJL) ? your quick help is appreciated. Thanks. Sunil
-
how to send PJL command to USB connected printer ?Hi Bert delaVega Thanks for reply Actually this code is to connect LAN printer not for USB connected printer. If you have any Idea about USB connected printer, Please help me. Thanks.
-
how to send PJL command to USB connected printer ?Hi I want to get printer information using PJL(Printer job description language) in c#. can anybody tell me how to send PJL command to USB connected printer in C#? Thanks.
-
[Message Deleted][Message Deleted]
-
how to show sub menu items horizontalthnks Abhijit.
-
text changed eventCalendarExtender has event "OnClientDateSelectionChanged" try using this event.
-
how to show sub menu items horizontalhi Abhijit thanks. i checked this .but not working...