Call function from one aspx.vb file from another aspx.vb file
This should be easy.
I have two aspx.vb files. One is the default and the other default2.
All I want to do is call a function in default from default2.
default contains -
Public Class Default_aspx Inherits System.Web.UI.Page Public x As New Default_aspx Public Function test() Return "HERE IT IS" End FunctionEnd Class
Default2 contains -
Partial Class Default2 Inherits System.Web.UI.Page Private Sub getIt() test() - "Name test is...how to call java script function in vb.net ?
and if click cancel then it will create a message into label .
//Code to get the datasource dataset ds
if(ds.Tables.Rows.count > 0)
Page.ClientScript.RegisterStratUpScript(this.GetType(),"showal","ShowGri...How to call java script function in aspx.vb file?
Hi, i have written following script in aspx file which works fine: ----------------------------------------------------------------------------------
------------------------------------------------------...Both C# ASPX pages and VB.NET ASPX in single VB.NET Web Applcation Template
Is it possible to have both c# pages and VB pages in same Webapplication, what i chose is VB.NET Web application Template.
I don't see why you couldn't, but for the sake of consistency I don't know why you would want to do this. When you choose a C# or VB.NET application template(I'm assuming you're using VS or WebMatrix), it simply creates a .aspx file that includes a page directive that specifies the page language. If you created a C# template but want to use VB.Net instead, you need to go from:
<%@ Page Language="C#" ....
to...VB Script to vb/vb.net conversion
Trying to convert this vbs to vb.net code. Does anyone know how?
Option Explicit dim WSHShell, objFSO, desktop, pathTOapplication
Set WSHshell = CreateObject("WScript.Shell")set objFSO=CreateObject("Scripting.FileSystemObject")
desktop = WSHShell.SpecialFolders("Desktop")pathTOapplication = objFSO.GetAbsolutePathName(desktop) & "\SMG Backup.appref-ms"
WSHshell.Run chr(34) & pathTOapplication & chr(34)
my. Good Luck
why not just use it in scritp block like this:
Option Expli...How to call vb dll file is vb.net
I had created a com control in vb with extension .dll. Is it Possible to call that .dll file in vb.net. If Possible how.
Well, any dll contains a set of classes, each class contains a set of methods.
so, what you need to do is Add Reference to that dll, and then you can access the methods inside it as:
regardsBilal Hadiar, MCP, MCTS, MCPD, MCTMicrosoft MVP - Telerik MVP
Yes it is possible Somu. Though the vb dll is a COM component, you could use the COM component like any other .NET. Like Haidar ...converting vb.net 2003 files to vb.net 2005
i am beginner..i watch videos about vb.net..they made on vs.net 2003 when i wrote these codes in 2005 ,it gives errors..is there any program which convert the code automatically?
What videos are you talking about? There are lots of great, up-to-date ASP.NET Videos on this site for free.Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you!
i am talking about learnvisualstudio.net videos..Thanks,Speranza
Speranza:they made on vs.net 2003 when i wrote these codes in 2005 ,it gives errors..is there a...Sending SMS using vb.net or C#.net using vb.net or c#.net
My requirement is
I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0.
once i read the all fileds and take that mobile number.using tat mobile number i need to send sms .after sending sms i shuld change status as 1
How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link.
and also provide the how to update the status field im csv file
To send SMS, you need some third party SMS providers. if you consul...vb.net functions in aspx file
What are the difference of serverside function and ajax function in vb.net , with respect to their usage in aspx file?
If both can, then what is the specific of ajax function usage?
I am trying to convert vb script to vb.net
I have regular expression in vb script as follows
Set regExp = New RegExp
regExp.IgnoreCase = True
regExp.Pattern = "[^a-z0-9]"
regExp.Global = True
filter = regExp.Replace(str, "")
I just converted into vb.net as followsFunction filter(ByVal str)
Dim RegexObj As Regex = New Regex("[^a-z0-9]", RegexOptions.IgnoreCase.Equals(True))filter = RegexObj.Replace(str, "")
End FunctionBut I am not sure about the option
regExp.Global = ...Function Calling from ASPX file to VB file
I simple have a function called GetStatus in the code behind of my aspx
file. In the aspx file I'd like to call this function.
Public Function GetStatus() As String
Response.Write("I Am HERE")
Dim tmpStatus As String = ""
I have this implanted in the aspx file
<%# GetStatus() %>
It's not working. Thoughts on this?
You are returning tmpStatus, but setting it to an empty valu...VB Script & VB.NET
i'm going to develop a web application. can u tell me what is the advantages of not using vb script in web pages i. security-wise ii.performance-wiseand what is the advantages of using vb script in .aspx pages??
Hi,vbscript isn't a .NET enabled language while VB.NET is. This means that you can't use vbscript to code your ASP.NET webforms. Vbscript can however be used with classic ASP.Grz, Kris.Read my blog. Handy Firefox plugins for web developers.Workaround for non working Mark as answer buttons.
ok, then what do you say about inline code(i.e. in the form of "<%...Calling Flash file with movie clip in aspx page (vb.net)
Hi, I got major problem. I create one flash file and in that i add video clip.with this file a video clip control are there for play and stop and others.Now the problem is that when i calling that file in the asp.net at that time when i used flash file with video clip control that file is not displayed on browser.Steps i do for that.1) i take video file and convert it into .flv by video to flv converter.2) After that i converted flv file to flash file in .swf format.3)now the file .swf contain the movie clip and some text in form of flash file.4) but this is not displayed on brow...How to call a java class file from a vb.net smart application device?
i know i can call a java class file by using the shell function for a vb.net window application..
But how to call a java class file from a vb.net smart application device?
anyone can help?
The same way you call it from VB.Net, but you are going to have to make sure the machine has given the rights to smart clients to run Process Invoke commands.View My Blog Download My URL Rewriter and Reverse ProxyOnly $9.95/month, ASP.NET, 2GB & SQL 2005
ok thanks alot....