|
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
|
|
|
|
|
Hi
Test this:
";
Response.Write(img);
%>]]>
you must replace img tag with this code.
|
|
|
|
|
hello friends
i am working on making Setup in vb.net. So there
i want add one more setup file in .net Setup because
i want when my Setup instal thn it first instal setup which
i add setup in setup application.
how it possible please help me
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Good tongue twister
.....
|
|
|
|
|
What happen man
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
ok..Have u created the setup project? if so right click on the setup project in the solution. In the menu click on View->CustomActions. Now in the Custom Actions window under install tab add the second setup file u wish to add.
.....
|
|
|
|
|
it not working yaar,i have done this.i add second setup file in the install tab but its not working.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
ok..but is the second setup u are adding is created using .NET? then add both .exe and .msi files ...i think it should work then
.....
|
|
|
|