See this [How to debug classic ASP pages in VS 2005]
Prosanta Kundu online
Posts
-
Problem with Running Classic ASP page in VS2005 -
How to ignore -ve value while sorting generic list in c#.Write a class that implements
IComparer
.public class myComparer : IComparer
{
public Boolean Descending;
#region IComparer Memberspublic int Compare(object x, object y) { Double obj1 = (Double)x; if (obj1 < 0) obj1 = -(obj1); Double obj2 = (Double)y; if (obj2 < 0) obj2 = -(obj2); if (Descending ) { if (obj1 < obj2 ) return 1; if (obj1 > obj2) return -1; } else { if (obj1 > obj2 ) return 1; if (obj1< obj2) return -1; } return 0; } #endregion
}
Pass a object of your custom class in
ArrayList.sort
methodArrayList arr = new ArrayList();
arr.Add(0.3);
arr.Add(0.2);
arr.Add(-0.3);myComparer objComparer = new myComparer();
objComparer.Descending = true;
arr.Sort(objComparer);modified on Monday, August 30, 2010 5:31 AM
-
alert message box return blank pageI have tried with your code and it is working fine. What exact problem you are facing? Try to put a breakpoint and debug it.
-
How to read package object programatically in MS word 2007 (docx file) using c# -
ie 6/7 div seems to be clearingTry this CSS
.u_right{ float:right; }
.u_left {width:auto;float:left}And HTML
<div id="main_body_holder">
<div id="main_body_left">
<div class="search_pages">
<div class="u_left">
Pages:
<strong>1</strong>
</div><div class="u_right">
<a href="/link">My Things</a><strong>My Stuff</strong>
</div>modified on Monday, August 16, 2010 6:03 AM
-
Purpose of using branding.css? -
SiteMapPath: Don’t show the root level in breadcrumbPlace the following code in Global.asax:
void Application_Start(object sender, EventArgs e)
{
//
// Register a handler for SiteMap.SiteMapResolve events to hide the
// root node from SiteMapPath controls.
//
SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(HideRootNode);
}static SiteMapNode HideRootNode(Object sender, SiteMapResolveEventArgs e)
{
//
// Hide the root node from SiteMapPath controls by cloning the site
// map from the current node up to the node below the root node and
// setting that node's ParentNode property to null.
//
SiteMapNode node = SiteMap.CurrentNode.Clone();
SiteMapNode current = node;
SiteMapNode root = SiteMap.RootNode;if (current != root) // Just in case the current node \*is\* the root node! { while (node.ParentNode != root) { node.ParentNode = node.ParentNode.Clone(); node = node.ParentNode; } node.ParentNode = null; } return current;
}
-
Execute the notepad data using querystring [modified]shailrathore wrote:
I am using querystring to read the notepad data. notepad contains follwing mailto:shail?CC=shail&Subject=test&Body=qtsts
What does it means? You are reading nodepad data in querystring??
shailrathore wrote:
I dont want to use window.open script in notepade file, is there anyway we can open the outlook window using above 'mailto:' data. at the moment it only write the data. http:example.com?name=http:teamspace/sites/notepadefile.txt below is my script
Your question is not clear. If I understand correctly that you wants to read the data from a text file and prepare the mail body, subject etc and send the email. Is it right?
-
some IEEE projects in ASP.NETSee this [Rule 11]
-
Excel Error :(Don't cross post here. If anybody answers your previous question then you will be notified in your registered email.
-
Replace ImagePlaceHolder1 in Word 2007 with the image selected in Combo box in C#.net Windows ApplicationSee the example in VB Code, How to find a imageplaceholder in the document
Selection.GoTo What:=wdGoToGraphic, Which:=wdGoToFirst, Count:=1, Name:=""
Selection.Find.ClearFormatting
With Selection.Find
.Text = "ImagePlaceHolder1"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End WithAlso this [link] might help you.
-
SQL Reporting Services - Print Button not shown in MozillaI am using SQL Reporting services, it's working perfectly and shows a print button in IE, but not shown in Mozilla Firefox
-
Thread from code behind aspxCheck this 1. [Threading in ASP.NET] 2. [Multi-Threading in ASP.NET]
-
How to find all open browsers ?You cannot find all the open browsers using javascript. You can use
Navigator
object for getting information about vistor's browser. Check this [http://www.w3schools.com/js/js_browser.asp]. Provide more information about your requirement. -
listBoxTry this
private void button1_Click(object sender, EventArgs e)
{
//Declare an instance of the open file dialog...
OpenFileDialog dlg = new OpenFileDialog();dlg.ShowDialog(); string fileName = dlg.FileName; lstBxList.Items.Add(fileName); lstBxList.SelectedIndex = -1; lstBxList.SelectedIndex = lstBxList.Items.Count - 1; }
-
Application.Find.Execute() method is giving problem in Windows Server 2003Use late binding for the Find object. See this [http://support.microsoft.com/default.aspx?scid=kb;en-us;313104]
-
Application.Find.Execute() method is giving problem in Windows Server 2003Try this
Word.Find oFind = _aDoc.Application.Selection.Find;
oFind.Execute(ref findText, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing); -
Expan/Collapse Table -
Application.Find.Execute() method is giving problem in Windows Server 2003What exception r u getting? Also format the code using <pre></pre> tag.
-
How i Display FLASH image into Netscap NavigatorCheck this [link]