want to use a function loadstring common for whole website
-
i hav a function called loadstring which loads the value for the controls of the page the function look lik tis Private Sub LoadStrings(ByVal ci As CultureInfo) HylEdit.Text = rm.GetString("Add", ci) BtnClear.Text = rm.GetString("Clear", ci) BtnSave.Text = rm.GetString("Save", ci) HylView.Text = rm.GetString("View", ci) TDAwd.InnerText = rm.GetString("Awd", ci) TDAwdDes.InnerText = rm.GetString("Awddes", ci) TDAwdpic.InnerText = rm.GetString("Awdpi", ci) TDFreq.InnerText = rm.GetString("Freq", ci) TDAwdcri.InnerText = rm.GetString("Awdcri", ci) TDAwdSt.InnerText = rm.GetString("AwdSt", ci) TDAwdk.InnerText = rm.GetString("Awdk", ci) i want to write tis code in common for all the pages the problem is some controls will be there or will not be according to the page for eg some pg will hav gridview and some will not.. here if control is not present in the pg its shows error is their any way to solve tis