|
You simply create the DayRender event handler, and do a checking on the rendered date to make it selectable or not.
void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
e.Day.IsSelectable = (e.Day.Date >= DateTime.Now);
}
|
|
|
|
|
I would like to know how to use an ASP.NET 2.0 text box as a password box, much like the windows form textbox's property called password character. I observed that web text box does not have that property.
Can someone please advice me on how to d this?
Live in fragments no longer. Only connect.
|
|
|
|
|
add the TextMode="Password" attribute to the declaration
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Thanks
Live in fragments no longer. Only connect.
|
|
|
|
|
Hi guys,
Howz all doing!!
My problem is my ASP.NET application is loading very slow. When i debuged it, i found its not because of the code it is running slow its after the Load_complete event(which is the last event for any page) it is taking hell lot of time. Can anyone tell me reason behind it or i am missing some attributes to set.
Thanks in advance..
Sheel Gohe
|
|
|
|
|
For the record, LoadComplete is not the last event. Other events such as PreRender and Render occur after this.
How big is your web page? How many child controls are on the page and what is the size of the HTML source once the page has displayed?
Without knowing exactly what you're doing, it is rather difficult to diagnose your problem.
Visit Riverside Internet[^]
|
|
|
|
|
Check that the site isn't compiling all pages every time - usually get a re-compile on a change, but have heard of people ending up with it compiling regardless all the time
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
sir;
i m useing window2000 operating system i m working on an application in .net . when i inserting the values into database the following error message appear "Could not find installable ISAM."
the connection could not open
help me please
Thanks & Regards
Sandeep
-- modified at 9:11 Friday 30th June, 2006
|
|
|
|
|
|
Hi,
I have two dropdownlist.one for state and another for district. according to the selection of state(in the 1st dropdownlist) the districts in the 2nd dropdownlist will be filled. Can any one tell me how can i achieve this with out submiting the page to the server.
Thanks & Regards
Mishra
|
|
|
|
|
Hi,
Use AJAX
Thanks,
Sushant Duggal.
|
|
|
|
|
In ASP.NET 2.0 there is possibility to implement Client Callback, it can comunicate with server without doing postback:
http://www.dotnetjunkies.com/Article/E80EC96F-1C32-4855-85AE-9E30EECF13D7.dcik
http://www.codeproject.com/aspnet/ScriptCallbackFramework.asp
|
|
|
|
|
Hi all,
I am implemeting custom paging in my datagrid.
Normally for inbuild paging we write navigation code
Sub Pageing_Routine(ByVal s As Object, ByVal e As DataGridPageChangedEventArgs)
SearchGrid.CurrentPageIndex = e.NewPageIndex
FillGrid()
End Sub
But as I am using custom paging I have to implement navigation code for navigation.
mycode is...
<asp:linkbutton runat="server" cssclass="pageLinks"
="" id="FirstPage" text="[First Page]" oncommand="NavigationLink_Click" commandname="First">
<asp:linkbutton runat="server" cssclass="pageLinks"
="" id="PreviousPage" text="[Previous Page]" oncommand="NavigationLink_Click" commandname="Prev">
<asp:linkbutton runat="server" cssclass="pageLinks"
="" id="NextPage" text="[Next Page]" oncommand="NavigationLink_Click" commandname="Next">
<asp:linkbutton runat="server" cssclass="pageLinks"
="" id="LastPage" text="[Last Page]" oncommand="NavigationLink_Click" commandname="Last">
<asp:datagrid id="SearchGrid" runat="server" autogeneratecolumns="False" onpageindexchanged="Pageing_Routine" allowpaging="True" pagesize="3" allowcustompaging="true" pagerstyle-visible="false">
..........
Protected Sub NavigationLink_Click(ByVal sender As [Object], ByVal e As CommandEventArgs)
Select Case e.CommandName
Case "First"
_currentPageNumber = 1
Case "Last"
_currentPageNumber = Int32.Parse(TotalPages.Text)
Case "Next"
_currentPageNumber = Int32.Parse(CurrentPage.Text) + 1
Case "Prev"
_currentPageNumber = Int32.Parse(CurrentPage.Text) - 1
End Select
SearchGrid.CurrentPageIndex = _currentPageNumber - 1
txtpagecount.Text = SearchGrid.PageCount (I expect Total Pages count but it is 1 every time)
FillGrid()
End Sub
If Any one knows something,Please share with me
Regards,
Nagraj
-- modified at 8:25 Friday 30th June, 2006
|
|
|
|
|
I know a girl that might be abel to help you
www.datagridgirl.com
Look where you want to go not where you don't want to crash.
Bikers Bible
|
|
|
|
|
hi friends i have one problem in asp.net. i need to send weekly and monthly report to the consultants. is there any special scheduler in asp.net bcaz it should send automatically when system starts. Please help. Its urgent.
Thanks.
Prya
|
|
|
|
|
Hi,
Use javascript timer to get datetime & Ajax callback function to call server side method and send your report to your manager. its simple
|
|
|
|
|
It sounds like you need to create a windows service, or possibly a scheduled job within sql server to run once a month. It doesn't sound like the sort of thing ideally suited to asp.net.
|
|
|
|
|
hi want to use mouseover event on image in datalist. can any body help me.
the code will be helpfull
thanks in advance
aavesh
|
|
|
|
|
aavesh wrote: hi
What a useless subject line. Your subject line should tell people a little about your problem. For example: "MouseOver event on Image"
Then your post should explain your problem more clearly. Your request is vague. You want to use the MouseOver event for what reason? What are you trying to achieve.
|
|
|
|
|
ok i tell u i want to use Mouse over event for the purpose of Imageswapping when i place my mouse over the image then the thumbalimage will display as a large image.i hope u got my problem now and i want to use this in a datalist.
can u help me
|
|
|
|
|
Hi All,
I am having problem regarding paging in datagrid.
datagrid1.items.count will give me total number of items in grid.
But if I am using Paging in grid and I want count total number of items in grid how I can do that.
datagrid1.items.count will provide count for current page only and not for total items in all pages in datagrid.
I hope you will suggest some solution.
Regards,
Nagraj
-- modified at 6:51 Friday 30th June, 2006
|
|
|
|
|
hi
i think u were binding ur Datagrid usng datatable then u can count the number rows in datatable. like
let say
dim dt as datatable
dt.rows.count
will give u the number of rows that will show in datagrid.
i think it will help full for u or u r using some thing else to bind the grid.
thanks
aavesh
|
|
|
|
|
Hi ,
I cant actually understand your problem. You are binding your grid with some table data through dataset.Then you can easily count your total no. of records by a single query or one line of code.
if you are using dataset then put----
DataTable dt=(DataTable) ds.Table[0];
int count;<br />
count=dt.Rows.Count();
Alternatively you can use SQL query or stored procedure for counting total records.
Even if you add or delete records from datagrid then update the dataset.
Why are you using datagrid1.items.count ?
May be I cant understand your problem. If I am wrong then write without hesitation.
Tirthadip
Live life to the fullest
|
|
|
|
|
Hi,
Basically I am using 3 tier arch. In which we are calling function which is in 2 layer.this function returns dataset which is then assigned to datagrid in 1 layer.So I can only return dataset from function and not table item count.
So my question is how I can get no of items from this returned dataset
I hope now I am clear from myside.
Thanks,
|
|
|
|
|
Why can't you just derive the number of rows from the returned dataset?
something like:
ds.Tables(0).Rows.Count
|
|
|
|