|
Hi All.
Hope you would be able to help me, we have a site that has always worked without a hitch, and yesterday all the sites on our webserver went down. When I connected to the server and opened task manager I found the culprit, a process named DLLHosts.exe, so after bouncing the server 50 times, running virus scans and reg checks I finally decided to stop all sites and start them one by one. All started fine except for this one site, the moment it started the server cpu usage shot to 100%, causing all the other sites to time out and not display and the process DLLHosts.exe taking up all the cpu time. If I stop that site every mellowed down and the other sites started responding again and cpu usage dropping to 50%.
As I mentioned the site has been working fine and no updates were made to the site.
Has anyone here experienced something similar or have a possible solution.
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Any messages in eventlog?
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
|
|
|
|
|
Hi all,
I've created an emailer using Server.CreateObject(CDO.Message)
The emailing part is working fine but I'm trying to get it to take an attachment from the users local drive along with it. When I try to upload something it just sends with a "noname" file.
Is it possible? Heres what I'm working with. Help would be great, Thanks.
<![CDATA[<%<br />
Set objMessage = Server.CreateObject("CDO.Message")<br />
objMessage.Subject = Request.form("subject")<br />
objMessage.From = ""<br />
objMessage.To = ""<br />
objMessage.TextBody = ""<br />
objMessage.AddAttachment Request.form("attch")<br />
<br />
<br />
'==This section provides the configuration information for the remote SMTP server.<br />
<smtp details removed><br />
'==End remote SMTP server configuration section==<br />
<br />
objMessage.Send<br />
<br />
%>]]>
|
|
|
|
|
|
For some reason, The flash element on my site is affected when I hover over menu items (animated by DHTML)
The flash element is totally separated from the menu items...I mean, the menu items are not inside the flash element, they are different objects.
The site in question is http://www.namotuislandfiji.com
I believe the problem may lie in the z-indexing of things... but it only goes wonky on Apple/Firfox. Safari is fine, all browsers on PC are fine. Of course my client uses Apple with Firefox.
I have recently put the flash object on a frmaed page to see if it made a difference, but no...
The problem is located towards the bottom area of the flash display when you hover over some of the menu items.
If you have any suggestions, please let me know.
Much appreciated
J-E
|
|
|
|
|
"To get Content above flash you need to set the WMODE parameter of the Flash Object to 'transparent' "
Source: http://www.dreamincode.net/forums/showtopic14969.htm[^]
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
|
|
|
|
|
Hello.
I hope this is the right place to post this kind of question...
I am trying to create a C# client and a PHP server communicating with each other using SOAP. I have written a WSDL file (a type of XML) to describe the SOAP envelope transmitted between the two applications.
My problem is that I need to send to the client an object which contains several strings and another object which contains error and warning messages (3 strings) and I have no idea how to create a type in the WSDL that holds both objects. You probably want to know why I don't merge the two objects... I can't because in some situations the first object can be an array of objects...
Here is the type definition for a simple function (this works):
<xsd:element name="EndAuctionResponseItem">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Status" type="xsd:string"/>
<xsd:element name="Warning" type="xsd:string"/>
<xsd:element name="ErrorMessage" type="xsd:string"/>
<xsd:element name="EndTime" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Here is what I'm trying to obtain:
<xsd:element name="AuctionStatusItem">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Status" type="xsd:string"/>
<xsd:element name="Warning" type="xsd:string"/>
<xsd:element name="Error" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="EndAuctionResponseItem">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Status" type="typens:AuctionStatusItem"/>
<xsd:element name="EndTime" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
It seems that I'm making a mistake by declaring the type of the "Status" field as "AuctionStatusItem"
I will be grateful if anybody can help me. I've been searching for a fix to this problem for days now... I'm a noob at XML's and I don't fully understand the complex type definitions yet...
Thank you,
Michael
|
|
|
|
|
It seems that I can do something like this:
<xsd:element name="EndAuctionResponseItem">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="typens:AuctionStatusItem"/>
<xsd:element name="EndTime" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
This works only if the "EndTime" element is simple type. If I replace it with an array (this is my actual goal), unfortunately, C# won't deserialize it
I even tried to create another element which contains the array and reference it in the "EndAuctionResponseItem" but still no luck. I used MS Soap toolkit 3.0 to look inside the SOAP envelope and everything seems OK... PHP sends the right construct I guess... (a complex array which contains 2 arrays: one composed of the 3 strings from "AuctionStatusItem" and another composed of the "typens:AuctionStatusItem" objects).
Please, somebody help... I'm running out of ideas...
|
|
|
|
|
iam creating a reporting webpage. we have several types of reports like sales , customer,....... if the user selects sales it will redirects to a separate page where they need to enter different parameters using the dropdown,textbox or listbox. for example they have different parameters like product,month,year,location. the user can enter any combinations. like either they select product and location or month and year like any combinations. once they submit the webpage , we have to pass those parameters to the XML and then query the database according to that. hope you've understood my explanation. so for this i just want to know how to send the parameters to the XML and then query the database. Please help me out
|
|
|
|
|
So, you want to know how to build an XML string from parameters that come in, and how to write a database query ? As this is the web development forum, I assume you're not using ASP.NET ( as that has it's own forum ), but then, that means we have no idea what you're using. Can you clarify that you want to know how to create an xml string ( actually, you can do this just by concatenating strings ) and then pass it as a parameter to a stored proc, and what you're using ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Iam using asp.net and C#.net as a backend. We are creating a reporting page in that page, the user will choose the items from the dropdownlists in any combinations of month,year,product,location. once the user selects and submits the form , we have to generate a xml file and pass those parameters to xml and then query the database according to that.do you got any idea to help me out in this?.
Thank you very much for your help
|
|
|
|
|
Can someone help me with how to change gridview column width in asp.net. I am using a session object(datatable) as the datasource to the grid view. I have tried the gridview_databound event to code something like this
grv.cells(0).columnwidth=100
but it did not work
pls help
|
|
|
|
|
you keep a datatable in the session ? Can't you set the width in the aspx ?
BTW, why did you not ask this in the ASP.NET forum, or did you cross post ?
Christian Graus - Microsoft MVP - C++
"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
can any one please How can I retrieve the source code from a site in javascript like source code for www.google.co.uk.
Thanks&&Regards
#sanroop#
|
|
|
|
|
You want to use javascript to get the source for a different site to the one that's running your script ?
Christian Graus - Microsoft MVP - C++
"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,
I have generated text box and radio buttons dynamically for unlimited,but when I wana get the values I`m facing this problem : the textbox is null.
Im using Update panel and here is part of my code to find the control:
for (int i = 1; i < PaxCount; i++)
{
TextBox PaxName = (TextBox)this.FindControl("txbPaxName" + i.ToString());
}
|
|
|
|
|
We have an ASP.NET forum, that's probably the best place to ask. However, if you create them dynamically, if you do it after or during page load, the controls won't ever have viewstate.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
thanks Christian but I think the problem is the input control created doesn`t have run as server.
any idea how add runat server by js!?
|
|
|
|
|
hi all,
can any body tell me how to learn sharepoint . where to start ..
if u have any related material pls forward to me ...
thanks
|
|
|
|
|
|
|
The problem during writing into an existing cookie, after re running my web application
hi to all forums members
can any one tell me what is error in mine code, It create every time a new cookie, but i have to write into existing cookie.
When i close my web application and re running my web application and, adding values into cookies it creates new cookies... why I m unable to understand....
following is my code...
protected void btnAddCokkie_Click(object sender, EventArgs e)
{
CreateAndAddCookiesValue();
}
private void CreateAndAddCookiesValue()
{
//Response.Cookies.Remove("ShowHistoryCookie");
if (Request.Browser.Cookies == true)
{
// Check the cookie Mycookie exist or not
if (Request.Cookies["ShowHistoryCookie"] == null)
{
// If does Mycookie does not exist then create the cookie
HttpCookie aShowHistoryCookie = new HttpCookie("ShowHistoryCookie");
Response.Cookies.Add(aShowHistoryCookie);
// set expires to the datetime maxvalue
Response.Cookies["ShowHistoryCookie"].Expires = DateTime.Now.AddMonths(1);
//Response.Cookies["ShowHistoryCookie"].Expires = DateTime.MaxValue; //DateTime.Now.AddMonths(1)
Response.Cookies["ShowHistoryCookie"]["URL"] += txtUrlLink.Text;
}
//Append UrlLink into existing cookie
else
{
string strCookie = Request.Cookies["ShowHistoryCookie"]["URL"].ToString();
string strCook = strCookie;
strCookie += "|" + txtUrlLink.Text;
char[] splitter = { '|' };
string[] arInfo = new string[10];
arInfo = strCook.Split(splitter);
int count = arInfo.Length;
int intResult=-1;
bool flag = false;
//count to Restrict cookie to Store 10 UrlLink
if (count <10)
{
//check to ensure that no duplicacy in UrlLink of cookies
foreach (string str in arInfo)
{
intResult = str.CompareTo(txtUrlLink.Text);
if (intResult == 0)
{
flag = true;
break;
}
}
if (flag==false)
{
Response.Cookies["ShowHistoryCookie"]["URL"] = strCookie;
}
}
//Sorting cookies to ensure that only ten recents Url link are added only...
else if (count >= 10)
{
foreach (string str in arInfo)
{
intResult = str.CompareTo(txtUrlLink.Text);
if (intResult == 0)
{
flag = true;
break;
}
}
if (flag == false)
{
for (int i = 0; i < 10; i++)
{
//Swaping
if (i + 1 >= 10)
{
arInfo[9] = txtUrlLink.Text;
break;
}
else
{
arInfo[i] = arInfo[i + 1];
}
}
strCookie = arInfo[0] + "|" + arInfo[1] + "|" + arInfo[2] + "|" + arInfo[3] + "|" + arInfo[4] + "|" + arInfo[5] + "|" + arInfo[6] + "|" + arInfo[7] + "|" + arInfo[8] + "|" + arInfo[9];
Response.Cookies["ShowHistoryCookie"]["URL"] = strCookie;
}
}
}
}
else
{
// Else display message that
// the browser does not accept cookies
Response.Write("This Browser does not accept cookies");
}
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
Vishnu Narayan Mishra wrote: Cookies.Remove("ShowHistoryCookie");
One sensible thing to do in situations like this, is to define "ShowHistoryCookie' as a const string, and use that variable everywhere, so you never have to track down a typo anywhere and can easily change the value if you want to.
Christian Graus - Microsoft MVP - C++
"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 could'nt understand your solution, my questions is so simple, can u try to straight answer my question..
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
I'm sorry, I was trying to point out why your code is nasty and hard to read. Your question involved a ton of code, which was hard to read, and no comments on what you see when you debug the code, so I didn't really take the time to try to decipher it.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|