|
thanks sam xavier. it help me a lot and this is what i need exactly to me.... but this is via QUERY. And is there any approach towards using in .net 2005? (C#.NET with asp.net)?
|
|
|
|
|
Hi,
I created a web application in ASP.NET 2.0 with just a label and a button. In the button click i've the code:
Label1.Text = Server.MapPath("/mapTest");
I deployed this app in a Windows 2000 Server SP4, and in my Win Xp Pro SP3. The app was deployed in D:\TestFolder\
The Label text in Win XP was:
D:\TestFolder\default.aspx
The Label text in Win 2000 SP4 Server was:
C:\Inetpub\wwwroot\TestFolder\default.aspx
Could anyone please explain why this happens?
Regards,
Blumen
|
|
|
|
|
Blumen wrote: The Label text in Win 2000 SP4 Server was:
C:\Inetpub\wwwroot\TestFolder\default.aspx
in Win 2000, did you deployed in D:\TestFolder or inetpup ?
cheers,
Abhijit
|
|
|
|
|
|
In Win 2000, Virtual Directy - > Right Click on your virtual Directory - > Propertires - > Check Local path in Virtual Directory TAB.
what is that ?
cheers,
Abhijit
|
|
|
|
|
|
In Windows XP pro the site has to be a virtual directory (as the IIS is limited to the default site), but in Windows 2000 server it could be a web site.
Have you deployed it as a site or a virtual directory on Windows 2000 server?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thank you for the reply.
Guffa wrote: In Windows XP pro the site has to be a virtual directory (as the IIS is limited to the default site), but in Windows 2000 server it could be a web site.
I din't understand the above part.
In Windows 2000, I've deployed it as a virtual directory. What would be the difference in deploying as a website?
|
|
|
|
|
when i execute the crystal report the report header section vanishes.at the design time the report header sections are covered by blue lines is there any option to enable or disable the concerned section.
how i can show report header in a crystal report
Thanks in advance
sourav ghosh
|
|
|
|
|
Example, you have report.rpt means.. open report.rpt then right click Insert->section->select report header from left side option then in right side un-check the Suppress (No Drill Down)->ok
Now you can see your report header section..
S.G. SIVA M.C.A.,
+919865943001
|
|
|
|
|
Hi all,
how i can display the multiple records of reserved vehicle in a single row
for suppose if one vehicle is reserved two times in a current date i have to display both records in a single row against vehicle name .
and in a second row i want to display records for second vehicle if it is reseerved iam usiing sql server 2000 as beckend database .
my fileds are Reserve_ID,Vehicle_Name,ReserveStarttime,ReserveEndtime ,purpose .
kindly help me in this regard iam stuck on this .
regards
Rammez
Thanks in advance
|
|
|
|
|
What have you done so far with this?
rameez Raja wrote: display the multiple records of reserved vehicle in a single row
rameez Raja wrote: in a second row i want to display records for second vehicle if it is reseerved
Sounds like you need to read up on master-details type of stuff.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi..
i want to export content of a page in which i also have a datagrid.my code is as follows:-
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=FileName.doc");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.word";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
PrintArea.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End()
file is being saved on desktop but not being opened becoz of proper format...
|
|
|
|
|
Exactly, you can't magically claim it's a Word file, if it isn't. You can send a text file, or you an interop Word to create a Word file to send.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I have created a code to export the report to excel and it works.. but when i use the export property of the crystal report viewer, all file format works except for the excel format and I am receiving this kind of message whenever I tried using export property of the crystal report viewer..
"Error in File rpt017 {4742A80B-0356-499C-9B57-BE59A69BD788}.rpt: Invalid export DLL or export format."
any idea? someone?
yours truly,
hyperalergelo
|
|
|
|
|
anyone?
yours truly,
hyperalergelo
|
|
|
|
|
i have a master page
and i added a new page and i select this master page for it
now i written a java script in the content page
which returns date and display in hiddenfield
for that i written like this
Function RetTime()
{
var a_p = "";
var d = new Date();
var curr_hour = d.getHours();
if (curr_hour < 12)
{
a_p = "AM";
}
else
{
a_p = "PM";
}
if (curr_hour == 0)
{
curr_hour = 12;
}
if (curr_hour > 12)
{
curr_hour = curr_hour - 12;
}
var curr_min = d.getMinutes();
curr_min = curr_min + "";
if (curr_min.length == 1)
{
curr_min = "0" + curr_min;
}
document.write(curr_hour + " : " + curr_min + " " + a_p);
}
but it is not working
plz help me
how can i run this function and display in hiddenfiled
or store the date in a variable of content page
i want to store todays date in database
plz help me
thanks in advance
vijay kumar
|
|
|
|
|
vijaylumar wrote: now i written a java script in the content page
which returns date and display in hiddenfield
That code doesn't even attempt to put the value in a hidden field.
vijaylumar wrote: i want to store todays date in database
Both the server side code and the database itself are capable of producing this value. Did you use this method to specifically get the time used by the client computer?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i used in the javascript like this
document.getElementById("HiddenField1").value =curr_hour + " : " + curr_min + " " + a_p;
but it is not working
i want to display todays date on the page and store it in the database
in database i will store it thru sql date functions
oke its fine
now how to display the date on the page
i used datetime.now()
but it is not working
it showing differnt
i want to display todays date on the page , even the client changes his system date and time , it does not change
plz help me
its urgent
i m searching for it since a week...
thanks in advance
vijay
|
|
|
|
|
vijaylumar wrote: i used in the javascript like this
document.getElementById("HiddenField1").value =curr_hour + " : " + curr_min + " " + a_p;
Use the "View source" function in your browser, and check what the actual id of the element is.
vijaylumar wrote: i used datetime.now()
but it is not working
it showing differnt
What do you mean by "not working"? Different from what?
vijaylumar wrote: i want to display todays date on the page , even the client changes his system date and time , it does not change
I'm not sure, but it sounds like you want to use the time from the server? Why are you then using Javascript to get the time from the client?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
how to get day no from any datetime in sql and asp.net.
like-sun 0,mon 1,...
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Can you explain much more your question?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Is this a SQL question ? Ask it in the SQL forum. DatePart is probably what you want.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hey all. I have an ASP.net website that I would like to publish on a hosting server. But I would also like to be able to modify it directly without too much hassle. The problem right now is that once I publish it I can't directly change the code.
Can this be done? Or is it impossible since ASP.net is precompiled? :/
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
|
|
|
|
|
Which version of Asp.net are you using?
Apurva Kaushal
|
|
|
|