I've some special characters like æ ø å and when I use these chars it display correct in the label but when i bind that field with a Gv they are converted in to ø or any other number at the place of 248. What is the solution for this problem.
I need to implement on my form, a feature to automaticaly store the old value of the cotnroles on a database if the user press a button to save the value. One way is to code it for each control on the ButtonClick event but it's too heavy to do and no fearly nice.
So, a good way is to declare inherited controls, add properties and declare events. On the form, when the user press the button, raise the event and for each control whose has the value changed and saved it to disk.
I need also to pass arguments on the Event to stored it on the database.
I have implemented the following but the event on the custom controls is not fired. So I do not know what is wrong.
On the /APP_Code subdirectory, I have created a class called "MyControls" like this:
'need this class to customize argumentso to pass in tge event
Public Class SaveEventArges
Public Delegate Sub SaveEventHandler (ByVal sender As Object, ByVal e as SaveEventArgs)
Public Class ComboBox
myproperties and methods ...
Public Event Save as SaveEventHandler
Protected Overridable Sub OnSave (ByVal sender As Object, ByVal e as SaveEventArgs)
RaiseEvent Save(me, e)
Protected Sub ComboBox_Save ( ByVal sender As Object, ByVal e as SaveEventArgs) Handles Me.Save
On the code behind:
Public Event Save As SaveEventHandler
Protected Sub Btn_Click ....
Dim t as New SaveEventArgs
my t... properties to pass to the event
RaiseEvent Save (me., t)
What am I doing wrong?
I spent 4 days reading how to do it and no way to found a solution, so please i need your help.
I have bulk of data of client information aprox 15000.
This is not an good idea to showing this amount of data In gridview at time.
What you can do
1. Use Filter Criteria and based on that allow to retrieve Data. Because, there is no sense to load 15,000 at a time, as no one going to check those data at time.
So, use filter criteria.
2. Use Caching, To Reduce the performance hit. If the data is common for all user, use dataCaching, use filter from Cached data itself. Use Cache Dependency if you want to update cache if some changes in data.
I am working with C# and facing a problem at deployment level
In application, if anywhere coming error it getting redirected to login page
and session removing with Session.Abandon
while Again Trying to login Giving error "Internal .Net Framework Data Provider error 12."
I am using business layer and every query is executing from business Layer
Before executing any query i am opening Connection string & then closing Connection
So Why this error is coming ?
if any one knows. plz help me
thanks in advanced..