|
Try Response.Write("<script language= 'javascript'>alert('Change Password');</script>);
I agree with led. you should better ask in right forum....
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Michael Sync wrote: Try Response.Write(
That will put the script outside the html document, which breaks the doctype.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: That will put the script outside the html document, which breaks the doctype.
Yes. I know. I have seem a lot of ASP.NET project to do that way to fire the Javascript code. It works just fine.
Guffa wrote: , which breaks the doctype.
What will happen if it breaks the doctype?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Michael Sync wrote: I have seem a lot of ASP.NET project to do that way to fire the Javascript code. It works just fine.
The Javascript works, but the page doesn't work properly.
Michael Sync wrote: What will happen if it breaks the doctype?
The page will be rendered in quirks mode instead of standards compliant mode.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: The Javascript works, but the page doesn't work properly.The page will be rendered in quirks mode instead of standards compliant mode.
Okay. I think it's very interesting. The developers from my team used a lot like that. Since we didn't see any differences on UI until now, we keep on using that thing. If it doesn't work properly, I have to think about something else.
But we need to ensure how the page doesn't work properly. So, It would be great if you can point out the differences. How the page will look like if we are using Response.Write("")??
Thanks in advance.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
How much difference you see depends of course on how you build your pages, and what browser you are using to view them. If you are using html 3.2 and table based layouts, you will probably see very little difference. If you are using more modern techniques, you will see more differences, and Internet Explorer is much more sensetive to this.
Here is a short example that uses css:
<script type="text/javascript">alert(1);</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">
body { margin: 0; padding: 0; }
div { margin: 0 auto; border: 50px solid #eee; width: 150px; padding: 10px; text-align: center; }
</style>
</head>
<body>
<div>Hello world.</div>
</body>
</html>
If you view this without the script tag at the beginning, it shows a 150 pixels wide box centered horizontally.
With the script tag, viewed in Internet Explorer, the box is no longer 150 pixels wide, and it's not centered.
---
single minded; short sighted; long gone;
|
|
|
|
|
Oh. Okay. Guffa. I got you.... I think our team is using table-based layouts that's why we can't see the differences.. we are thinking to use CSS-layout instead of table-based layouts in future. it is going to be problem..
Thanks for pointing this mistake and giving me the example..
You got 5 from me.. Thanks again..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hey all,
please, once again, critical help needed here.
wanna ask if it is possible to convert c++ code to c#. Or can i convert the .cpp files to DLLs and import into my c# project.
Also can i do the same for .java files?
Critical answer expected.
Thanx.
He who goes for revenge must first dig two graves.
|
|
|
|
|
Yes.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Phil,
pls be clear. Yes to what?
He who goes for revenge must first dig two graves.
|
|
|
|
|
Creamboy wrote: Or can i convert the .cpp files to DLLs and import into my c# project.
yes. look at pinvoke.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
ok, there's another problem. How do i convert them to dll?
He who goes for revenge must first dig two graves.
|
|
|
|
|
Creamboy wrote: ok, there's another problem. How do i convert them to dll?
I think there is also another problem
|
|
|
|
|
I think it might be depend on the code that you are trying to convert. I don't think all C++ codes can be converted to C# code. Even it is possible, why we need to do that?
However, the question about converting from C++ to C# or Java are too wide and it is difficult to cover about how to covert.
So, wish you all the best!!
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Creamboy wrote: if it is possible to convert c++ code to c#
What is it you want to do? Call C++ code from C#? Or convert your C++ code to C#?
C++ can compile to COM dlls, which can be referenced in your C# app. If you need help compiling C++ to a COM dll, you should ask in the C++ forum.
You can also compile C++ to a C++.NET dll, called C++/CLI. Search for C++/CLI on this site for articles detailing how it's done. You can then use the resulting dll in your C# project.
Creamboy wrote: Also can i do the same for .java files?
Yes, you just have to recompile them using the J# compiler, which compiles your Java code files to a .NET dll or exe.
Another option is to use Mono's IKVM. Read more about that here[^].
|
|
|
|
|
Conversion is possible, but not easy.
We produce "C++ to C# Converter", which will convert a good portion of the C++ code to C#, but you will nearly always have to modify the converted code to get working C# code which is functionally equivalent.
David Anton
http://www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
C++ to VB Converter: converts C++ to VB
Instant C++: converts C# to C++/CLI and VB to C++/CLI
|
|
|
|
|
Thanx y'all, you've all been very helpful. i'll just compile the C++ code to a COM dll and call it in my C# code.
Merci.
He who goes for revenge must first dig two graves.
|
|
|
|
|
Hello! Let's say that i'm using Word 2007, and i have an add-in with a button. I create a word doc and i save it. Word is still running. How can i find where i saved the doc by pressing the add-in button? Does Visual Studio Office Tools has a solution for this problem?
Thanks a lot!
Any comment it's welcome!
|
|
|
|
|
I am confused You have a add-in written in C# for word 2007, correct?
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
yes i have an add-in written in C#. I just want to know if vsto can detect the name of my saved document!
|
|
|
|
|
I am unsure if there is anything "built-in" to do that, but you could easy do that with .NET if there isn't.
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
You will save my day if you tell me how to do it with .NET
|
|
|
|
|
Are you saving this file by your Word add-in, or doing it through word? Or does it need to work for either?
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
I'm saving this file through word
|
|
|
|
|
I don't know much about Addins for Microsoft office, what type of office resources do you have access to? Any access to Events, methods, etc?
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|