|
Do you think telling us what error you are getting might be helpful?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30198: ')' expected.
Source Error:
Line 76:
Line 77: Public Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer) As String()
Line 78: Dim country As String = ("India", "UK", "Indonesia", "Japan", "Sri Lanka", "Singapore")
Line 79: ' Return matching movies
Line 80: Return From m In country Where m.ToString.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase) Select m Take (count).ToString.ToCharArray
Source File: C:\Documents and Settings\balwinder_singh\My Documents\Visual Studio 2008\WebSites\correction\Default.aspx.vb Line: 78
This is the error I am getting .
|
|
|
|
|
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30198: ')' expected.
Source Error:
Line 76:
Line 77: Public Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer) As String()
Line 78: Dim country As String = ("India", "UK", "Indonesia", "Japan", "Sri Lanka", "Singapore")
Line 79: ' Return matching country
Line 80: Return From m In country Where m.ToString.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase) Select m Take (count).ToString.ToCharArray
Source File: C:\Documents and Settings\balwinder_singh\My Documents\Visual Studio 2008\WebSites\correction\Default.aspx.vb Line: 78
Made some changes still no clue about error.
|
|
|
|
|
Maybe this?
Dim country() As String = ("India", "UK", "Indonesia", "Japan", "Sri Lanka", "Singapore")
|
|
|
|
|
I have tried this also still the same.
I have added the script manager and the autocomplete to the textbox.
The command is actually to auto suggest when the enduser types alphabet.
Say in case he types ind the webpage should suggest India Indonesia.
I think there is some problem with the command used below but couldnt figure out what needs to be changed.
Dim country As String = ("India", "UK", "Indonesia", "Japan", "Sri Lanka", "Singapore")
' Return matching country
Return From m In country Where m.ToString.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase) Select m Take (count).ToString.ToCharArray
|
|
|
|
|
Didn't see it in the copy/paste, but your country array also is using parenthesis instead of curly-braces...
Dim country() As String = {"India", "UK", "Indonesia", "Japan", "Sri Lanka", "Singapore"}
|
|
|
|
|
Perhaps you were wanting something like this?
Module Module1
Sub Main()
Console.WriteLine(getCountry("In"))
Console.Read()
End Sub
Function getCountry(ByVal prefixText As String)
Dim country() As String = {"India", "UK", "Indonesia", "Japan", "Sri Lanka", "Singapore"}
' Return matching country
Return (From m In country Where m.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase) Select m).First()
End Function
End Module
|
|
|
|
|
Try using the auto complete with a web Method! adding <webmethod()> up of
the function
<WebMethod()>
Public Function blabla(ByVal prefixText As String, ByVal count As Integer) As List<String>
Dim country As String = ("India", "UK", "Indonesia", "Japan", "Sri Lanka", "Singapore")
Dim Qry = (From m In country Where m.ToString.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase) Select m).Take(count)
Return Qry.ToList
End Function
I don't remember 100% Vb but it may work good luck
and don't forget the
ServiceMethod="blabla"
ServicePath="MyPage.aspx"
in the Extender
|
|
|
|
|
I created a asp.net website .
I then added a masterpage to it and then a webform to which I added the masterpage file.
It Builds Fine but has following runtime error:
"Content controls have to be top-level controls in a content page or a nested master page that references a master page."
I didn't add anything to the masterpage or content page !!
|
|
|
|
|
Based on your last couple of posts you need to stop what you are doing and read more about masterpages and how to use them
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Where can I get information on nested masterpages ?
Has anyone tried implementing them and what are it's pros cons?
|
|
|
|
|
|
Do not cross post
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Are you running the application from within the IDE or running it from IE and attaching to debug?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I am running with the Play button given at the top Standard toolbar. So I am running it from IE and attaching it to debug.
I repeat i am using IE7
|
|
|
|
|
Hi there,
i could imagine two possible reasons:
- You have set debug=false in your web.config and ignore the warning-message on hitting the "playbutton"
Example:
<system.web>
<compilation debug="false">
...
</compilation>
...
Solution: set debug to true.
- Second reason: you have AutoEventWireup in your .aspx markup set to false - and therefore, your
page load is not wired anywhere. either set AutoEventWireup to "true" or wire the event up yourself.
Thats all i could imagine right now.
Good luck
|
|
|
|
|
none of those.
The problem is solved. That was some weired page problem. So I copied all the code and design to a new page and tried to execute, it works. I guess its just stupid creatiion of microsoft.
|
|
|
|
|
I'm guessing there was another reason than stupid microsoft, but i'm glad you solved it=)
|
|
|
|
|
Hi,
Can you anybody tell me how can we use the "API calls" in asp.net?. Please give me simple example or any idea.
Thanks,
Periyasamy.R
|
|
|
|
|
PeriyasamyRamachandran wrote: Can you anybody tell me how can we use the "API calls" in asp.net?
API just means Application Programming Interface, i e you must be having some some dll or webservices. Create an object of the required class and access the method of those class using the object or if there is static method then you can access it using the class name itself.
Are you talking about something else?
|
|
|
|
|
Yes i am looking something like i have to retrieve the data from a server and update into my local database. To retrieve the data i need to use "API cals". Can you reply how can i proceed this? or Please give an example for API calls.
Thanks,
Periyasamy.R
|
|
|
|
|
If you mean accessing windows dlls / win32 api or something, please search for "p/invoke .net api" in google or have a look here
|
|
|
|
|
I have a multiple web sits asp.net application.
In this application different domains using the same pages.
All pages inherit from base class named: PageBase
wich inherit from System.Web.UI.Page.
By using: HttpContext.Current.Request.ServerVariables["HTTP_HOST"]
i cen determine what is the domain and then get all the info i need
for this domain and everything is working good.
My problem begin when i want to use different visitor counter for each site based on session.
Because Global.asax have Global events:
Session_Start
Session_End
simple counter will count all visitors on all sites together.
I try to make code behind for the Global.asax in different class
but i cold not get in that class the PageBase(System.Web.UI.Page) web site info.
I will be very thankful for any ideas to solve this problem
cheinan
|
|
|
|