Click here to Skip to main content
16,016,669 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to include ASP file in .aspx page Pin
ypsyong4-Jul-06 23:12
ypsyong4-Jul-06 23:12 
GeneralRe: How to include ASP file in .aspx page Pin
Socheat.Net4-Jul-06 23:37
Socheat.Net4-Jul-06 23:37 
AnswerRe: How to include ASP file in .aspx page Pin
Guffa5-Jul-06 1:03
Guffa5-Jul-06 1:03 
QuestionEnter key Press Event on textbox Pin
nabeelkhan4-Jul-06 21:42
nabeelkhan4-Jul-06 21:42 
AnswerRe: Enter key Press Event on textbox Pin
mnaveed4-Jul-06 22:55
mnaveed4-Jul-06 22:55 
GeneralRe: Enter key Press Event on textbox [modified] Pin
nabeelkhan4-Jul-06 23:57
nabeelkhan4-Jul-06 23:57 
GeneralRe: Enter key Press Event on textbox Pin
mnaveed5-Jul-06 0:31
mnaveed5-Jul-06 0:31 
GeneralRe: Enter key Press Event on textbox Pin
nabeelkhan5-Jul-06 0:44
nabeelkhan5-Jul-06 0:44 
this i call in the page load event
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here

'Fill Drop Down List with Years
'conConnection.Open()
If Not Page.IsPostBack Then
txtrollno.Attributes.Add("onkeydown", "fill_list();")
bt_hidden.Visible = False
End If
End Sub


this is my javascript
function fill_list()
{
if(event.keycode==13)
{
document.getElementById("bt_hidden").click;
}
}

this is my hidden button that id is btn_hidden
"""<asp:button id="bt_hidden" runat="server" ""onclick="loads" visible="False" ""height="19px" width="56px" text="Button">"""

this is my load fuction that i call onClick bt_hidden event
Sub loads(ByVal sender As System.Object, ByVal e As System.EventArgs)
Session.Add("Rollno", Trim(txtrollno.Text))
Try
Dim ds As DataSet
Dim ad As New OleDbDataAdapter
Dim conn_string As String = ConfigurationSettings.AppSettings.Item("DBSettings")
conConnection = New OleDbConnection(conn_string)
conConnection.Open()
Dim dr As OleDbDataReader
Dim cmd As New OleDbCommand
cmd.Connection = conConnection
cmd.CommandText = "SELECT DISTINCT Setup_Session.Description " & _
"FROM Course_Result LEFT OUTER JOIN " & _
"Setup_Session ON Course_Result.Session_id = Setup_Session.Session_ID " & _
"WHERE (Course_Result.Rollno = 'b-00250')"
'"WHERE (Course_Result.Rollno = '" & Session.Item("Rollno") & "')"
'ds = New DataSet
cmd.CommandType = CommandType.Text
dr = cmd.ExecuteReader
While dr.Read
ddlSession.Items.Add(dr.Item("Description"))
End While
conConnection.Close()
Catch ex As Exception
lblMsg.Text = "Db Server is Down"
lblMsg.Visible = True
End Try
End Sub
bt my dropdownlist is nt filled
tell me either i can fill the dropdoenlist in this clickevent
'Private Sub bt_hidden_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_hidden.Click

tell me where i got wrong ..plz
GeneralRe: Enter key Press Event on textbox Pin
mnaveed5-Jul-06 1:03
mnaveed5-Jul-06 1:03 
GeneralRe: Enter key Press Event on textbox Pin
nabeelkhan5-Jul-06 1:32
nabeelkhan5-Jul-06 1:32 
GeneralRe: Enter key Press Event on textbox Pin
mnaveed5-Jul-06 2:08
mnaveed5-Jul-06 2:08 
QuestionSQL 2000 Database connection error Pin
For_IT4-Jul-06 21:40
For_IT4-Jul-06 21:40 
AnswerRe: SQL 2000 Database connection error Pin
minhpc_bk4-Jul-06 21:52
minhpc_bk4-Jul-06 21:52 
AnswerRe: SQL 2000 Database connection error Pin
Colin Angus Mackay4-Jul-06 22:18
Colin Angus Mackay4-Jul-06 22:18 
AnswerRe: SQL 2000 Database connection error Pin
For_IT4-Jul-06 22:43
For_IT4-Jul-06 22:43 
AnswerRe: SQL 2000 Database connection error Pin
vishal7056-Jul-06 2:17
vishal7056-Jul-06 2:17 
Questionhow to set HTMLInput Element type radio index Pin
Shajeel4-Jul-06 21:24
Shajeel4-Jul-06 21:24 
AnswerRe: how to set HTMLInput Element type radio index Pin
Kapilshivam4-Jul-06 22:02
Kapilshivam4-Jul-06 22:02 
GeneralRe: how to set HTMLInput Element type radio index Pin
Shajeel4-Jul-06 22:12
Shajeel4-Jul-06 22:12 
QuestionHow to group selected controls on web page.. Pin
sam_io4-Jul-06 21:08
sam_io4-Jul-06 21:08 
QuestionIdle Timeout in ASPX and HTML Pin
Guru20204-Jul-06 20:58
Guru20204-Jul-06 20:58 
QuestionHow to import CSV file into MSSQL in asp.net page using vb script [modified] Pin
ypsyong4-Jul-06 20:20
ypsyong4-Jul-06 20:20 
QuestionHow to send values from one page to another asp.net Pin
Diglu4-Jul-06 20:08
Diglu4-Jul-06 20:08 
AnswerRe: How to send values from one page to another asp.net Pin
DIMPLE_R4-Jul-06 20:27
DIMPLE_R4-Jul-06 20:27 
GeneralRe: How to send values from one page to another asp.net Pin
dasrimk4-Jul-06 20:42
dasrimk4-Jul-06 20:42 

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.