i have been told to create a dll of an login module but the problem is that the createuserfunction() and other function that i have to use, shoiuld not contain any parameters.
I though to make a class in app_code but then again how to supply inputs in function(should i use session )
<script language="VB" runat="server"> Dim objConnection As OleDbConnection Dim daNorthwind As OleDbDataAdapter Dim dsNorthwind As DataSet
Sub Page_Load(ByVal Source As Object, ByVal E As EventArgs) objConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _ & "DATA SOURCE=" _ & Server.MapPath("nwind.mdb;"))
Dim StrSQLfortext As String = "SELECT max(uomid) FROM uom "
'Dim objConnection As New OleDbConnection(strConnection) Dim objCommand As New OleDbCommand(StrSQLforListBox, objConnection)
objConnection.Open()
lbxEmployees.Text = objCommand.ExecuteScalar()
objConnection.Close()
End Sub
</script>
i got this error
'DataItem' is not a member of 'System.Web.UI.Control'.
How would I be able to launch the modalpopupextender from SERVER SIDE. Launching from client side is only for example code, and is hardly useful in the real world. I need to be able to do a database lookup when I press a button, then take that data, construct a string, and pass it to the modal popup, so that the modal popup displays the string that I pass it, and then returns whatever the user selected to the main page. I mean using onclick is just for date validation and hardcoded values right? Am I missing something here? Would I do a database lookup from sql server in client side? I think not, but correct me if I am wrong. Also, how would I use the popup extender to popup an .aspx page. I want to put the actual popup content in a different page than I am launching the popup from.
I've figured out how to insert data into my database after i hit the submit button in my web application. However, I would have to declare a web method for inserting of data into the database in my web service application as well. Can anyone tell me how to i declare the web method for inserting of data?