|
i have the source code.
i'm using that component in my applicatiASP on.
here i register my component in component liberary.Before it's working fine .now i want to change the dll.
Shalln't need to register once again?
can i know why? and how?
Thanks,
Mahesh
|
|
|
|
|
You seem to be pretty damn clueless. If you change a COM object, make sure you register the changed version. Simple really.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I've Edit the Dll source file and registered as well.But it doesn't reflect in the application.What would be the problem?
for Examble,
I have the connection string in my dll.I'd change the server and Database name.but it didn't reflect.Still remains in the same connection.
Thanks,
Mahesh
|
|
|
|
|
Have you unregistered the previous one before you register new one? COM is mess and you will run into DLL hell issues.
|
|
|
|
|
Add a message box or other marker to prove that your new code is what is being run.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I tried my level best but it doesn't reflect that changes.
Thanks,
Mahesh
|
|
|
|
|
hi,
you need to open that source code ,after making changes set it binary compatible then create dll and then add this to your another project as reference.
Cheers,
Praveen.
|
|
|
|
|
how can set as a binary compatible.Plz help
cheers,
Mahesh
|
|
|
|
|
I have a growing number of functions that look like some variation of the below, and it seems like there's got to be a way to generalize the whole process. Any suggestions?
Basically what I want is to load datatables from stored procedures.
Public Function UsersGetIconList(ByVal UserID As String, ByVal SPName As String, ByVal ParamArray args() As String) As DataTable
Dim DS As New DataSet("ResultSet")
Dim dt As DataTable = DS.Tables.Add("ResultTable")
Dim CON As New SqlConnection(strConnString)
Dim CMD As New SqlCommand(SPName, CON)
Dim reader As SqlDataReader
CMD.CommandType = CommandType.StoredProcedure
Try
'Use Parameters defined in Stored Procedure to pass on Variables.
Dim Param As SqlParameter = CMD.Parameters.Add("@UserID", SqlDbType.VarChar, 36)
Param.Value = UserID
Param = CMD.Parameters.Add("@User_Icon_FileLocation", SqlDbType.NChar, 256)
CMD.Parameters("@User_Icon_FileLocation").Direction = ParameterDirection.Output
'Open Database and Execute Query as defined in Stored Procedure.
CON.Open()
reader = CMD.ExecuteReader()
dt.Load(reader)
Catch ex As Exception
'MsgBox(ex.Message)
Finally
CON.Close()
End Try
'Data is accessible through the DataReader object here.
Return dt
End Function
|
|
|
|
|
You need a generic method that gives you a DataTable after executing a stored-procedure? If yes, how about a function signature like
Public Function GetDataTable(ByVal SPName As String, ByVal ParamArray parameters() As SqlParameter) As DataTable
You need to create and pass SqlParameter instances. Inside this function, add all parameters to the command and fill a datatable. Using strongly typed data structures is the preferred method. If you want to use DataTable , use typed DataTable and enjoy the advantages of type safety.
I'd personally avoid DataTable or DataSet. If I have to use, I prefer typed ones. Usually data access methods should return typed POCO (plain old CLR object) or DTO (data transfer object) objects. You will have a common method that will do data access and return a SqlDataReader or IDataReader if you care about extending to other databases.
Your UsersGetIconList() method can utilize the common method and get a data reader. Using this reader, create your own DTO object and return.
|
|
|
|
|
Thanks N a v a n e e t h.
Of course now I'm thoroughly confused.
I'm a bit beyond my comfort zone here. I know how to deal with datatables, and it seems like Stored Procedures are something that I definately need to learn about. I just bought a SQL Server Dev book, so hopefully that'll help.
It seems to me like getting data into the Stored Procedure is easier than getting it back out, and I think I'm thinking about something dreadfully wrong about the process...
|
|
|
|
|
Member 4125480 wrote: It seems to me like getting data into the Stored Procedure is easier than getting it back out, and I think I'm thinking about something dreadfully wrong about the process...
You push data into a stored proc as parameters, then you call it, and the data comes out. The data coming out is really no different to if you just ran SQL that you mashed together.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi!
I have a GridView on an aspx page that displays records. Below the GridView I have a TextBox that needs to display the value I select in the GridView
I have already created a linkbutton that enables me to click on the record number but I cannot get the value into the textbox.
How can I do this?
Illegal Operation
|
|
|
|
|
I assume that you have the value on the querystring, hence the title of your question ? Read it from there and put it in your textbox.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
ok I get the ID from the querystring but I need to get the firstname and lastname for that record and put them in textboxes as well.
I understand how to get the ID from the querystring but How can I iterate through the record and populate the values?
Illegal Operation
|
|
|
|
|
Oh - so you need to look up a record in the database to get the value ? Or you need to step over your data source to find it ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
yes. I have a record with ID, FirstName, LastName and Date and would like to populate a form when I click on the record ID.
Illegal Operation
|
|
|
|
|
ok, so, again, if it's a new form you populate, put the ID on the URL, and read the other data from the database. Simple.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
All you need to do is just setting text box value, why not do it using JS? Hook a JS function which will execute when link button is clicked and get necessary values and assign to textbox.
|
|
|
|
|
Hi,
find the respective control in gridview using findcontrol method and then get the value of that control,
cheers,
praveen.
|
|
|
|
|
Hi to all
i am new face to asp.net
i develop a website in asp.net (language = vb) in .NET 2.0. In my system i run the project. i want to upload the site in a web server. i have web server and domain name. can any tell pls how to upload my site in web server
i have change a file content to run in web pls tell me step by step procedure to upload my site
|
|
|
|
|
You need to talk to your web host to find out how to upload the site to them. Does your site use a database ? You'll have to move that too, and reset the connection string.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
there is no need for database in my website. i just publish the site and save that in a folder after that move all the files in web server may i know this is correct way to upload the site in web server
|
|
|
|
|
You just copy the working site from your development directory onto the server. You don't need to publish anything.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
it need any web.config file and bin dir
|
|
|
|