Can anyone tell me which is better? JavaScript or PHP. Every language has its benefits so both are good. So, for what kind of web apps should i use JS or/and PHP?
Hi,
i have a form that uses a script to show in the browser the results. How can i prevent the users from typing the url to the script to download it and see the code?
One thought of mine is to put the scripts one level up of http://localhost/MyPage/ (or in http://localhost/). Could this work...
Hi,
just installed php, edited the ini file and added the path "c:\php\" in the $PATH of the environment variables. I uninstalled apache and desiced to use IIS (v.5)(http://localhost).
Tried an example writting a php file in the localhost.The code is <? phpinfo() ?>. When i call it...
Hi,
how can i execute a javascript function when i press a button ?
Notice that the button is System.Web.UI.WebControls.button, not an HTML button.
Tnx!
Hi,
A print an excel sheet and then i want to delete it. How will i know when the printing is over?
'print excel sheet
file.delete("c:\sheet1.xls")
If i write as above an error occurs because the sheet1 is still in use (being printed). So:
While not (sheet1.HasFinishedPrinting)
' nothing...
Hi,
I use the "error provider" component so as to have visual validation of some controls. I'm going to procced to some actions after a button click and if there is no error.
Is there a way to do something like "If form1.hasErrors then ... else {procced}"
Notice that i don't want to set to...
I have this simple code:
Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer1.Elapsed
Button1.Text = "errrr"
End Sub
Interval: not 0
Enabled: true
? See any error ?
TnX.
Hi,
What i'm tring to do is:
public a as boolean = false
I need to be able to see the variable from one web form to an other (that's why inputed public). Of course I may not access this variable.
In vb i could try to put this public statement in a module; but in asp.net??
Tnx
Hi,
As i add a form: file upload, the button of it has "Browser" caption. Is there any way to change its caption? (Trying to localize).
If not possible can i somehow display the folder browser dialog (that is on wondows applications)? If yes i'm able to drag a button, change its text and on...
Hi,
I've made one basic form to upload files: type file (textfield+Browser button) and a "Upload button".
Want to check the file if it's nothing or have size 0
If Not File1.PostedFile Is Nothing And File1.PostedFile.ContentLength > 0 Then
...
...
The error is "Object reference not set to an...
Hi all,
As mentioned in the subject, i know nothing about php. I need some help about the tools i need to start writing php code. Such as if there is an editor, program to instal etc...
Tnx!
Hi,
I have a web app (login.aspx, default.aspx and the dll in directory bin). When i copy these files in /wwwroot/ (in the server not in my pc) there is error in application "/".
What option(s) am i missing to do ?
Tnx
This code is in a button:
Dim msg As New Web.Mail.MailMessage
'Web.Mail.SmtpMail.SmtpServer = my IP ???
msg.From = txtFrom.Text
msg.To = txtTo.Text
msg.Subject = txtSubject.Text
msg.Body = txtBody.Text
msg.BodyFormat = Web.Mail.MailFormat.Text...
rHi
I have a login page, and when u fill in username and password it redirects u to "default.aspx". In this page i have links for ".html" pages, other aspx, even for zip files; by clicking you start to download.
If you write in the browser "http://wwwmysite.com/default.aspx" it will NOT be...
Hi,
There is an application that creates an excel sheet. After finishing i save it to the disk so the user can watch it.
This i don;t know is how to password protect it, (tools -> protection -> protect sheet) with pass e.g "123".
By that any user may only watch it and print it (not add...
I have a page that is displayed by the browser control.
The page's code is:
<a href="http://www.hp.com">http://www.hp.com</a>
The form (in the application) has also a button:
Dim abc As String = WebBrowser1.DocumentText 'store in abc the source code
abc = abc.Replace("hp"...
In the project i have embedded some files. Is there any way to fill a listbox with their names? So with this I'll be able with a for loop to list their names.
Tnx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.