I have started my Web developemnt in C# using Orchard CMS recently. I have developed widget(say XYZ) using Orchard..I have a main widget(say ABC) available with a button in it. On click of button i would like to display my newly created widget XYZ. How to use it in cshtml of ABC widget or how to develop tht ?
Tanuja123
Posts
-
How to show widget in button click ? -
How can a display msg file to user in Reply/ReplyAll/Forward mode just like outlook mailitems ?I want to open a msg file from disk and perform a Reply action like normal mailitem and display it to user. Currently i have a datagrid where i show list of msg files .When i right-click on the grid we have context menu for Reply/ReplyAll/Forward option. If a user clicks on any of these action i should be able to open the mailitem in reply/replyall/forward mode. In Outlook when we click reply for a mailitem it displays the mailitem to user...the same way i want the msg file to be opened to user in reply mode. Any help is greatly appreciated ... :)
-
How can i display msg file to user in Reply/Forwrd/ReplyAll mode similar to outlook mailitem ?I want to open a msg file from disk and perform a Reply action like normal mailitem and display it to user. Currently i have a datagrid where i show list of msg files .When i right-click on the grid we have context menu for Reply/ReplyAll/Forward option. If a user clicks on any of these action i should be able to open the mailitem in reply/replyall/forward mode. In Outlook when we click reply for a mailitem it displays the mailitem to user...the same way i want the msg file to be opened to user in reply mode. Any help is greatly appreciated ... :)
-
Convert .msg to image formatI'm developing an application in silverlight. I want to convert files of .msg format to image format like jpeg/jpg in order to be viewable for preview. Is there any best way to do this conversion in seconds. Any good links to start with..
-
Check user permission on drivesI have a file explorer feature for a windows application. I need to show the computer drives that are only permitted to user. By using driveinfo we get all logicaldrives,but how to check whether which drive is permitted for user ? When i run this application in Windows server 2008 i should be able to view only the permitted drives in fileexplorer. Using System.Security.Principal.WindowsIdentity.GetCurrent() i can get the current loggedin user.
-
File not saved using SaveFileDialog in Silverlight 3I tried this option but didn't work for me.One thing i noticed was that the file got created and gets deleted immediately with 0 KB. I even tried uninstalling silverlight runtime and installing but no option. Is it any issue with any vista sp2 patches ?
modified on Wednesday, February 23, 2011 8:26 AM
-
File not saved using SaveFileDialog in Silverlight 3I have a problem of saving files using Save file dialog.I'm using Silverlight 3.Recently I had upgraded my machine to vista sp2.But in that i cannot see any of my files getting saved when i use savefiledialog.It was working earlier before upgrading.This happens only with silverlight application alone. Its an inbrowser application.Can anyone tell me wat cud be the reason.
-
Avoid file deletionHow can i prevent user from deleting a file when the file is under use by another process ? I have an application which creates a directory called (say) "Test" and creates a default "Text.xml" file in it.I dont want user to delete the "Test.xml" when the application is in use. what is the code for it. Currently ,user can delete the file when application is open. Please tell me the code for it...
-
(QTP)Set values to method..in item(i)i have a problem in my scripts of QuickTestProfessional tool. i have an application with design surface.Controls are dragged and dropped above the panel.In the script i iterate thru each and every control placed on panel. How can i get the class type of Control? How will i set values to methods of the control? The script for that is as follows...In 2nd statement i have 4 params to be passed in update property .While execution, control name doesnt change with update property. set myControl=swfwindow("aaa* BT????????????").Swfobject("Panel1").Object.Controls.item(i) myControl.updateproperty "Name",null, "dhdugf","hdsf" set childern1= swfwindow("aaa* BT????????????").Swfobject("PropertyGrid").Object.item Dim nme1 Dim ichild For j= 0 to childern1.count-1 ichild=childern1.item(j).value ichild= "AAAAAAA" nme1 = childern1.item(j).name msgbox nme1 & " :" & childern1.item(j).value Next Any inputs???.....
-
DropDown in propertygridI have a customized propertygrid derived from base propertygrid. Dropdown properties are populated using the following code - objPropertyView.Item.Add(objProperty.Label, _strDefault, _bIsEdit, objProperty.Category, objProperty.Help, true, objProperty.Id, ControlConstants.CONTROL); objPropertyView.Item[objPropertyView.Item.Count - 1].ValueMember = objTable.Columns[ControlConstants.VALUE].ToString(); objPropertyView.Item[objPropertyView.Item.Count - 1].DisplayMember = objTable.Columns[ControlConstants.TEXT].ToString(); objPropertyView.Item[objPropertyView.Item.Count - 1].Datasource = objTable; Now when i press Down key using keyboard for that dropdown ,i am unable to get the next item. Keypress/KeyDown/KeyUp events nor mouse events are raising. How can i move to the next item in dropdown using down /up arrow of keyboard. Any help please..
-
Bubble event in parent controlI am having a ACTBaseControl class derived from System.Windows.Forms.Textbox. ACTMyTextBox derives ACTBaseControl(MultiLevel Inheritance).Instance of ACTMyTextbox is created in designer. But problem is when i resize control using mouse it doesnt work. Overriden method of OnResize is not triggered. But when i enter values through property grid it triggers.What could be the cause of the event not raising. Any help please....
-
Out of Memory error for IimageWhile testing with my custom control...testers tried to rename an Xml file to Bmp file.In that extreme case , my custom control should not fail. So while fetching such a file my control failed.I can handle it in try -catch block.This i have already done.But is there any coding to restrict such exceptions from occuring ?
-
Out of Memory error for IimageI want to display an image in my custom control.For that i used Image.FromFile(pathofimage)...But this statement gave an out of memory error. This happened when i changed an xml file to format 'bmp' and loaded that image.When i saw the file it had a red crossed symbol. How can i check whether an image file is a valid image file or not?..Please help....
-
Change controli have a problem... How can i replace a control present in a container with another control in ComponentAdding/ComponentAdded event? This is required in UndoRedo Operation.I have the undone object with me.On redo an empty control is created with private variables as null.It is a custom control & i am having to reassign all the properties as the undo engine doesnt return the object that was previously removed. Please suggest a way to get back the Undone control and paste it on the Designer Surface.
-
Loading comboboxI have 2 comboboxes :- DataType & DataFormat In DataType if i select any type say Time/Date/IPAddress/ID i should be able to load dynamic values to DataFormat based on selected DataType. Ex:1)DataType ->Date DataFormat->(A)hh/mm ,(B)hh/mm/yyyy ,(C)mm/dd/yyyy . 2)DataType ->IPAddress DataFormat ->127.000.000.000, 127.0.0.0 For DataFormat i am using a single StringConverter class.The problem here is am able to load values but always the 1st value gets replaced with selected value.What could be the reason?... Say,i have date- hh/mm/yyyy format selected.then i change datatype as IPAddress- 127.0.0.0 .Next i come back and select date again ,at that time 1st value displayed in combobox is the selected value- hh/mm/yyyy instead of hh/mm.Now the DataFormat combobox displays duplicate values as :- (A)hh/mm/yyyy ,(B)hh/mm/yyyy ,(C)mm/dd/yyyy . Please help me...
-
Hide NameI am creating custom control.I am hiding all base class properties and displaying only custom properties.But one property ->"(Name)" under design category is getting displayed . Design category has 2 properties :(Name) & Locked I am able to hide "Locked" property but not "(Name)" property.By hiding Name property it doesnt work. CAn anyone suggest the solution...
-
Raise mouse eventsI have a problem.i cant raise any mouse events in my design surface.I tried with delegates but no use...Is there any way to raise events explicitly...like using interfaces Ex :IComponentChangeService etc....
-
Images + PropertygridI want to display 3 images in a single row of propertygrid. Ex: Fruit - > |Image1 |Image2 |Image3 | Hw can i display like that..
-
Get updated location for ControlI am having a tabcontrol.Tab pages are added to it dynamically.Tab pages are type of "Form". On that form i am dragging a control.On the drag over event i get the e.X & e.Y position (screen coordinates).When i convert to Client coordinates i dont get the exact dropped location for control. Like 1 big rectangle(tab page) with embedded small rectangle(Form).When control is dragged in small rectangle(Form) i dont get exact location.When i drag control to 0,0 position of small rectangle(Form) i get some other value(42,136). Can anyone help me.Thanks in advance.
-
pass dropdown with 2 valuesUsing typeconverter i am having a dropdown.i want to pass Displayvalue for a dropdown as string value and its id as int value. E.g :- I have a dropdown called Fruit with 3 values(AAA,BBB,CCC). if i select AAA i want to pass value 0,if BBB value 1 etc.. All values are retrieved from XML file.Also no hardcoding is allowed . On propertyvalue changed event i get only display value (AAA,BBB,CCC) not id(0,1,2)...Tell me a solution to it.