Thursday, March 29, 2012
Pop Up?
error message in a dialog box.
But I found it only works with IE, Not Netscape.
Did someone have it work ever?
Thanks.Hi,
Validations got server and client side validation. When you browse your
pages in Netscape they use the server-side validation and not the
client-side validation as the client side Validation scripts only works
only with IE.
Natty Gur[MVP]
blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Poping up a window using timers
I need to pop up a window 10 mins after a user logs in with some message. how can i do that using timers. please help
thanks
setTimeout("SendMessage()",600000);
function SendMessage(){
alert('message you want to send');
}
The second parameter of setTimeout is the time delay. It is in miliseconds.
Popping opening a mail client and pass a subject parameter...
Is there a way to pop open a mail client and pass in a text string for the
subject and possibly other parts of a standard mail message? The "mailto:"
attribute of hyplerlink leaves these blank.
Thanks,
Charlieread up on the mailto: link, it does have a &Subject='text'&Body='text'
attribute IIRC
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Charlie@.CBFC" <charle1@.comcast.net> wrote in message
news:eSlBhiR4DHA.1752@.tk2msftngp13.phx.gbl...
> Hi:
> Is there a way to pop open a mail client and pass in a text string for the
> subject and possibly other parts of a standard mail message? The
"mailto:"
> attribute of hyplerlink leaves these blank.
> Thanks,
> Charlie
Friday, March 16, 2012
Populating a List Box
Hi
I am trying to populate a list box with all my themes that i have created but I keep getting an message which is
Type DirectoryInfo is not defined i m guessing i have to declare if but i dont know how are where please could you guys help. Thanks
1Protected Sub Page_Load(ByVal senderAs Object,ByVal eAs System.EventArgs)23If (Not Page.IsPostBack)Then45 Dim themeDirAs New DirectoryInfo(Server.MapPath("App_Themes"))6 lstThemes.DataTextField ="Name"7 lstThemes.DataSource = themeDir.GetDirectories()8 lstThemes.DataBind()910End If1112 End Sub13
The DirectoryInfo class is located under the System.IO namespace.
Yeah i tired declaring it as Inherits System.IO. Is that the correct appraoch
hello i ve tried to use the system io like u suggested but i still have the same problem here s my code. Do u have any ideas where i am going wrong cheers
PartialClass _Default
Inherits System.Web.UI.Page
Inherits System.IO
ProtectedSub Page_Load(ByVal senderAsObject,ByVal eAs System.EventArgs)
If (Not Page.IsPostBack)Then
Dim themeDirAsNew DirectoryInfo(Server.MapPath("App_Themes"))lstThemes.DataTextField ="Name"
lstThemes.DataSource = themeDir.GetDirectories()
lstThemes.DataBind()
EndIf
EndSub
EndClass
Is your App_Thems directory in your web directory? I would check the path returned by Server.MapPath("App_Theme"), perhaps it doesn't exists and that's why you're getting an error.
bigyawn_hippo:
hello i ve tried to use the system io like u suggested but i still have the same problem here s my code. Do u have any ideas where i am going wrong cheers
PartialClass _DefaultInherits System.Web.UI.Page
Inherits System.IO
ProtectedSub Page_Load(ByVal senderAsObject,ByVal eAs System.EventArgs)
If (Not Page.IsPostBack)Then
Dim themeDirAsNew DirectoryInfo(Server.MapPath("App_Themes"))lstThemes.DataTextField ="Name"
lstThemes.DataSource = themeDir.GetDirectories()
lstThemes.DataBind()
EndIf
EndSubEndClass
Hi,
Based on my understanding, you want to import the System.IO namespace in your asp.net VB application. If I have misunderstood you, please feel free to let me know.
The DirectoryInfo class is in the System.IO. If we want to use it, we can import it. For example:
Imports System.IOPartialClass _DefaultInherits System.Web.UI.PageProtected Sub Page_Load(ByVal senderAs Object,ByVal eAs System.EventArgs)If (Not Page.IsPostBack)Then Dim themeDirAs New DirectoryInfo(Server.MapPath("App_Themes")) lstThemes.DataTextField ="Name" lstThemes.DataSource = themeDir.GetDirectories() lstThemes.DataBind()End If End SubEnd Class
Alternatively, we can use this namespace in the code behind directly, for example:
Dim themeDir As NewSystem.IO.DirectoryInfo(Server.MapPath("App_Themes"))
Besides, you can find more information about asp.net by the following link:http://www.asp.net/get-started/.
I hope this helps.
Hi hyppo,
why don't you try to put only this two instructions ?
lstThemes.DataSource = themeDir.GetDirectories()
lstThemes.DataBind()
I found my code doing the same and i didn' t write ...DataTextField