how to create dll in asp.net

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    0 views    |    Add a Comment

 

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 )

also should i use asp.net or window apllication

Share/Save/Bookmark

 

problem to display last id in textbox…!

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    0 views    |    Add a Comment

i want to show last number in  text field….!

 this is my code

 

<form id="Form1" runat="server">
     <%– <asp:ListBox id="lbxEmployees" runat="server"
                   AutoPostBack="True"
                   Rows="5"
                   OnSelectedIndexChanged="subListChange" />–%>
                  
                  <asp:Textbox id="lbxEmployees" runat="server" text='<%# Container.DataItem("uomid") %>'/>
    </form>

 

<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'.
 

dataBindingExpressionBuilderTarget.Text = System.Convert.ToString( Container.DataItem("uomid") , System.Globalization.CultureInfo.CurrentCulture) 

 i dont know whats the problem…! kindly solve my problem its very urgent

Share/Save/Bookmark

 

Launching modalpopup extender from serverside, and displaying an .aspx page not a panel

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    0 views    |    Add a Comment

 

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.

Share/Save/Bookmark

 

How to declare a web method in aspx web service application to insert data into microsoft access

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    0 views    |    Add a Comment

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?

Share/Save/Bookmark