Click here to Skip to main content
15,920,633 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionChange Schedule Time - Windows Scheduled Tasks - .ASPX Pin
karthik_dotnet130-May-07 0:26
karthik_dotnet130-May-07 0:26 
QuestionPie Charts in Crystal report dosent show 0 value Pin
Shaurya_Rastogi30-May-07 0:22
Shaurya_Rastogi30-May-07 0:22 
QuestionEditing Nested Gridview Pin
machendra29-May-07 23:36
machendra29-May-07 23:36 
AnswerRe: Editing Nested Gridview Pin
Sherin Iranimose29-May-07 23:45
Sherin Iranimose29-May-07 23:45 
Questionhow to change a control attribute globally Pin
kalaveshi29-May-07 23:17
kalaveshi29-May-07 23:17 
AnswerRe: how to change a control attribute globally Pin
Sherin Iranimose29-May-07 23:41
Sherin Iranimose29-May-07 23:41 
AnswerRe: how to change a control attribute globally Pin
Paddy Boyd29-May-07 23:59
Paddy Boyd29-May-07 23:59 
AnswerRe: how to change a control attribute globally Pin
kalaveshi30-May-07 2:39
kalaveshi30-May-07 2:39 
Thanks Sherin and Paddy

That was my idea initially but I have complete websites and I cannot allow myself to make such interventions. I came up with a solution that works on IE7 (I know it does not work under Firefox, haven't tested other browsers but I strongly believe it does not work there either). I'm just adding the following code at the end of each webpage and it seems to do it...

<%-- add the following code at the end of each webpage, just before the </html> --%>
<script type="text/javascript">

        debugger;
        
        /// function to "albanize" the brackets to "ë" and "ç"
        function al()
        {
            var ae =document.activeElement; 
            if(ae.type=='text') /// test for textbox
            {
                ae.value=ae.value.replace('[','ë').replace(']','ç'); 
            }
            if(ae.type=='textarea') /// test for textarea
            {
                ae.innerText=ae.innerText.replace('[','ë').replace(']','ç'); 
            }
            
        }

    /// the following part gets executed by the end of pageload 
    var inputs=document.getElementsByTagName("input"); /// extract all "input" controls
    for(var i=0;i<inputs.length;i++)
    {
        if(inputs[i].type=='text') /// not buttons or radio or other; just editable textboxes
        {
            inputs[i].setAttribute('onkeyup',al); /// add the attribute and refer to the function
        }
    }
    var inputs=document.getElementsByTagName("textarea"); /// extract textarea controls
    for(var i=0;i<inputs.length;i++)
    {
        {
            inputs[i].setAttribute('onkeyup',al); /// same as above with the textboxes
        }
    }
</script>

QuestionGridView DataDisplay in TextBoxes Pin
siddisagar29-May-07 22:58
siddisagar29-May-07 22:58 
AnswerRe: GridView DataDisplay in TextBoxes Pin
Sherin Iranimose30-May-07 0:08
Sherin Iranimose30-May-07 0:08 
QuestionMove Back problems Pin
Bajrang Singh29-May-07 22:51
Bajrang Singh29-May-07 22:51 
Questionimport file asp.net Pin
kvijayajyothy29-May-07 22:27
kvijayajyothy29-May-07 22:27 
AnswerRe: import file asp.net Pin
nareshss29-May-07 23:17
nareshss29-May-07 23:17 
GeneralRe: import file asp.net Pin
kvijayajyothy29-May-07 23:41
kvijayajyothy29-May-07 23:41 
GeneralRe: import file asp.net Pin
nareshss29-May-07 23:53
nareshss29-May-07 23:53 
GeneralRe: import file asp.net Pin
Paddy Boyd30-May-07 0:07
Paddy Boyd30-May-07 0:07 
QuestionHow to upload a resume in word format in a asp.net application Pin
Prakash_Mishra29-May-07 21:51
Prakash_Mishra29-May-07 21:51 
AnswerRe: How to upload a resume in word format in a asp.net application Pin
nareshss29-May-07 22:21
nareshss29-May-07 22:21 
GeneralRe: How to upload a resume in word format in a asp.net application Pin
Prakash_Mishra30-May-07 0:33
Prakash_Mishra30-May-07 0:33 
GeneralRe: How to upload a resume in word format in a asp.net application Pin
nareshss30-May-07 0:47
nareshss30-May-07 0:47 
QuestionCheck the Given date is sunday or not..., Pin
Member 387988129-May-07 21:32
Member 387988129-May-07 21:32 
AnswerRe: Check the Given date is sunday or not..., Pin
Luka Grabarevic29-May-07 23:13
Luka Grabarevic29-May-07 23:13 
AnswerRe: Check the Given date is sunday or not..., Pin
Venk25929-May-07 23:28
Venk25929-May-07 23:28 
AnswerRe: Check the Given date is sunday or not..., Pin
Prakash_Mishra29-May-07 23:36
Prakash_Mishra29-May-07 23:36 
Questionusing ASP.net - convert sql table into xml data Pin
nareshss29-May-07 21:27
nareshss29-May-07 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.