Click here to Skip to main content
15,916,042 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to display html File into IFrame--need urgent help Pin
Vasudevan Deepak Kumar22-Nov-07 19:48
Vasudevan Deepak Kumar22-Nov-07 19:48 
AnswerRe: How to display html File into IFrame--need urgent help Pin
N a v a n e e t h22-Nov-07 19:58
N a v a n e e t h22-Nov-07 19:58 
GeneralRe: How to display html File into IFrame--need urgent help Pin
Vishnu Narayan Mishra22-Nov-07 20:07
Vishnu Narayan Mishra22-Nov-07 20:07 
GeneralRe: How to display html File into IFrame--need urgent help Pin
N a v a n e e t h22-Nov-07 20:20
N a v a n e e t h22-Nov-07 20:20 
GeneralRe: How to display html File into IFrame--need urgent help Pin
Vishnu Narayan Mishra23-Nov-07 1:29
Vishnu Narayan Mishra23-Nov-07 1:29 
GeneralRe: How to display html File into IFrame--need urgent help Pin
Vasudevan Deepak Kumar22-Nov-07 20:55
Vasudevan Deepak Kumar22-Nov-07 20:55 
GeneralRe: How to display html File into IFrame--need urgent help Pin
Vishnu Narayan Mishra23-Nov-07 1:30
Vishnu Narayan Mishra23-Nov-07 1:30 
QuestionAutoComplete Pin
kirthikirthi22-Nov-07 19:41
kirthikirthi22-Nov-07 19:41 
Hi all

I am new to AJAX Methods. I am working on autocomplete Textbox

I succeed in 1 textbox autocomplete.But when i try with 2 textbox i got 1 error

Error in = "AddressOf SearchAdvanced"

Error is : "C:\Inetpub\wwwroot\20-3-2006\TextBoxAutoCompletion\WebForm1.aspx.vb(29): Method 'Public Function SearchAdvanced(Name As String, NameID As String) As System.Data.DataTable' does not have the same signature as delegate 'Delegate Function AutoCompleteHandler(input As String) As System.Data.DataTable'.
"

MYCODE:
----------

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

AjaxPro.Utility.RegisterTypeForAjax(GetType(WebForm1))

Autocomplete1.PageType = Me.[GetType]().BaseType
Autocomplete1.OnAutoComplete = New Autocomplete.AutoCompleteHandler(AddressOf SearchAdvanced)

acSearch.PageType = Me.[GetType]().BaseType
acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(AddressOf SearchAdvanced)

End Sub


<ajaxpro.ajaxmethod()> _
Function SearchAdvanced(ByVal Name As String, ByVal NameID As String) As System.Data.DataTable
Dim ds As New DataSet
Dim conn As New SqlConnection("server=DSS1;uid=sa;pwd=sa;database=Time")
Dim cmd As New SqlCommand("SELECT Name,NameID FROM IDs WHERE Name LIKE @Name + '%' and NameID LIKE @NameID + '%' ", conn)
cmd.Parameters.Add("@Name", Name)
cmd.Parameters.Add("@NameID", Name)
Try
conn.Open()
Try
Dim da As New SqlDataAdapter(cmd)
da.Fill(ds)
Finally
conn.Close()
End Try
Catch generatedExceptionName As Exception
Return Nothing
End Try
Return IIf(ds.Tables.Count = 1, ds.Tables(0), Nothing)
End Function
-----------

Can any 1 help me what is wrong on my code

Keerthi
AnswerRe: AutoComplete Pin
Michael Sync22-Nov-07 19:54
Michael Sync22-Nov-07 19:54 
QuestionProblem in Runtime format cell Pin
Sun Rays22-Nov-07 19:32
Sun Rays22-Nov-07 19:32 
AnswerRe: Problem in Runtime format cell Pin
Imran Khan Pathan22-Nov-07 19:44
Imran Khan Pathan22-Nov-07 19:44 
GeneralI have already checked all posibilities Still the same problem Pin
Sun Rays22-Nov-07 19:45
Sun Rays22-Nov-07 19:45 
AnswerRe: Problem in Runtime format cell Pin
N a v a n e e t h22-Nov-07 20:00
N a v a n e e t h22-Nov-07 20:00 
GeneralRe: Problem in Runtime format cell Pin
Sun Rays22-Nov-07 20:04
Sun Rays22-Nov-07 20:04 
Questionalert in asp.net Pin
Milind Panchal22-Nov-07 19:16
Milind Panchal22-Nov-07 19:16 
AnswerRe: alert in asp.net Pin
Michael Sync22-Nov-07 19:21
Michael Sync22-Nov-07 19:21 
AnswerRe: alert in asp.net Pin
Vasudevan Deepak Kumar22-Nov-07 19:22
Vasudevan Deepak Kumar22-Nov-07 19:22 
QuestionHow to set date format in itemtemplate? [modified] Pin
samerh22-Nov-07 19:07
samerh22-Nov-07 19:07 
AnswerRe: How to set date format in itemtemplate? Pin
Vasudevan Deepak Kumar22-Nov-07 19:25
Vasudevan Deepak Kumar22-Nov-07 19:25 
GeneralRe: How to set date format in itemtemplate? Pin
samerh22-Nov-07 19:38
samerh22-Nov-07 19:38 
QuestionHow to Change label text in Master Page Pin
Rinki Mukheraji22-Nov-07 18:41
Rinki Mukheraji22-Nov-07 18:41 
AnswerRe: How to Change label text in Master Page Pin
Sun Rays22-Nov-07 18:55
Sun Rays22-Nov-07 18:55 
AnswerRe: How to Change label text in Master Page Pin
Rinki Mukheraji22-Nov-07 19:38
Rinki Mukheraji22-Nov-07 19:38 
AnswerRe: How to Change label text in Master Page Pin
Vasudevan Deepak Kumar22-Nov-07 19:47
Vasudevan Deepak Kumar22-Nov-07 19:47 
AnswerRe: How to Change label text in Master Page Pin
N a v a n e e t h22-Nov-07 19:53
N a v a n e e t h22-Nov-07 19:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.