|
I want to show all the dates of the current week on the page_load event .How can i do this.
Can any one help me.
Regards
|
|
|
|
|
This will give you all the dates in the current week - you will need to adfjust it depending on what your starting day is, this assumes Monday.
DateTime curr;
DateTime start = DateTime.Now.AddDays((int)DateTime.Now.DayOfWeek * -1);
for (int c = 1; c < 8; c++)
{
curr = start.AddDays(c);
}
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Great !!! a Small correction
insted of using
Ashfield wrote: curr = start.AddDays(c);
use
curr =start.AddDays(c).ToShortDateString();
5 from me
cheers,
Abhijit
|
|
|
|
|
Pleased to be of help.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hello,
I am developping a web application in which i need to retrieve attachments from inbox mails.
I am able to connect to exchange server (gmail) and also able to fetch inbox.
But not getting any idea to retrive the the attachment to my .aspx page.
So please help me.
Thanks in adavance.
|
|
|
|
|
Do you have GMAIL Api's for accessing GMAIL mail? you need those api .
cheers,
Abhijit
|
|
|
|
|
Hello Avijeet.
Actualy i am trying to connect to any exchange server.
For example i want to connect to my company webmail.
And to fetch attachments from my inbox mails.
Do u have any sugestion....
thank for answering me.
|
|
|
|
|
subrat4all wrote: Actualy i am trying to connect to any exchange server.
To which exchange server do you want to connect? Exchage server 2003 or 2007.
if your are trying to access Exchange 2007 Server, then you can able to do it easily. becuase Exchange 2007 provide Webservices for same (EWS ) . But its not possible using Exchange 2003, because it does not provide any such API's
Check This[^]
cheers,
Abhijit
|
|
|
|
|
well abhi .....
I want to retrieve the attachment... not to sendmail with attachment.........
So plz share your view.........
|
|
|
|
|
In which form Information passed from one ASP.NET page to another.
|
|
|
|
|
There are many ways to pass information from one page to another page like Querystring,session etc.
What do u exactly want to know?
|
|
|
|
|
Having looked at a couple of your questions here, i'd suggest maybe a book on ASP.net, or some tutorials (see www.asp.net).
This is fairly fundamental stuff, you'll need a decent grounding in it for any ASP.net development.
|
|
|
|
|
I have written the following code on selectionchanged event of calender control.SelectedDatesCollection theDates = Calendar1.SelectedDates;
foreach (DateTime selectedDate in theDates)
txtsun.Text = theDates[0].ToString("MM/dd/yyyy");
txtmon.Text = theDates[1].ToString("MM/dd/yyyy");
txttue.Text = theDates[2].ToString("MM/dd/yyyy");
txtwed.Text = theDates[3].ToString("MM/dd/yyyy");
txtthru.Text = theDates[4].ToString("MM/dd/yyyy");
txtfri.Text = theDates[5].ToString("MM/dd/yyyy");
txtsat.Text = theDates[6].ToString("MM/dd/yyyy");
It is working fine.
But i want the same output on page_load event also.how can i get this. can anyone help me.
|
|
|
|
|
I don't quite understand - you want the values selected by a user in a calendar control, but in the page load event?
|
|
|
|
|
Should be obvious - its for Psychics Anonymous, they did the selection before they went to the web site
Bob
Ashfield Consultants Ltd
|
|
|
|
|
how Find out Serial No of HDD who access my Web Application.I m using System.Management Namespace to Find the Client Mechine.This Application run on when it was running in Visual Studio.net (IDE) Envoirnment but when it was running on web server it is still nothing given to Response.
what is Problem
|
|
|
|
|
A web app cannot access the client in this way, it would be a wonderful way of spreading malware. It will work through the IDE as you are running on your localhost.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
because you cant read HDD Serial no of Client.
cheers,
Abhijit
|
|
|
|
|
and how can read the server HDD Serial
Live each day as though u'll die tommorow
|
|
|
|
|
What is the difference between generic and non generic
|
|
|
|
|
Basicly, generic's are string typed... For example, a generic list (List<<i>type>) is a list of the type type. If you replace type with a datatype (for example a string) List<string> lstMylist = new List<string>(); is a strong typed list of strings.
Previously you would use a ArrayList or a Hastable or something like that which contains objects and not strings (or whatever type you use, which forces you to do a type conversion.
|
|
|
|
|
can we encypt web config file
|
|
|
|
|
You can encrypt parts of the config file, not the entire config file.
See this[^] article for more information
|
|
|
|
|
How browser and server communicate.
Like my question is Browser send request to server through http,but http is stateless.How server knows that a specified page is request.and in which form request goes.
|
|
|
|
|
Hi..
i would like to sort the gridview based on two columns.
after comparing first column, and then compare 2nd column.
Eg.
1.Locator1= Page 10,Locator2= Line 2
2.Locator1=Page 1,Locator2=Line 10
After sorting,
1st col 2nd col
Page 1 Line 10
Page 10 Line 2
Thanks in advance!
|
|
|
|