|
jesus!
You are angry Dont even think about it.
Now, do you know how to set a schedulere on sql server 2005?
If u have any problem, contact me.
best regard.
|
|
|
|
|
SPWeb curWeb = SPContext.Current.Web;
SPFile file = curWeb.Files.Add(curWeb.Url, ???)
can u explain that what should i put istead of ????
i know that this form: curWeb.Files.Add(string urlOf file,byte[] file)
but i dont know how define byte[] file .
please give me a sample
|
|
|
|
|
Looks like you need the bytes of the file itself to call this method. What does it do ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i create a file with this code:
System.IO.FileStream f = System.IO.File.Create(@"C:/webpart/WritingWebPart/Reservation2/a.htm");
and i want to add it to a url with this code :
SPFile file = curWeb.Files.Add(curWeb.Url, ???);
but i dont know what should i put instead of ????
|
|
|
|
|
The file you created is empty, so just pass an empty byte array, I suppose. What are you trying to do ? You didn't actually answer me, you just restated the question.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i want create a html file for example in this path: http://spserver3:5050/reservation exactly
i can create a file for example in this path: c:/webpart
but i can not create a file in url
|
|
|
|
|
But, you're creating an EMPTY file, then trying to add it, what's the point of that ?
http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spfile.aspx[^]
Looks like the GetFile method is how you create an SPFile from a file on the HDD. Like your empty file.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
no im not create a empty file after create i write inside it htm code with this code:
string old = "html code";
using (System.IO.StreamWriter sw = new System.IO.StreamWriter(@"C:/webpart/WritingWebPart/Reservation2/a.htm"))
{
sw.Write(old);
//sw.Close();
}
|
|
|
|
|
OK, in that case, the method I found by googling for 3 seconds, and mentioned above, is probably what you need.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Good Morning All
I have a ASP Classic Application that Connects to SQL2000,my pages are linked well and the Errors i get from the reported line is strange, because te code is fine. when ever i run the page, i get the Following Problem.
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
--------------------------------------------------------------------------------
Please try the following:
Click the Refresh button, or try again later.
Open the mtiicorys008 home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'ACTIVITY_BASIS_AREAS_WITHOUT_SPATIAL(...)'
/VALUATIONS/Gui/joust/DisplayJoustTreeActivity.asp, line 267
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
Page:
GET /VALUATIONS/Gui/joust/DisplayJoustTreeActivity.asp
Time:
23 April 2008, 08:22:15 AM
More information:
Microsoft Support
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
|
Well all the Suggestions there could not help me ,and i have googled first before i posted here
thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
One of the ways to solve this is to break down your code and debug bit by bit, then you find out which bit of code is causing the error
|
|
|
|
|
This error code (0x800A01A8) conveys it all. The COM object could not be instantiated properly.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
i want create a html file in this path: http://spserver3:5050/reservation
how can i do this????
i wrote this code but its not right.
if (!System.IO.File.Exists(@"C:/webpart/WritingWebPart/Reservation/Reservation/a.htm"))
{
System.IO.FileStream f = System.IO.File.Create(@"C:/webpart/WritingWebPart/Reservation/Reservation/a.htm");
SPFile file = curWeb.Files.Add(curWeb.Url, f);
f.Close();
using (System.IO.StreamWriter sw = new System.IO.StreamWriter(@"C:/webpart/WritingWebPart/Reservation/Reservation/a.htm"))
{
sw.Write(old);
//sw.Close();
}
}
|
|
|
|
|
What's not right ? What does it do ? What did you expect it to do ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi all,
how to freeze the column in listview?
Thanks,
aravindakumar
|
|
|
|
|
What do you mean by freezing the column in listview?
Apurva Kaushal
|
|
|
|
|
In the listvie when you select the particular colume for exe:LEFT hand side of the selected column will REMAIN static and visible.especially when the user scrolls right across the table/row to view columns currently out of view.
Thanks,
aravindakumar
|
|
|
|
|
|
How we convert an xml file into excel sheet using c# with tag name in xml will be the cell name for the excel sheet.Please send some code xeamples to convert an xml into excel.
|
|
|
|
|
This isn't an ASP.NET question. You can look into controling Excel through the Microsoft Tools for Office, from memory. That's the only way you're going to set the cell name, otherwise you could just create a csv file.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How to convert it using csv file.
|
|
|
|
|
If you spit out a csv, excel can just open it. But only one sheet, and you can't name the sheet.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hey y'all,
I am uploading a file to a directory in my root named "Pictures" and it works fine.
I also add a title , url, and name of the picture in a XmlDatasource, and this works fine.
In my masterPage.master file I have;
<div id="image-area">
<a id="linkPart" runat="server" href="http://www.pic_site.com>
<img id="imagePart" runat="server" src="pictures/pic.jpg" alt="Image of the Day" /></a>
<p id="captionPart" runat="server">The rules according to Luna</p>
</div>
And in my masterPage.master.cs code behind file I have;
XmlNode elem = GetRandomPictureNode();
linkPart.HRef = elem.SelectSingleNode("url").InnerText;
str = elem.SelectSingleNode("file").InnerText;
string path = Server.MapPath("~/pictures/");
imagePart.Src = path + str;
captionPart.InnerText = elem.SelectSingleNode("title").InnerText;
The value that gets put into .Src is correct but the image doesn't display I get the alt "Image of the Day" instead?
P.S. The link and title work fine its just the image that doesn't work!
What the heck have I overlooked or don't understand?
Any help appreciated!
Mike
Semper Fi
http://www.hq4thmarinescomm.com[^]
My Site
modified on Wednesday, April 23, 2008 9:19 AM
|
|
|
|