Click here to Skip to main content
15,896,269 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Multiple Sapce problem Pin
Abhijit Jana3-Feb-08 22:39
professionalAbhijit Jana3-Feb-08 22:39 
GeneralRe: Multiple Sapce problem Pin
N a v a n e e t h3-Feb-08 22:46
N a v a n e e t h3-Feb-08 22:46 
AnswerRe: Multiple Sapce problem Pin
Abhijit Jana4-Feb-08 0:33
professionalAbhijit Jana4-Feb-08 0:33 
Generalfiltering lookup in sharepoint Pin
ptvce3-Feb-08 20:46
ptvce3-Feb-08 20:46 
Generalasp.net + access 2003 Pin
ritu43213-Feb-08 20:12
ritu43213-Feb-08 20:12 
GeneralRe: asp.net + access 2003 Pin
dilipv8-Feb-08 0:26
dilipv8-Feb-08 0:26 
GeneralIIS 7 VISTA problam Pin
galigal153-Feb-08 19:46
galigal153-Feb-08 19:46 
GeneralMasterPage and Javascript Pin
trilokharry3-Feb-08 18:52
trilokharry3-Feb-08 18:52 
Friends...

I thank all of my friends who helped me to resolve erlier issues...

Today I have following problem. I have two separate scearios one is without master page and another with master page

In first scenario without masterpage I have follwoing code in default.aspx file

script block in

function Change()
{
alert(document.getElementById('DropDownList1').value)
}



<asp:dropdownlist id="DropDownList1" onchange="return Change();" runat="server"><asp:listitem>Item1<asp:listitem>Item1
<asp:textbox id="txtId1" runat="server">


And in code behind

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim txtVal as String = CType(Page.FindControl,TextBox).Text
End Sub

This one works perfect, I mean to say Javascript block works perfect and I can get a value in txtVal variable of Page_Load event

Now in second scenario where I am using MasterPage(TestMaster.master) which has following code.

<asp:contentplaceholder id="MainContent" runat="server">


And I have code in <asp:content> in default.aspx as below

]]>
<asp:content id="Content1" contentplaceholderid="MainContent" runat="Server">

--Same javascript block as above

--Same <asp:dropdownlist> and <asp:textbox> as above



And same page load event as above of default.aspx

So in this case none of the code is working correctly neither JAvascript code(null object javascript error is coming) nor page_load event(object reference not set to instance of an object erro) is working fine


I hope this helps in order to identify the issue

Thanks

You get the best out of others when you give the best of yourself.

GeneralRe: MasterPage and Javascript Pin
N a v a n e e t h3-Feb-08 19:34
N a v a n e e t h3-Feb-08 19:34 
AnswerRe: MasterPage and Javascript Pin
Raam3-Feb-08 21:58
Raam3-Feb-08 21:58 
GeneralNamespace for xquery Pin
VanithaVasu3-Feb-08 18:35
VanithaVasu3-Feb-08 18:35 
QuestionHow to print ReportViewer1 Pin
faisallal3-Feb-08 17:50
faisallal3-Feb-08 17:50 
GeneralHelp in generate Excel Data Pin
HatakeKaKaShi3-Feb-08 16:39
HatakeKaKaShi3-Feb-08 16:39 
GeneralRe: Help in generate Excel Data Pin
Venkatesh Mookkan3-Feb-08 17:19
Venkatesh Mookkan3-Feb-08 17:19 
GeneralRe: Help in generate Excel Data Pin
HatakeKaKaShi3-Feb-08 20:32
HatakeKaKaShi3-Feb-08 20:32 
GeneralUn loading page Pin
Lijo Rajan3-Feb-08 16:36
Lijo Rajan3-Feb-08 16:36 
GeneralRe: Un loading page Pin
Guffa3-Feb-08 16:48
Guffa3-Feb-08 16:48 
GeneralRe: Un loading page Pin
John-ph3-Feb-08 21:12
John-ph3-Feb-08 21:12 
GeneralNEED HELP Pin
Mahendar3-Feb-08 6:09
Mahendar3-Feb-08 6:09 
GeneralRe: NEED HELP Pin
Paul Conrad3-Feb-08 7:00
professionalPaul Conrad3-Feb-08 7:00 
GeneralRe: NEED HELP Pin
Guffa3-Feb-08 16:15
Guffa3-Feb-08 16:15 
GeneralRe: NEED HELP Pin
dilipv3-Feb-08 19:47
dilipv3-Feb-08 19:47 
Questionshowing cathegorizied pictures..? Pin
Mir_As3-Feb-08 5:20
Mir_As3-Feb-08 5:20 
AnswerRe: showing cathegorizied pictures..? Pin
Expert Coming3-Feb-08 17:51
Expert Coming3-Feb-08 17:51 
Questionasp:CreateUserWizard background image Pin
snir_ya3-Feb-08 3:51
snir_ya3-Feb-08 3:51 

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.