iam using asp.net2.0 with c#. when user selects arabic then whole site should be in arabic and the text should start from right to left and when user selects english all site should be in english . can you give me a example which helps me.
In my web application which is on vb.net framework1.1 VS2003, Im actually populating an HTML table based on the records retrieved from the database.. Now above the Table I have a button on clicking it the table gets exported to Excel.. Heres the issue.. now in my table i display Userid which is for example: 001258, 001259 etc.. while displaying it on the table its fine but while exporting it to excel my userid on the excel sheet gets changed from 001258 to 1258 the issue is all the zeros present at the beginning gets vanished.. The code that i use for exporting the table to Excel is as follows:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnExp.Click
'I have stored My dataset 'DS' in Session("app")
Public Shared Sub Convert(ByVal ds As DataSet, ByVal response As HttpResponse)
response.Charset = ""
response.ContentType = "application/vnd.ms-excel"
Dim stringWrite As New System.IO.StringWriter
Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringWrite)
Dim dg As New DataGrid
dg.DataSource = ds.Tables(0)
Do please Advice me reagarding this issue... Mean while im also googling it out..
1. Use external script file and refer in masterpage and call from content pages by registerclientsciptblock
On Master page it refered as follows"
2.Place Java script functions in content place holders and refer them by adding attributes to controls. I tried using following function refering it in the clientvalidationfunction
In method 1 it is unnecessary to use RegisterClientScript in the content pages since the script is already included as part of the master page. Whatever source told you to do it that way was utterly daft.
If the script has been proper;y included then your functions should be available for use.