Problem when displaying pop up window Hi all, I am

September 3, 2010 – 7:00 pm

Problem when displaying pop up window
Hi all, I am working on a project in which when I clicked a hyperlink a pop up window has to be displayed for 2 pages. But at first when i did this in javascript it worked, later after i finished the whole coding suddenly an error box displayed that there is an error in webpage and want to…

Oracle Sues Google Over Java Use in Android OS
Attachment 16645 (http://www.daniweb.com/forums/attachment.php?attachmentid=16645)Oracle announced Thursday evening (August 12) that they would be filing a lawsuit against Google, claiming that their Android phone software infringes upon patents and copyrights of their Java software, which they…

how to show the current date and time in my database tables
Hi, I have a problem. i want to show the *current date and time* in my tables of the database. I want to show it because i want to show it on my report generated in php. By the way i *do not* have a “date” field in my form. Can anyone help me out? Thanks, Heshan.

Images I have a images in my local pc. That

September 3, 2010 – 11:00 am

Images
I have a images in my local pc. That is located in “D:\projects\abc\systemimages\123.jpg” Now i upload image in my template from above location.So it should be shown in my thank u template but when i sent mail with thank you template to another person he/she can’t see this images. …

TestDriven.Net 2.22: Support for Visual Studio 2010 Beta 1

I ve just uploaded a new version of TestDriven.Net (2.22 RTM) which is compatible with Visual Studio 2010 Beta 1.

Unfortunately this support is somewhat limited because command bar extensibility has been disabled in VS 2010 Beta 1. All is not lost however because the commands still work when executed using a shortcut key. This is how many power users invoke TestDriven.Net already and can make for even less friction when executing your tests.

To enable support for VS 2010 Beta1 you will need to select Complete when installing TestDriven.Net. (Support for VS 2010 currently disabled when doing a Typical install.)

setup

You can use the Environment > Keyboard pane on the Options dialog to assign new shortcut keys. To list all of TestDriven.Net s commands, simply: Show commands containing: testdriven .

You will probably want to assign shortcuts for the following commands:

TestDriven.NET.RunTests: Run Test(s)
TestDriven.NET.Debugger: Test With > Debugger
TestDriven.NET.RerunTests: Repeat Test Run
TestDriven.NET.Reflector: Go To Reflector
TestDriven.NET.ApplicationNUnit25: Test With > NUnit 2.5 (start the NUnit GUI)

shortcut

Alternatively I ve created a .vssettings file you can import using Tools > Import and Export Settings .

The keyboard assignments are as follows:

Alt+T: Run Test(s)
Alt+R: Repeat Test Run
Alt+D: Test With Debugger
Alt+E: Go To Reflector
Alt+N: Launch NUnit 2.5
Alt+V: Test Inside VS
Alt+B: Build Current Project

Once imported I m using Alt+T to execute an Ad hoc test from inside the go method.

test1 

You can download TestDriven.Net 2.22 RTM from here.

embed an html login form in .NET
I’m trying to embed the login form for the webmail for a customer portal I’m developing, I’ve tried copying all the html and putting it inside my .NET page but instead of using the form action that I have in the form tag it simply re-posts the current .aspx page that I’m in. Am I missing something…

Quick question about form input? Hey, just a quick question

September 3, 2010 – 4:00 am

Quick question about form input?
Hey, just a quick question about the following code:


Call of Duty: Black Ops Ups the Ante With Wager Mode; Reveals New Perks, Killstreaks
After Call of Duty: Modern Warfare 2 set the bar as to what the franchise could achieve, nobody envied the shoes that Treyarch had been asked to fill with producing the next installment. Their previous involvement and lackluster contributions to the franchise were what Aquaman brought to the table…

Hearst Launches App Lab ‘Think Tank’ Attachment 16791 (http://www.daniweb.com/forums/attachment.php?attachmentid=16791)Looking to

September 2, 2010 – 10:00 pm

Hearst Launches App Lab ‘Think Tank’
Attachment 16791 (http://www.daniweb.com/forums/attachment.php?attachmentid=16791)Looking to build on the success of efforts like Cosmopolitan’s Sex Position of the Day app (http://www.daniweb.com/news/story305712.html), Hearst has launched what could be the world’s first “app think tank” - or at…

Product Review - SocialBot V4.3 Backlinks are important for a

September 2, 2010 – 4:00 pm

Product Review - SocialBot V4.3
Backlinks are important for a website to rank well in search engines and for this purpose you need the required tool. In this review, Anand examines the features and usage of SocialBot. This tool automatically submits links to various social media sites, including several other bookmarking websites. This generates quality backlinks to your website.
Anand Narayanaswamy

TextBox value not getting updated in Ajax PageMethod OnSuccess function.
I have used Ajax Page Method to call a server side Method for verifying value in textbox.Here is my Code Javascript Code :- function VerifyValue() { var txtCtrl= document.getElementById(’<%= txtCode.ClientID %>‘); …

Which test runner are you using ?

Fabio Maulo is doing a poll to find out which test runners people are using:

poll

You can take the poll and see the results here.

TestDriven.Net 3.0 All Systems GoI m pleased to announce that

September 2, 2010 – 9:00 am

TestDriven.Net 3.0 All Systems Go

I m pleased to announce that TestDriven.Net 3.0 is now available. Finally! I know many of you will already be using the Beta and RC versions, but if you look at the release notes you ll see there s been many refinements since then, so I highly recommend you install the RTM version. Here is a quick summary of a few new features:

Visual Studio 2010 supports targeting multiple versions of the .NET framework (multi-targeting). This means you can easily upgrade your Visual Studio 2005/2008 solutions without necessarily converting them to use .NET 4.0. TestDriven.Net will execute your tests using the .NET version your test project is targeting (see Properties > Application > Target framework ).

TargetFramework

There is now first class support for MSTest when using Visual Studio 2008 & 2010. Previous versions of TestDriven.Net had support for a limited number of MSTest attributes. This version supports virtually all MSTest unit testing related attributes, including support for deployment item and data driven test attributes. You should also find this test runner is quick. ;)

MSTest

There is a new Go To Test/Code command on the code context menu. You can think of this as Ctrl-Tab for test driven developers; it will quickly flip back and forth between your tests and code under test. I recommend assigning a keyboard shortcut to the TestDriven.NET.GoToTestOrCode command.

GoToTest

NCover can now be used for code coverage on .NET 4.0. This is only officially supported since NCover 3.2 (your mileage may vary if you re using the 1.5.8 version).

TestWithNCover

Rather than clutter the Output window, ignored or skipped tests will be placed on the Task List . You can double-click on these items to navigate to the offending test (or assign a keyboard shortcut to View.NextTask ).

TaskList

If you re using a Team, Premium or Ultimate edition of Visual Studio 2005-2010, a new Test With > Performance command will be available. This command will perform instrumented performance profiling on your target code.

Performance

A particular focus of this version has been to make it more keyboard friendly. Here s a list of commands you will probably want to assign keyboard shortcuts to:

Name Default What I use
TestDriven.NET.RunTests Run tests in context   Alt + T
TestDriven.NET.RerunTests Repeat test run   Alt + R
TestDriven.NET.GoToTestOrCode Flip between tests and code   Alt + G
TestDriven.NET.Debugger Run tests with debugger   Alt + D
View.Output Show the Output window Ctrl+ Alt + O  
Edit.BreakLine Edit code in stack trace Enter  
View.NextError Jump to next failed test Ctrl + Shift + F12  
View.NextTask Jump to next skipped test   Alt + S

 

By default the Output window will automatically activate when there is test output or a failed test (this is an option). The cursor will be positioned on the stack trace of the last failed test, ready for you to hit Enter to jump to the fail point or Esc to return to your source (assuming your Output window is set to auto-hide).  If your Output window isn t set to auto-hide, you ll need to hit Ctrl + Alt + O then Enter . Alternatively you can use Ctrl + Shift + F12 (View.NextError) to navigate between all failed tests.

Output 

For more frequent updates or to give feedback, you can find me on twitter here.

I hope you enjoy this version. Let me know how you get on. :)

$_FILES empty I am trying to create a file upload

September 2, 2010 – 2:00 am

$_FILES empty
I am trying to create a file upload form on a website and am getting the error: Notice: Undefined index: My code is:

BREAKING: 99-cent TV Rentals, iPod Touch; Apple Rumor Mill Churns
Attachment 16889 (http://www.daniweb.com/forums/attachment.php?attachmentid=16889)The Apple rumor mill is in full motion this morning, folks. Bloomberg News (http://www.bloomberg.com/news/2010-08-24/apple-said-to-be-in-talks-with-fox-for-new-99-cent-tv-show-rental-service.html) is reporting that…

RAD Studio XE, the descendant of Borland Delphi, just announced
Rapid Application Development has come a long way since the early days of Delphi and Visual Basic in the mid 1990s. I remember those days well, as I immersed myself in Pascal development with the original Delphi back in 1995 and even wrote a couple of books about it. Delphi was created by Borland,…

Help with Servlet I’m struggling with a servlet that’s suppose

September 1, 2010 – 8:00 pm

Help with Servlet
I’m struggling with a servlet that’s suppose to represent an “online banking service”. Once you run the servlet you’ll see it’s an extremely simple example… You enter an amount in the textfield provided, then click on the apropriate button depeding what action you want to perform e.g….

Delta Launches Facebook App for Purchasing Tickets
Attachment 16639 (http://www.daniweb.com/forums/attachment.php?attachmentid=16639)Connect with old classmates, chat with friends…now book flights on Facebook. Delta Airlines added an application to its Facebook page (http://www.facebook.com/#!/delta?v=wall) today that allows customers to…

having form data sent to specified e-mail Hello again everyone..

September 1, 2010 – 1:00 pm

having form data sent to specified e-mail
Hello again everyone.. I have a form with an e-mail input. After the user enters their e-mail, I want to have the content of the form sent to them… The name of the form textfield for the e-mail is “email”. How could I make this happen in the php script?? thank you! -l.

Cosmo Releases Kama Sutra Sex Position App for Android Phones
If you ve ever checked out of a grocery store, you ve seen Cosmopolitan, Seventeen s hussy mother, prominently on display in magazine racks next to packs of Juicy Fruit and 2-for-1 Heath Bars promising 7 New Ways to Satisfy Your Lover. The editorials, which are laughable at best, have helped…

URL Encoding
I want to create a php web page to uload a file on web site.I want, when a user browse the file and click upload then the file should upload on web site and the script will generate the encoded url to download the uploaded file, or any other way so that users cant not see the URL of my web site…

Retrieving Excel data in to asp.net textbox
Hi I have an Excel file with two columns. name and number and having some data in that excel file. Name Number kumar 9090090909 XYZ 900909099 ABC 1234512345

Dell Buys Data Storage Company 3PAR
Dell announced today (http://content.dell.com/us/en/corp/d/secure/2010-08-16-ir-release.aspx) that it has reached an agreement with the California based data storage company 3PAR (http://www.3par.com/index.html), to purchase the company for a total price tag of $1.15 Billion.Attachment 16668…

how to set header width of a gridview I have

September 1, 2010 – 7:00 am

how to set header width of a gridview
I have a gridview in which I am fetching data from database along with the heading of the columns are coming from the database. I want to make the header of the columns multiline, because when a long header name comes like “School Associative Names and Institutions”, then it is taking a lot width…

problem in edit and update of dropdownlist in gridview in asp.net using c#
hi everyone i have two problems in the above code- 1. on click of update button of gridview, dropdownlist of subcategory should take null value and should display none which is not happening. 2. on click of edit button of gridview subcategory dropdownlist is not displaying the selected value…