Click here to Skip to main content
15,897,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Zeros doesnt get displayed in my vb.net application... Pin
Not Active19-Mar-10 21:40
mentorNot Active19-Mar-10 21:40 
QuestionMSChart printing Pin
Tufail Ahmad19-Mar-10 20:04
Tufail Ahmad19-Mar-10 20:04 
AnswerRe: MSChart printing Pin
Rutvik Dave23-Mar-10 8:50
professionalRutvik Dave23-Mar-10 8:50 
GeneralRe: MSChart printing Pin
Tufail Ahmad6-Apr-10 2:02
Tufail Ahmad6-Apr-10 2:02 
Questioni want to scan the document using twain_32.dll in asp.net with vb.net Pin
vbmadhavi19-Mar-10 19:25
vbmadhavi19-Mar-10 19:25 
Answerplzzzzzzzz help me it's urgent. Pin
Not Active19-Mar-10 19:51
mentorNot Active19-Mar-10 19:51 
AnswerRe: i want to scan the document using twain_32.dll in asp.net with vb.net Pin
The Man from U.N.C.L.E.20-Mar-10 4:59
The Man from U.N.C.L.E.20-Mar-10 4:59 
QuestionUse of Javascript in ajax enabled Asp.net content pages Pin
kris_viswa19-Mar-10 19:08
kris_viswa19-Mar-10 19:08 
Hi Gurus

I am new to web programming and I started working with Asp.net 3.5 vwd express edition with ajax tool kit.For about a week now I screened most of articles on use of javascript in asp.net and following is suggested.

1. Use external script file and refer in masterpage and call from content pages by registerclientsciptblock

On Master page it refered as follows"

<script>


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

<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Enter Loan Account Name" ClientValidationFunction="chkloanac" OnServerValidate="Chk" ControlToValidate"TxtLoanSource" </asp:CustomValidator>

<script type="text/jscript">

function chkloanac(source, arguments)
{
var Bal = document.getElementById("&lt;%=TxtBalDebt.ClientID%&gt;");
var acname = document.getElementById("&lt;%=TxtLoanSource.ClientID%&gt;");
if (Bal.value &gt; 0 &amp;&amp; (acname.value == 'NA' || acname.value == ''))
arguments.IsValid = true;
else
arguments.IsValid = false;
}





3.Build script strings and make call from code behind.example

Dim sb As New System.Text.StringBuilder()

sb.Append("")
sb.Append("alert('Save Successful');")
sb.Append("")
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "Alert", sb.ToString(), False)


All my pages are using ajax controls or extenders and i observe the folllowing.

When I use method-1 and try register the code block, the image placed in a panel for controlling collapsable panel do not load.

Method-2 is not working at all I created a function to refer in custom validation control which would not fire

Only mehod-3 is working which again has limitation for using long functions

I request an expert guidence on above subject with known issues and limitations if any.Preferably wih a working example on method-1 or method-2

Thanks in advance
Kris
AnswerRe: Use of Javascript in ajax enabled Asp.net content pages Pin
Not Active19-Mar-10 19:49
mentorNot Active19-Mar-10 19:49 
GeneralRe: Use of Javascript in ajax enabled Asp.net content pages Pin
kris_viswa19-Mar-10 20:02
kris_viswa19-Mar-10 20:02 
QuestionRecent problem with UpdateProgress Pin
ESTAN19-Mar-10 13:18
ESTAN19-Mar-10 13:18 
AnswerRe: Recent problem with UpdateProgress Pin
ESTAN19-Mar-10 14:55
ESTAN19-Mar-10 14:55 
QuestionHow to create moving thumbnails? Pin
northridge19-Mar-10 7:35
northridge19-Mar-10 7:35 
AnswerRe: How to create moving thumbnails? Pin
T M Gray19-Mar-10 8:35
T M Gray19-Mar-10 8:35 
GeneralRe: How to create moving thumbnails? Pin
northridge19-Mar-10 11:00
northridge19-Mar-10 11:00 
GeneralRe: How to create moving thumbnails? Pin
Austin Cherry19-Mar-10 12:36
Austin Cherry19-Mar-10 12:36 
GeneralRe: How to create moving thumbnails? Pin
northridge19-Mar-10 12:56
northridge19-Mar-10 12:56 
AnswerRe: How to create moving thumbnails? Pin
PSK_19-Mar-10 23:38
PSK_19-Mar-10 23:38 
AnswerRe: How to create moving thumbnails? Pin
antony0920-Apr-10 3:19
antony0920-Apr-10 3:19 
Questionadd target attribut in image button Pin
aiel19-Mar-10 4:13
aiel19-Mar-10 4:13 
AnswerRe: add target attribut in image button Pin
R. Giskard Reventlov19-Mar-10 4:31
R. Giskard Reventlov19-Mar-10 4:31 
AnswerRe: add target attribut in image button Pin
PSK_19-Mar-10 23:34
PSK_19-Mar-10 23:34 
QuestionPassing binary data to web site Pin
Chesnokov Yuriy19-Mar-10 3:57
professionalChesnokov Yuriy19-Mar-10 3:57 
AnswerRe: Passing binary data to web site Pin
Not Active19-Mar-10 4:10
mentorNot Active19-Mar-10 4:10 
AnswerRe: Passing binary data to web site Pin
T M Gray19-Mar-10 4:28
T M Gray19-Mar-10 4:28 

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.