I have one indesign file which is designed for a webpage. I tried to export from the file > export > dreamweaver with Indesign CS5. I tried to configure everything and export, but the exported result is totally awful. What Indesign export is images and text, no design was included (such as background colors, positions). Is it only me or is that the export result supposed to be ? Is it because of my indesign file ? If i want to get the exact design that I designed in indesign, what's the best way to do it because I don't want to design twice. Please kindly suggest me. Thank you.
Indesign is primarily for print layout and design. As a web page designer it is very poor. The only thing that may improve your output is make sure, in the XHTML Export Options, Advanced tab, and make sure Include Style Definitions, and Preserver Local Overrides are checked. Other than that, take a look at http://help.adobe.com/en_US/InDesign/6.0/WS82C401A9-E844-40d5-B9B4-540CA374B0C6a.html
For more about the export function. Think of it more as a jumping off point in you had something designed already in inDesign, not a final product. In the future, I'd use Illustrator, Fireworks, or Photoshop to do your design.