|
OK - I'm sure that will be fine, so long as Access scales to your app's size. I have never used PHP, so I can't help more than that.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
New to web services here. I know web services have a URI, but do individual web methods also have their own URI? I think the answer is most likely no, but I'm curious.
|
|
|
|
|
NO. (AFAIK)
but You can call like http://webservice/webmethod1 or http://webservice/webmethod2 with HTTP_POST.
|
|
|
|
|
Well, according to everything I've read on the net, you can call a javascript function from vbscript (and vice-versa). However, When I try to do this, IE6 reports a "Type mismatch" on the javascript function. Here's a code snippet:
<%@ LANGUAGE="VBSCRIPT" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<script language='JavaScript1.2' type='text/javascript'>
function jsGetScreenWidth()
{
return screen.width;
}
</script>
<%
Dim njsScreen: njsScreen = jsGetScreenWidth()
%>
<body></body>
</html>
Can anyone shed any light for me?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Wow - this brings back bad memories.
IE can run VBscript on the client. However, you seem to be running it on the server, in which case, the answer is no. You can't call client code from the server, for a variety of reasons.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
well i would like to ask one Christian,
as u said client code can not be called from server side, but how abt the statement below:
btnPlaceOrder.Attributes.Add("onclick","javascript:alert('how are u');")
i mean statement is on the server side and is using client side code. thts the way i think. i might be wrong. what do u say?
|
|
|
|
|
The statement is on the server side, and it puts a string in the onclick property of an element. The code in the string is not executed on the server, it's put in the html code that is generated. When the page reaches the browser, it parses the html code and put the value of the property as an event in the element. When you click on the element, the code is executed.
The code is wrong, by the way. You don't use the javascript: protocol in events. That's only used when you put Javascript code in an URL.
---
single minded; short sighted; long gone;
|
|
|
|
|
I'd say that it depresses me how many people are using ASP.NET and have no idea of the server/client division or how web development works.
Like Guffa said, you can inject javascript into the page on the server side, in fact, the server side is one huge engine for generating HTML and javascript, precisely because that's all you can serve to the client, and expect the client to do anything with. So, again, the javascript can only run on the client, getting it to the client is the whole reason the server side exists.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
well i would like to ask one question Christian,
as u said client code can not be called from server side, but how abt the statement below:
btnPlaceOrder.Attributes.Add("onclick","javascript:alert('how are u');")
i mean statement is on the server side and is using client side code. thts the way i think. i might be wrong. what do u say?
|
|
|
|
|
Hi all,
How can I offer the functionality 4 a software to be downloaded after purchasing it (instead of shipping it)..
The problem is that I want a secure access to the software so that only the people who purchase it can download it (only once for each customer), not any1 who knows the URL can download it..
Thanks a looot in advance
|
|
|
|
|
1- provide an account for each customer.
2- store the software(binary data) in a database.
3- when the user clicks to download the software, perform any checks you want before getting the software from the database.
|
|
|
|
|
The problem is that I'm using SQL Server 2000 so the size of the software will be much larger than the size of a binary column in the database..
Any Clue??
Thanks a lot
|
|
|
|
|
You can store the files locally and store paths in your SQL Server database.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi guys
i am using frame work 1.1, win xp, i am having the following the following erroe while try to open a new web project
"visual studio.net has detected that the specified web server is not running asp.net version 1.1 . you will be unable to run asp.net web applications"
why is that?
thanks in advance
hello
|
|
|
|
|
- Type aspnet_regiis -i in 2003 Command.
- Type "iisreset" in Command.
|
|
|
|
|
re-register the ASPNET user account by running the following at a command prompt:
%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
i'm working on the "contact us" page on a website, i need to create two boxes, one for the email adress of the sender and the other for writing the message, and both contents should go directly to my e-mail account.
please i'm sure that anyone have the answer,but i need urgently
thank you in advance
|
|
|
|
|
/create the mail message<br />
MailMessage mail = new MailMessage();<br />
<br />
mail.From = new MailAddress("me@mycompany.com");<br />
mail.To.Add("you@yourcompany.com");<br />
<br />
mail.Subject = "This is an email";<br />
mail.Body = "this is a sample body with html in it. This is bold <font color=#336699>This is blue</font>";<br />
mail.IsBodyHtml = true;<br />
<br />
SmtpClient smtp = new SmtpClient("127.0.0.1");<br />
smtp.Send(mail);
More Info : http://www.systemnetmail.com/
|
|
|
|
|
//use system.web.mail
using System.Web.Mail;
//and make and object of web.mail class
MailMessage myMail = new MailMessage();
//and pass ur email id in the obejct.to
myMail.To = txtto.Text.ToString();//ur email id
myMail.Bcc = txtbcc.Text.ToString();
myMail.Cc = txtcc.Text.ToString();
myMail.From = txtfrom.Text.ToString() ; // sender email id
myMail.Subject = txtsubject.Text.ToString();// subject
myMail.BodyFormat = MailFormat.Html; // here you can choose: Plain or HTML
string body = " Bolded message The Message ";
myMail.Body = body;
SmtpMail.Send(myMail);
vijay
vijay
|
|
|
|
|
I have a number of elements on a web page, each assigned their own unique IDs.
If I try to retrieve the element's width by calling document.getElementById('myElement').style.width , I get a null return value. The only way I get a non-null value back is if I manually set the element's width using javascript.
Why?
How do I retrieve the width of an element using javascript without first having to specifically set the value?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You should never do this in one step, you should call getElementById and make sure it found something.
I believe the width property will only contain a value, if a specific value was set. If there is no width value in the style for the control, the control still has a width, but it's set by the browser, not by styles, and so the style is empty.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The width property is most definitely set in a style sheet.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You are reading the value from the style setting of the element. That's what you set using the style property:
<div style="width:200px">
If you read the style.width from that element, you will get the string "200px".
The style property might affect the size of the element, but the size of the element never affects the style property.
---
single minded; short sighted; long gone;
|
|
|
|
|
I have a gridview in my application. The header of the gridview has the label for the header and also an imagebutton (a downward triable) beside the label so that when one clicks on the header the imagebutton, the imagebutton will load another picture(a colored downward triangle). The gridview has allowsort="true" set.
In the code, I have made the header so that clicking the header will trigger Commandname="Sort" and commandarugment = <some constant="" associated="" to="" the="" header=""> so that in the codebehind I can track which header is clicked and then change the triangle picture. However i realize that having Allowsort="true" is overriding that. The markup code will change the arrow back to the path written in the makrup.
How do i override the Sort function of gridview? is there anyway to tell it not to reset my headers?
thxthx
|
|
|
|
|
Is there any software to generate web forms? I like SQL reporting service but it doesn't let you edit or delete records.
Thanks
|
|
|
|