|
Really? Just a guess or do you have any proof? I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi everybody
I am trying to create a hyperlink that is used to run a local application and passes some arguments, however, IE always complains that it did not find the requested file and this seems to be because it does not distinguish between the filename and the arguments.
here is my hyperlink: <a href='file:///C:/Users/Mohammad/Documents/Visual Studio 2005/Projects/SpeakingExam/SpeakingExam/bin/Debug/SpeakingExam.exe SID=167 EID=335'>Take Eaxam</a>
If I do not supply any parameters the program runs fine, but I am having a trouble running it with parameters.
Thanks for the helpAnd ever has it been that love knows not its own depth until the hour of separation
Mohammad Gdeisat
|
|
|
|
|
I have not done this from a web app, but you can use the ProcessStartInfo class and the Process class in code behind to open local processes (and send it command args).
Have a look at ProcessStartInfo[^] on MSDN.
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script language="javascript" type="text/javascript">
function exe() {
var a = parseInt(document.getElementById("txt").value);
var b = parseInt(document.getElementById("txt1").value);
document.getElementById("txt2").value = a - b;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txt" runat="server" />
<asp:TextBox ID="txt1" runat="server" />
<asp:TextBox ID="txt2" runat="server" />
<asp:Button runat="server" Text="Click Me" OnClientClick="return exe()" />
<input type="button" value="Click" onclick="return exe()" />
</div>
</form>
</body>
</html>
when I'm using javascript with HTML controls there is no postback, but with asp controls it dose postback...
is it my browser's fault??...C# Developer
|
|
|
|
|
Actually you are used in your code which doesn't postback. does postback.
|
|
|
|
|
Actually, he is using , give up the Brainbench ASP.NET cert I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|west1989 wrote
|
he was used input button which doesn't postback. thanks for the vote.
|
|
|
|
|
Read the OP,
<asp:Button runat="server" Text="Click Me" OnClientClick="return exe()" />
which when rendered to html produces
<br />
<input type="submit" name="ctl02" value="Click Me" onclick="return exe();" /><br />
and if you knew ASP.NET would realize does cause a postback. The vote was justified. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|west1989 wrote
|
Actually he was asked the above line which doesn't postback. It will be executed in client side so there is no postback. This button just Add the two values from two text-boxes & will display the result in 3rd textbox.
So i was replied as, the will not postback. will postback. thanks Mark
|
|
|
|
|
There is nothing wrong with your browser, that's the way ASP.NET controls work. If this has confused you, then you need to stop everything and read some books on ASP.NET I know the language. I've read a book. - _Madmatt
|
|
|
|
|
to do so, just write runat="server" attribute for the input control
============================================
The grass is always greener on the other side of the fence
|
|
|
|
|
Please reply here because I have some questions about using Microsoft CRM Web Services.
Thanks in advance...Best Regards
3ala2
|
|
|
|
|
So, what are the questions? Posting them will get you faster assistance. I don't know MS CRM that well myself, but I am sure if you ask the questions someone here will be able to assist.
|
|
|
|
|
I want to create ASP.net forms that write to CRM entities.
I need to know the best practice to apply that Best Regards
3ala2
|
|
|
|
|
Generally you need to go through a webservice that uses the CRM SDK.
This is important!
You can not write directly to the CRM database. If you do, you invalidate any warranty supplied by Microsoft, and (more importantly) you will probably break CRM to such an extent that you will need to start over (with a fresh install).
If you want more info, look at the documentation that comes with CRM and the CRM SDK.
Having said that, I have applications that read CRM filtered views, and that does not seem to hurt it.
So, getting information out, you can go direct. Getting information in - SDK Only!
|
|
|
|
|
Hi,
I'm working on a project that requires some links showing their website's related favicon. Haven't used javascript in a while but managed to write this:
linkIcon = new Image();
linkIcon.src = "http://www.youtube.com/favicon.ico";
if (linkIcon.complete)
tdElem.innerHTML = "<img src=\"http://www.youtube.com/favicon.ico\"></img>";
I'm using youtube address as an example here. The problem is that it doesn't show the related icon the first time the page loads but after hitting refresh all icons are in place.
Any suggestion will be appreciated...
|
|
|
|
|
I'm going to guess that the
if (linkIcon.complete) occurs
before the image is ready the
first time through but on refresh
it comes from the cache so it is
ready.Heres how I would do it ...
<html>
<script>
linkIconYt = new Image();
linkIconYt.src = "http://www.youtube.com/favicon.ico";
linkIconMsn = new Image();
linkIconMsn.src = "http://www.msn.com/favicon.ico";
init = function(){
var imgYt = document.getElementById('Yt');
imgYt.src = linkIconYt.src;
var imgMsn = document.getElementById('Msn');
imgMsn.src = linkIconMsn.src;
}
</script>
<body onload='init()'>
<img id="Yt">
<img id="Msn">
</body>
</html>
|
|
|
|
|
Hi Friends,
I have a page works in Firefox, but not in IE. IE automatically truncate a part of text in one line and display it in next line. Do you guys have any thoughts or suggestion for this kinda issue? please give me a direction or source to reference, many thanks!
|
|
|
|
|
alexyxj wrote: Do you guys have any thoughts or suggestion
Yes. Show a little of what you have done. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
thanks Guys, I've solved the problem, it's about the container width, which is a little bit smaller than the total width of its table cell. Firefox ignores this but IE doesn't, break the second table cell into two lines.
^_^ anyway, thanks for your time...
|
|
|
|
|
how to get posted data value in javascript during round trip
|
|
|
|
|
I am working on an app for a big company and we have a subdomain website page that is opened by javascript.
We want to have the opened page redirect the window.opener when it is closed. The big thing is that the opener is on a different subdomain (same top level domain). Will this be permitted or is blocked by browser 'cross-site scripting'?
I've tried a couple methods but can't seem to get it to redirect. Mainly trying
window.opener.location.href='blah.htm';
|
|
|
|
|
Try opening this page with javascript ...
<head>
<title>popup</title>
<body>
Close this window with the CloseMe button or with the browser control.
<FORM>
<INPUT type="button" value="CloseMe!" onClick="window.close()">
</FORM>
<script>
window.onbeforeunload=function(){window.opener.location.href="http://msn.com"}
</script>
</body>
</html>
|
|
|
|
|
Not sure whether it's called like this. But here's what I intend to do is:
I have an application that embeds mozilla's gecko to display html with support for css and javascript. Inside the html, there maybe some hyperlinks or forms that needs to dynamically generate new html content. Instead of sending a request to a remote server to handle the request. I want to handle the request within the application. So I have to embed a local server in the application to do the job. Is it right or there's a better way? Are there such code project or some references for this kind of design?
Many thanks~
|
|
|
|
|