الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

function vbscript in asp

مغلق
بدأه علي الأمين في 15 فبراير 2007 · 1 رد · 449 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

i have form content of text ,but when i press ok i go to another page ,but i dont want to go if the text is null,,thanks for all

#2

Dear brother...

Hope this sample help you (Please use ARABIC language as possible as you can):

<html>

<head>
<title>Check Form</title>
</head>

<script LANGUAGE="VBScript"><!--
Private Sub CheckForm()
 If Len(Trim(f.q.Value)) > 0 Then
  f.Submit
 Else
  MsgBox "Enter some words for search",,"Missing data"
 End If
End Sub
//--></script>

<BODY>
<form action="http://www.google.com/search" name=f>
Google Search: <input maxlength=2048 name=q size=55 title="Google Search" value="">
<input name=btnG type=button value="Google Search" OnClick=CheckForm()>
</form>
</BODY>

</HTML>

الأخ الفاضل ...

أرجوا ان يساعدك هذا المثال:

CheckForm.zip

برجاء أستخدام اللغة العربية بقدر المستطاع

شكراً

Eng. Usama El-Mokadem

Nothing is impossible, the word impossible itself says that: I M - Possible

هذا الموضوع مغلق.

مواضيع مشابهة