|
rabia i think you will get better answer if you ask this question in telerik support forum...
Government Dyal Singh College Lahore.
|
|
|
|
|
Thanks for suggestion.
|
|
|
|
|
Actually I want to design menu like..
When we put mouse pointer on that label, list of subcategory is shown.
Just like in this website, put mouse pointer on "Articles" or "Message Boards", without clicking the list is shown.
How to do that??
Plzz reply me..
Thank you......
Regards,
Jay
|
|
|
|
|
This has nothing to do with ASP.NET. It is created with JS. Search for DHTML menu and you will get plenty of samples.
|
|
|
|
|
You can do this using javascript. In image tag use the property onmouseover="javascript:ShowMenu()"
function ShowMenu()
{
var menu = $find("%= mnuName.ClientID %");
if (menu)
{
var item = menu.findItemByText("Ur menu item name");
if (item)
{
item.open();
}
else
{
alert("Item with text '" + item + "' not found.");
}
}
}
|
|
|
|
|
Erm, I beg to differ.
What's wrong with the Menu control in ASP.NET?
Unless he meant he really wanted to design a user control like the menu control, but I don't really see a point in reinventing the wheel.
var question = (_2b || !(_2b));
|
|
|
|
|
I have two treeviews in my page. I want to select multiple nodes on the left hand side of the tree view and add the same to the right hand side. Is it possible to do so in a web page?
This is something like a list of items on the lefthand side listbox, then clicks a button called "Add>>", so it will add to the righthand side of listbox.
Any help in this regard? Please help. any links or code page to this direction would be really great.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
allow checkboxes for the treeview by setting ShowCheckBoxes property to 'All' the and u can select multiple nodes and on click of add button ,take those checked nodes to right.
|
|
|
|
|
Thanks a lot for the idea. let me google it up for the code. If you know any good links explaining this, please forward.
Thanks a lot anyways.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
What would be the best way to accomplish this with ASP.NET 3.5
I would like to do this with CSS.
I got the header to work as I wanted with this css class.
and a div tag
#header
{
border-bottom: 2px solid white;
height: 18%;
}
I would like to do the same thing
only on the left side of the page.. kind of like MSDN...
Any help would be much appreciated.
http://www.w3schools.com/HTML/tryit.asp?filename=tryhtml_frame_cols[^]
Humble Programmer
|
|
|
|
|
Hi
every one i'm in projet with the APS.NET MVC frameWork.
I have a sql data with 3 column : id, title , root
The root colum is a varchar and content a PATH directory like this
../content/S1 which S1 carry up to many html file.
My question is:
how could i display those a link for those files?
it is possible to display it in Placeholder.
Thanks for your help
|
|
|
|
|
taki said wrote: it is possible to display it in Placeholder.
While some ASP.NET WebForm controls are useable in MVC (because they happen not to use much of the infrastructure that MVC doesn't use) you are not encouraged to use them. You should be using HtmlHelpers to write HTML to the view, not using placeholders.
|
|
|
|
|
I have created a custom ControlDesigner where I have a Smart Tag with a few DesignerActionPropertyItems. One of these DesignerActionPropertyItems contains a ListItemCollection. My problem is when I use the Smart Tag to add items to the collection, nothing is added to the collection. On the other hand, when I use the property editor to modify the collection, all is well! Below is the code.
Thanks in advance.
MyControl.cs
[DefaultProperty("Text")]
[ToolboxData("<{0}:MyControlrunat=server></{0}:MyControl>")]
[Designer(typeof(MyControlDesigner),typeof(IDesigner))]
[ParseChildren(ChildrenAsProperties =true)]
public class MyControl: CompositeControl
{
[Bindable(true)]
[Category("Settings: Value")]
[PersistenceMode(PersistenceMode.InnerProperty)]
[EditorAttribute(typeof(ListItemsCollectionEditor), typeof(UITypeEditor))]
[MergableProperty(false)]
public ListItemCollection Items
{
get
{
if (ViewState["Items"] == null)
ViewState["Items"] = new ListItemCollection();
return (ListItemCollection)ViewState["Items"];
}
}
}
MyControlDesigner.cs
public class MyControlDesigner : ControlDesigner
{
public override System.ComponentModel.Design.DesignerActionListCollection ActionLists
{
get
{
DesignerActionListCollection actions = new DesignerActionListCollection();
actions.AddRange(base.ActionLists);
actions.Add(new LabeledControlDesignerActionLists(this));
return actions;
}
}
}
MyControlDesignerActionLists.cs
class MyControlDesignerActionLists: DesignerActionList
{
private MyControlDesigner _designer;
private MyControl _control;
public MyControlDesignerActionLists(MyControlDesigner designer)
: base(designer.Component)
{
this._designer = designer;
this._control = (Mycontrol)this._designer.Component;
}
public override DesignerActionItemCollection GetSortedActionItems()
{
DesignerActionItemCollection actions = new DesignerActionItemCollection();
actions.Add(
new DesignerActionPropertyItem(
"Items",
"Items",
"Control Value Settings",
"Set the value."));
}
return actions;
}
public ListItemCollection Items
{
get
{
return this._control.Items;
}
}
public void SetProperty(string propertyName, object value)
{
PropertyDescriptor property = TypeDescriptor.GetProperties(this.Component)[propertyName];
property.SetValue(this.Component, value);
}
}
|
|
|
|
|
Hi,
I have 25 menu items in a web form. I want to show 25 different gridviews
based on menuitem selected on the same page. e.g if i select menuitem1 it
should show Gridview1 and if I select menuitem2 it should show Gridview2 and
so on. This way I have to show 25 Gridviews. How can I do that.
Thanks
|
|
|
|
|
hahii wrote: I have 25 menu items in a web form. I want to show 25 different gridviews
based on menuitem selected on the same page.
25 Differents gridview does not mean that you need 25 Diff Grid Control . You can simple do it using single grid view. Just one the menu changed, Changed the DataSource of GridControl. You can also generate Column and other stuff runtime.
|
|
|
|
|
Could you please give me some example how can I do that programatically.
thanks
|
|
|
|
|
I would create 1 GridView with AutoGenerateColumns=True. Make sure you can create the dataset with 1 stored procedure with an Int parameter which has the value of the menuItem.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I have created a usercontrol for fileupload server control.
I call the user control to perform the file upload operation.
Once uploaded, how do I get the "destination url" onto a textbox/label on the web page?
Q- Is there a way to access the webpage from the user control's event?
Q- Is there an event in the web page that can run immediately after the upload operation
Thanks,
NetQuestions
|
|
|
|
|
NetQuestions wrote: Q- Is there a way to access the webpage from the user control's event?
That depeneds when you are trying to access the control. Init and Upload Event of User Control fired before the Init event of Page. Its means Initilization of User Control done before the page, so if you want to acess control here you will not able to access. All other operation Event are Top To Bottom, means Page Event fired first then Event of UserControl.
NetQuestions wrote: Q- Is there an event in the web page that can run immediately after the upload operation
Which Event?
|
|
|
|
|
By using the fileupload control, any image can be uploaded and saved at a specific path.
However my concern is that every image is of different dimension.
Is there a utility or a property in the fileupload control that can be used to set a common dimension
for all uploaded images irrespective of the type of image.
Is there a way to dynamically create a thumbview of the image while uploading the image?
Thanks,
NetQuestions
|
|
|
|
|
NetQuestions wrote: Is there a way to dynamically create a thumbview of the image while uploading the image?
Yes. You can create dynamic thumbview of the image while uploading. Search in Codeproject itself, you will find a similar article on this.
Thanks
|
|
|
|
|
please can some body hepl me completing this programm
program 1
create a table in access Student_Information with 2 columns First Name,Last Name,Address
Enter 5 records in this table
Write a Console Application and do the following
a. Read the records from the table
b. write all the records one by one in a file in the following format
Name:First Name Last name,Address:Address
program 2
-create a table in access Student_Information with 2 columns First Name,Last Name,Address
-create a console application
-create a class with following properties Name,Address
-read each row from the table;create an object of Student class for each of the row.
-store the information of this row in the Student class
-Do the XML serialization of each of the object.Note that the file names for each of the serialized object should be generated
uniquely(using any convention)at runtime and should not be hard coded
|
|
|
|
|
sahil darwajkar wrote: Write a Console Application and do the following
This is the ASP forum. Console app question DO NOT belong here.
sahil darwajkar wrote: please can some body hepl me completing this programm
If you have a specific problem, please feel free to ask. We will NOT however do your homework for you.
sahil darwajkar wrote: create a table in access Student_Information with 2 columns First Name,Last Name,Address
That's 3 columns, not 2 ..
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
|
|
|
|
|
So you are here to doing you Home work by Us.
|
|
|
|
|
You're an idiot. You will fail your course, and that's all you deserve. You can't even work out the right place to ask this ? It doesn't matter, we don't do homework for people who don't try to do it themselves, no matter where you ask.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|