asp:Literal
Protected Sub CityList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CityList.SelectedIndexChanged Call gmrq1(CityList.SelectedValue) Literal_Mrq.Text = "<MARQUEE bgcolor='Yellow' height='28' onmouseout='this.start();' önmouseover='this.stop();' >'" & Session("MRQLOCA") & "'</MARQUEE>" RaddR1.AdvertisementFile = "~\app_data\" & LCase(CityList.SelectedItem.ToString) & ".xml" RaddR2.AdvertisementFile = "~\app_data\" & LCase(CityList.SelectedItem.ToString) & ".xml" 'CityList.SelectedItem.ToString() End Sub Private Function gmrq1(ByVal vlocation As String) As Boolean Dim sqlstr As String Dim CON As New MySqlConnection Dim MYDA As New MySqlDataAdapter Dim MYDS As New DataSet() Dim i As Integer Dim mrq As String Dim spc As String Dim xalink As String Dim calink As String Session("MRQLOCA") = Nothing mrq = " " spc = " " Try vuser = Session("The_user") CON = New MySqlConnection("server=localhost; user id=" & vuser & "; password=alok; database=renton; pooling=false;") sqlstr = "select * from msgmrq where location='" & vlocation & "'" MYDA = New MySqlDataAdapter(sqlstr, CON) MYDS = New DataSet() MYDA.Fill(MYDS) If MYDS.Tables(0).Rows.Count > 0 Then calink = "" For i = 0 To 6 xalink = "" mrq = mrq + xalink + MYDS.Tables(0).Rows(i)("ctext") + calink + spc Next Session("MRQLOCA") = mrq Else Session("MRQLOCA") = "Savvy Solution Private Limited" End If Catch myerr As MySqlException MsgBox("Renton Error #157 with message -" & myerr.Message, , "Renton Error") Catch e As Exception MsgBox("Renton Error #158 with message -" & e.Message, , "Renton Error") Throw Finally CON.Close() End Try End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)