|
Thanks you ring something to me. I still insist on using days. And it can work. Thanks Apurva Kaushal.
lblEndDate.Text = Calendar1.SelectedDate.AddDays(81).ToString("dd MMM yyyy"); // subtract 3 days because I want to end on a friday
Loving Code Project
|
|
|
|
|
if you requirement is not fixed to the number of months(an integer) then your choice is obvious of AddDays.
Best Regards,
Apurva Kaushal
|
|
|
|
|
lblEndDate.Text = Calendar1.SelectedDate.AddMonths(3).ToString("dd MMM yyyy");
Nav.
|
|
|
|
|
Oh my. I suddenly have the solution before you submit the answer.
Thanks Nav for your effort replying.
lblEndDate.Text = Calendar1.SelectedDate.AddDays(81).ToString("dd MMM yyyy"); // subtract mondays,sundays,saturdays
Thanks NAV!!!!!!!!!!!
|
|
|
|
|
Hi all!
Please help! how can I include an aspx file within an aspx file.
I tried using
but there are errors. It is because of this line in second aspx file.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="m_customer.aspx.vb" Inherits="Exe_M_Customer" MasterPageFile="~/Exe/Template.master" %>
i tried to delete this line, and it worked. but when the codes are compiled errors occured.
pls help.
using master pages doesn't seem to help because its concept is the other way around.
i need to do this to shorten the aspx content
for example, I have a multiview control, then I want to put the controls for each view in a separate file for easy maintenance.
That's all. Thanks.
I hope you can help me on this.
|
|
|
|
|
Hi there,
IMO, you just use the user control instead (ascx file)...
<< >>
|
|
|
|
|
doyang wrote: using master pages doesn't seem to help because its concept is the other way around.
Master page provides a common layout to your site by INCLUDING other pages in content areas of the master page. How is this "the other way around"?
only two letters away from being an asset
|
|
|
|
|
Hey people, Could somebody sujest a way to export a set of web pages to excel - a page a sheet. For single page exports i use the ContentType specifications. But im not able to export multiple pages. All pages come into a single sheet.
I tried using Excel object, but as far as i could explore, it lets me to enter values to each cell which is almost impossible to do for a web page which contains data spread across many tables and tds (Un Structured). Moreover it consumes lots of time for execution.
I also tried using OWCs 9.0 and 11.0, but msdn advises not to use it also it demands licensed office versions in client systems, that i cant guarantee.
At last i tried to generate an XML document from the Response (HTML) string, to a XL schema valid xml. But converting tds with attributes to <cell>, really blows me off. Also child Tables are pieces i cant able to find a solution.
Could somebody sujest a way for this problem.
|
|
|
|
|
|
hi ramana,
Thnx, for ur help, but if u go through my post, u can see i have already done this ContentType method, but the problem is it will come as a single sheet, what i need is that each of the page i select should come in different excel sheet, Please see if you could do anything in this regard.
|
|
|
|
|
Is it possible to get the complete path of the file using fileupload control.(path which is written in the textbox of fileupload)
getting file is possible but i am unable to find any property which will give me complete path...
well begun is half done
|
|
|
|
|
Probably filename property of the httppostedfile object returns the complete path of the file on the client computer.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks mate it did work...
Sarbjeet Singh
|
|
|
|
|
always welcome
Best Regards,
Apurva Kaushal
|
|
|
|
|
when i connect to msacces and run the project it's giveing iism error i don't no what this error is.....i'm new to asp.net please help me out
sanjay
|
|
|
|
|
Is your application working fine without the msaccess interaction as it seems to be IIS problem?
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have never heard of an "iism error", nor could I find anything applicable when searching. What is the exact error message that you get?
---
b { font-weight: normal; }
|
|
|
|
|
Actually what i think it would be something related to IIS Manager.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Even if that would be it, that's still way too little information to give any valuable assistance.
---
b { font-weight: normal; }
|
|
|
|
|
Agreed..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi ...
Actually when I try to copy my web site using web site menu and copy web site option in Visual Web Developer Express Edition 2005 I get the error i.e.
"Unable to add folder 'App_Data' to the Web. Server error: 'App_Data' does not refer to a page or folder in this web. It may be a page or folder in subweb, or it could be a badly formed URL."
My web hosting server has already the ASP.NET 2.0 installed.
I will appreciate if you abble to suggest a solution
Abdul Ghaffar
Note: I am using a database that has been developed using SQL Server 2005 Express Edition's .
I am an intermediate in this fantastic filed of science. I want to gain knowledge from profesionals of high caliber & Offcourse I want to share with other.
|
|
|
|
|
Try right clicking on project in Visual Studio and click on Add ASP.NET folders. Select App_Data
Hope it helps you.
- ashish
|
|
|
|
|
Through the system i develop, i need to bind all related data onto the datagrid after getting related search data from previous page from user.
After bind the search result on the datagrid from my MS SQL SERVER 2000 databse, i will keep checking and assiging the sequence number to each row of data from the datagrid.
The sequenced number in format (PB1-000000).
The first 3 character is category group, then the following 6 digit will generate sequencely row by row.
Any idea for me, please?
Thank for response.
|
|
|
|
|
You can use OnItemDataBound event to do the functionality as that event executes for each row of the datagrid.
Best Regards,
Apurva Kaushal
|
|
|
|
|
The case like this.
User can create their CSV data file from their SAP application & SAP server.
For my side, i am developing a system which will let user browse to the CSV data file which user save to their thumb drive, floopy disk even their local pc. when they select their prefer CSV file, user can click on a button to import the CSV data into my database on my SQL server.
Any idea for me to perform this import action including while importing i can checking and filtering out those unnecessary CVS data.
Thank for response!!!
|
|
|
|