|
Hi,
U will have to take 2 link button or any button and add ur own code navigate between years.Hope I helped u.
|
|
|
|
|
Hi,
Sorry, I cant able get your idea. Can you please explain. Currently I am using Built-in Calendar control in asp.net 1.1 environment. It dont have Year Navigation.
Regards,
Jay
|
|
|
|
|
Add 2 link buttons near the prev month < and other near > as << : last year and >> : next year.On event of that link button u may do something like this:
private void linkbtnNext_Click(object sender, System.EventArgs e)
{
Calendar1.SelectedDate.AddYears(1);
}
|
|
|
|
|
Thanks for your help. I have completed the task
Regards,
Jay
|
|
|
|
|
Its Ok.Hope my suggestion was helpful to u??
|
|
|
|
|
Hi,
Better you Extend the Existing Calender Control as per Your Needs. Because it is having built in Support all you need to add the links for previous year and next year as you want and onclick of that you just add years or reduce years and show the calender accordingly.
|
|
|
|
|
I have a project to deploy. But before deploying i want to convert all the .CS extension files into DLL files Please help!!!!
Regards
|
|
|
|
|
Err, compile the project?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I'm guessing it's an 2.0 website, in which case the solution is not that obvious.
It requires the use of the precompilation tool. Example:
aspnet_compiler -p "sourcedirectory" -v / "targetdirectory"
where the targetdirectory should be an empty or non-existing folder. The command should be run using the Visual Studio Command Prompt, or from the Framework's directory (%WINDIR%\Microsoft.NET\Framework\<version>\).
|
|
|
|
|
Thanks For the reply Yes its an asp 2.0 problem using this i am able to convert it but no dll file is there?
Regards
|
|
|
|
|
I'm not sure what you meant to write, but after the precompilation the dll-s can be located in the bin folder of the target directory.
|
|
|
|
|
Hi All,
I have to make a tree which have more than 150000 nodes in vb.net and my requriement is as
...................
in tree every node will have exactly zero ,one or two child not more than that. when any node comes then it has values.
1. its value
2.its parent value
3.its side (left or right)
means every new node has already decided that where he has to attach in tree and we can't modify it.
so before attaching it in a tree we have to search its parent( every node brings its parent value and its side with us) which can anywhere in tree .
and one thing clear is that in tree there will be no duplicate node and no any node can have more than 2 child.
but make it clear in mind that when any node comes then it has its own value , its parent value and side.
plz solve it ASAP.
thanks in advance...
Shiv
ShiV
shivbahadursahu@gmail.com
|
|
|
|
|
Hi,
Can you please give me the version in which you want to create it i.e asp.net 1.1 or asp.net 2.0.
|
|
|
|
|
Hi,
I have binded my DropDownList dynamically. But I wish to append the text "--Select One---" at the first position, Rest of the values should come from Dynamic DataSet values.
Now, All the values are bind to DDL perfectly. I wish to append the text "--Select One---" at the first position.
How to achieve this DotNet 1.1 version.
In DotNet 2.0, there is a Property called,
ListControl.AppendDataBoundItems to achieve this.
Can anyone help me?
Regards,
Jay
|
|
|
|
|
You can do that like this:
ddl.Items.Insert(0,"-Select One-");
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I am used below code as per your guidance in my Page_Load
ddlDept.Items.Insert(0,"--Select--");
ddlDept.DataSource=deptDS.Tables[0];
ddlDept.DataTextField="DeptName";
ddlDept.DataValueField="DeptCode";
ddlDept.DataBind();
But Not yet get the desired output.
Regards,
Jay
|
|
|
|
|
Hi
After databinding u have to call it.
write like this.
ListItem item=new listitem("--Select One--","0");
DD.items.insert(0,item);
PAthan
|
|
|
|
|
Thanks, It works fine
Regards,
Jay
|
|
|
|
|
Move the Insert statement after the DataBinding like below
ddlDept.DataSource=deptDS.Tables[0];
ddlDept.DataTextField="DeptName";
ddlDept.DataValueField="DeptCode";
ddlDept.DataBind();
ddlDept.Items.Insert(0,"--Select--");
|
|
|
|
|
Thanks, It works fine.
Regards,
Jay
|
|
|
|
|
|
Only thing is that you need to keep that line down...
something like this:
ddlDept.DataSource=deptDS.Tables[0];<br />
ddlDept.DataTextField="DeptName";<br />
ddlDept.DataValueField="DeptCode";<br />
ddlDept.DataBind(); <br />
ddlDept.Items.Insert(0,"--Select--");
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
Thanks Apurva. How are you? Meet you after long time.
Apurva Kaushal wrote: ddlDept.Items.Insert(0,"--Select--");
Actually this code works fine. But incase of this 'ddlDept' has the AutoPostBack property to TRUE and one more DDL is bind to Items based on the SelectedValue of the 'ddlDept', then
ddlDept.SelectedValue
gives me the error? How to overcome this with your code.
Regards,
Jay
|
|
|
|
|
Jay_se wrote: Thanks Apurva. How are you? Meet you after long time.
Always welcome...
Ya I was away for some time from CP.
Jay_se wrote: gives me the error? How to overcome this with your code.
What error?
BTW you can access the value of the selected item like this:
ddlDept.SelectedItem.Value.ToString();
Best Regards,
Apurva Kaushal
|
|
|
|
|
Ohh boy so many replies.. actually i haven't seen them and directly posted the reply....
Anyway its is really nice that there are so many active members there in this forum...
Best Regards,
Apurva Kaushal
|
|
|
|