Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old February 5th, 2015, 08:48 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Angry Irishman

[ I am getting the same error as the angry Irishman, but have not solved the problem. The jquery file is in the proper place in the head. What other areas should I look at?[/QUOTE]

Angry Irishman? I hope you referring to Imaar not me. I am from Texas. I have long since stopped posting here. The only reason I replied is because this stuff ended up in my email box repeatedly. Now these days I prefer to get my .NET technical questions from Apress, Sitepoint and Pluralsight. The authors there don't seem to be as snappy and snarky as some the authors on this bulletin board seem to be. My advice to you, learning the material in this book is nice but it won't land you a job, even if you have total mastery of the information contained in the book. I would highly suggest that you learn AngularJS, Twitter BootStrap, JQuery Mobile and MVC in the Visual Studio Environment if you want a boost to your career. That is the direction in which things are headed. Don't get me wrong this book is a very nice quick start tool and can help you get your feet wet in the .NET environment in a relative short amount of time, but it is not going to give you skill set that is going to land you a job in the IT industry as a .NET developer. If you want to really boost your career, I would recommend one or all of the following books after you finish this one:

https://www.packtpub.com/web-develop...net-developers

http://www.amazon.com/Professional-A...1&keywords=mvc

http://www.amazon.com/jQuery-Mobile-...=jquery+mobile

http://www.amazon.com/Teach-Yourself...=jquery+mobile

http://www.amazon.com/Learning-Angul...ords=AngularJS

I guess that I have been somewhat unfair to Imaar on my reviews of the follow up version of this particular book on Amazon, because I was frustrated that he wouldn't write a book like this one except with mobile technologies involved like Twitter BootStrap, JQuery Mobile and AngularJS. I will delete my review of the 4.5.1 version of this book off of Amazon immediately.
Reply With Quote
The Following User Says Thank You to vbboyd For This Useful Post:
  #22 (permalink)  
Old February 5th, 2015, 08:53 PM
jminatel's Avatar
Wrox Staff
Points: 18,940, Level: 59
Points: 18,940, Level: 59 Points: 18,940, Level: 59 Points: 18,940, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,945
Thanks: 73
Thanked 139 Times in 101 Posts
Default

It would be great if we could keep this on topic.
vbboyd, we miss you! It's great to see you here if only occasionally.
I don't know who the snippy authors here have been but I'll say for sure that Imar isn't one of them. He's the best author I've ever met from any publisher at patiently working through reader questions, even when the readers are the ones more than a little confused.
And he's Dutch, so I'm totally lost as to the Irishman. And I'm Italian American in Indiana.
So with that, back on topic please!
__________________
Jim Minatel
Associate Publisher, WROX - A Wiley Brand
Did someone here help you? Click on their post!
Reply With Quote
  #23 (permalink)  
Old February 5th, 2015, 09:02 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default You are right.

IMaar is a great author. No doubt about it. I just wish he or one of the other Wrox Authors would do a really super nice follow up book to this one using Twitter Bootstrap, AngularJS, JQuery Mobile developing SPAs in the Visual Studio Environment. That is all. I have been clamoring for something like that for a long time now. Imaar would be fantastic at it, no doubt about it. WROX doesn't put out books on JQuery Mobile, AngularJS and Twitter BootStrap SPA development in a Visual Studio Environment, PackTPub does and the Pluaralsight authors are now really pushing that level of things really hard in their new course material, and I just wish Wrox would come out with a book on stuff like that. Imaar would be a natural for that task in my humble opinion. His tutorial writing style of explanations of how to do things step by step is second to none.

Last edited by vbboyd; February 5th, 2015 at 09:04 PM..
Reply With Quote
  #24 (permalink)  
Old February 5th, 2015, 09:13 PM
Registered User
Points: 29, Level: 1
Points: 29, Level: 1 Points: 29, Level: 1 Points: 29, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

.aspx page with jquery and gridview, gridview at top, jquery at bottom
Code:
<%@ Page Title="" Language="C#" MasterPageFile="~/Frontend.master" AutoEventWireup="true" CodeFile="Agents.aspx.cs" Inherits="agents_agents" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1" EmptyDataText="There are no data records to display." AllowPaging="True" AllowSorting="True">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="False" ButtonType="Button" ControlStyle-BorderStyle="None" HeaderStyle-BorderStyle="None" />
            <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" Visible="False" />
            <asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName" />
            <asp:BoundField DataField="Commission" HeaderText="Commission" SortExpression="Commission" DataFormatString="{0:p0}" />
            <asp:BoundField DataField="HLBCommission" HeaderText="HLB Commission" SortExpression="HLBCommission" DataFormatString="{0:p0}" />
            <asp:BoundField DataField="Email" HeaderText="E-mail" SortExpression="Email" />
            <asp:BoundField DataField="Password" HeaderText="Password" SortExpression="Password" Visible="False" />
        </Columns>
    </asp:GridView>
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ID" DataSourceID="SqlDataSource1" DefaultMode="Insert" Height="50px" Width="125px">
        <Fields>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName" />
            <asp:BoundField DataField="Commission" HeaderText="Commission" SortExpression="Commission" />
            <asp:BoundField DataField="HLBCommission" HeaderText="HLB Commission" SortExpression="HLBCommission" />
            <asp:BoundField DataField="Email" HeaderText="E-mail" SortExpression="Email" />
            <asp:BoundField DataField="Password" HeaderText="Password" SortExpression="Password" />
            <asp:CommandField ShowInsertButton="True" />
        </Fields>
    </asp:DetailsView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AssociatesCommToolConnectionString1 %>" DeleteCommand="DELETE FROM [Agent] WHERE [ID] = @ID" InsertCommand="INSERT INTO [Agent] ([FirstName], [LastName], [Commission], [HLBCommission], [Email], [Password]) VALUES (@FirstName, @LastName, @Commission, @HLBCommission, @Email, @Password)" ProviderName="<%$ ConnectionStrings:AssociatesCommToolConnectionString1.ProviderName %>" SelectCommand="SELECT [ID], [FirstName], [LastName], [Commission], [HLBCommission], [Email], [Password] FROM [Agent]" UpdateCommand="UPDATE [Agent] SET [FirstName] = @FirstName, [LastName] = @LastName, [Commission] = @Commission, [HLBCommission] = @HLBCommission, [Email] = @Email, [Password] = @Password WHERE [ID] = @ID">
    <DeleteParameters>
        <asp:Parameter Name="ID" Type="Int32" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="FirstName" Type="String" />
        <asp:Parameter Name="LastName" Type="String" />
        <asp:Parameter Name="Commission" Type="Decimal" />
        <asp:Parameter Name="HLBCommission" Type="Decimal" />
        <asp:Parameter Name="Email" Type="String" />
        <asp:Parameter Name="Password" Type="String" />
    </InsertParameters>
    <UpdateParameters>
        <asp:Parameter Name="FirstName" Type="String" />
        <asp:Parameter Name="LastName" Type="String" />
        <asp:Parameter Name="Commission" Type="Decimal" />
        <asp:Parameter Name="HLBCommission" Type="Decimal" />
        <asp:Parameter Name="Email" Type="String" />
        <asp:Parameter Name="Password" Type="String" />
        <asp:Parameter Name="ID" Type="Int32" />
    </UpdateParameters>
</asp:SqlDataSource>

    <script type="text/javascript">
        $(function ()
        {
            $('.GridView tr:odd:not(.GridViewPagerStyle').addClass('GridViewAlternatingRowStyle');
        });
    </script>
</asp:Content>
Reply With Quote
  #25 (permalink)  
Old February 5th, 2015, 09:14 PM
Registered User
Points: 29, Level: 1
Points: 29, Level: 1 Points: 29, Level: 1 Points: 29, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Head of Master Page

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <script src="Scripts/modernizr-2.7.2.js"></script>
    <script src="Scripts/jquery-2.1.3.min.js"></script>
</head>
Reply With Quote
  #26 (permalink)  
Old February 5th, 2015, 09:15 PM
Registered User
Points: 29, Level: 1
Points: 29, Level: 1 Points: 29, Level: 1 Points: 29, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page Source

Code:

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title>

    <script src="Scripts/modernizr-2.7.2.js"></script>
    <script src="Scripts/jquery-2.1.3.min.js"></script>
<link href="../App_Themes/Management/Styles.css" type="text/css" rel="stylesheet" /><style type="text/css">
	/* <![CDATA[ */
	#Menu1 img.icon { border-style:none;vertical-align:middle; }
	#Menu1 img.separator { border-style:none;display:block; }
	#Menu1 img.horizontal-separator { border-style:none;vertical-align:middle; }
	#Menu1 ul { list-style:none;margin:0;padding:0;width:auto; }
	#Menu1 ul.dynamic { z-index:1; }
	#Menu1 a { text-decoration:none;white-space:nowrap;display:block; }
	#Menu1 a.static { padding-left:0.15em;padding-right:0.15em; }
	#Menu1 a.popout-dynamic { background:url("/WebResource.axd?d=Zb8v-2WywKLL2rpo-BLtdxb3CLfTESADxmvwSRzJicZ0SR1dJhzwNf-kwevu9ly3aXIotrtjvWT0NP_RfirhoFHWYmuigIawz4ZNH7gLjcQ1&t=635369962656103379") no-repeat right center;padding-right:14px; }
	/* ]]> */
</style></head>
<body>
    <form method="post" action="Agents.aspx" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="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" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>



<script src="/WebResource.axd?d=LwAa-swZVg7XLkCBYBIgIp2k7JviQiGLWWVNbR1MMbnkF7kjkak4MQMCcBQJPkk2rIcgV8bmU5GPFfyosrVSfcupypYQMoBfLK10upHMlns1&amp;t=635369962656103379" type="text/javascript"></script>
    <div id="PageWrapper">
        <header><a href="/"></a></header>
        <nav>
            <a href="#Menu1_SkipLink"><img alt="Skip Navigation Links" src="/WebResource.axd?d=qGOSXXU1E7I-2xiNgIxOmMlHkzyEtWs24IWC8nvH8y1TwDAVXhazQReJFf8vvcO2RnSl2r9oFMmKFifvMM6Q66U7H2TPQzy8b0vHFpoOujw1&amp;t=635369962656103379" width="0" height="0" style="border-width:0px;" /></a><div class="MainMenu" id="Menu1">
	<ul class="level1">
		<li><a title="Login" class="level1" href="/Default.aspx">Login</a></li><li><a title="Agents" class="level1 selected" href="/Agents/Agents.aspx">Agents</a></li><li><a title="Policies" class="level1" href="/Policies/Policies.aspx">Policies</a></li><li><a title="Enter this Month's Entries" class="level1" href="/Entries/Entries.aspx">Entries</a></li><li><a title="Commissions" class="level1" href="/Commissions/Commissions.aspx">Commissions</a></li>
	</ul>
</div><a id="Menu1_SkipLink"></a>
            
        </nav>
        <section id="MainContent">
        
    <div>
	<table class="GridView" cellspacing="0" rules="all" border="1" id="ContentPlaceHolder1_GridView1" style="border-collapse:collapse;">
		<tr class="GridViewHeaderStyle">
			<th scope="col" style="border-style:None;">&nbsp;</th><th scope="col"><a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$FirstName')">First Name</a></th><th scope="col"><a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$LastName')">Last Name</a></th><th scope="col"><a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$Commission')">Commission</a></th><th scope="col"><a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$HLBCommission')">HLB Commission</a></th><th scope="col"><a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$Email')">E-mail</a></th>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$0')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$0')" style="border-style:None;" /></td><td>Sandra</td><td>Niles</td><td>60 %</td><td>60 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$1')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$1')" style="border-style:None;" /></td><td>Tracey</td><td>Koltz</td><td>60 %</td><td>60 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$2')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$2')" style="border-style:None;" /></td><td>Marvin</td><td>Zeamer</td><td>75 %</td><td>85 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$3')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$3')" style="border-style:None;" /></td><td>William</td><td>Radue</td><td>75 %</td><td>85 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$4')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$4')" style="border-style:None;" /></td><td>Mark</td><td>Pantzlaff</td><td>75 %</td><td>85 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$5')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$5')" style="border-style:None;" /></td><td>Wade</td><td>Knutson</td><td>75 %</td><td>85 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$6')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$6')" style="border-style:None;" /></td><td>Lee</td><td>McDonald</td><td>50 %</td><td>50 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$7')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$7')" style="border-style:None;" /></td><td>Rory</td><td>Johnson</td><td>75 %</td><td>75 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$8')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$8')" style="border-style:None;" /></td><td>Gregory</td><td>Radue</td><td>65 %</td><td>65 %</td><td>none</td>
		</tr><tr>
			<td><input type="button" value="Edit" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Edit$9')" style="border-style:None;" />&nbsp;<input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Delete$9')" style="border-style:None;" /></td><td>Betty</td><td>Falk</td><td>60 %</td><td>60 %</td><td>none</td>
		</tr><tr class="GridViewPagerStyle">
			<td colspan="6"><table>
				<tr>
					<td><span>1</span></td><td><a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Page$2')">2</a></td>
				</tr>
			</table></td>
		</tr>
	</table>
</div>
    <div>
	<table cellspacing="0" rules="all" border="1" id="ContentPlaceHolder1_DetailsView1" style="height:50px;width:125px;border-collapse:collapse;">
		<tr>
			<td>First Name</td><td><input name="ctl00$ContentPlaceHolder1$DetailsView1$ctl02" type="text" title="First Name" /></td>
		</tr><tr>
			<td>Last Name</td><td><input name="ctl00$ContentPlaceHolder1$DetailsView1$ctl03" type="text" title="Last Name" /></td>
		</tr><tr>
			<td>Commission</td><td><input name="ctl00$ContentPlaceHolder1$DetailsView1$ctl04" type="text" title="Commission" /></td>
		</tr><tr>
			<td>HLB Commission</td><td><input name="ctl00$ContentPlaceHolder1$DetailsView1$ctl05" type="text" title="HLB Commission" /></td>
		</tr><tr>
			<td>E-mail</td><td><input name="ctl00$ContentPlaceHolder1$DetailsView1$ctl06" type="text" title="E-mail" /></td>
		</tr><tr>
			<td>Password</td><td><input name="ctl00$ContentPlaceHolder1$DetailsView1$ctl07" type="text" title="Password" /></td>
		</tr><tr>
			<td colspan="2"><a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$DetailsView1$ctl08','')">Insert</a>&nbsp;<a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$DetailsView1','Cancel$-1')">Cancel</a></td>
		</tr>
	</table>
</div>


    <script type="text/javascript">
        $(function ()
        {
            $('.GridView tr:odd:not(.GridViewPagerStyle').addClass('GridViewAlternatingRowStyle');
        });
    </script>

        </section>
        <footer></footer>
    </div>
    
<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="401675B3" />
	<input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="765hAsp1J4hBr9Wzv/87x71POw0/P312hJ83ZXDTxtbpy+R7TEGWPr9XwoTVtBj0fVvDR57DY29S8UwZIdkgGEWPtG+/+crEaKFUE7yhKEKFDDi0mulE37Gnz2LsYP59AUDzuXtzGd57860d2MTmcQBQQ3NY78b3yOlRiSBtHv4c4hjfBbNW9NNdiuRyF6Hgmu+/H5HM++959fKe/RalFz6IhmhpshOK9XnnWt7DAsd/Cu4zgTOlJVyjj6mllNcpSlW8mUgB/1r0Th+/Y/OGx6WS+GtppdTzu1i8tUewIxMJIdQMVp8z4CI6x06NsWYfCe2mkv8JGFxACAr67fnKeW4s/LHwC0w4bSaTOeKV2GqaHCwPOyrRjkn/YRn4y/p+iQiz2qkeuGAJikEfxUZJZdzRzB58imL5eFaPmfgX4JuM34J5/YTM+HjEsTpshVE5snn0biKGKqJmhNM1MpK8Oh43Nq0fv5sX15ZdxUImLlCS5Paz/xrmlRGAPtsRa8SGAqHZvtetUtHiuy+76aZrZ6HL+ywlmpIpTayUwVQP8U9LQYIf1asHk8y5QFbbSX7NAQshED/0SX3f24L18rUr9VVRCb+OhXNyYeLHOQiMJ/+hyBxd/oZDJBvLRTaTuurmYCtBkAdehlMwO0E0QPs11euMTNcD+nO/ERMri3Q8HMDbdVN76fiJZoqHNTzByG1wm1/KpwOe+eJx85e4WdFTjZKsms7N82fJmuyIuUd35caJXyPVZ2ZRBX0kZf3lIUxT6BYw3uop58JPmjlniwObfKaLy/Mfd/1X4n1cIJquHjp1AJHDlhkVfGsbYTD1nOcWFDhlH8mEdHBgrRVsrPaxvg==" />
</div>
<script type='text/javascript'>new Sys.WebForms.Menu({ element: 'Menu1', disappearAfter: 500, orientation: 'horizontal', tabIndex: 0, disabled: false });</script></form>

<!-- Visual Studio Browser Link -->
<script type="application/json" id="__browserLink_initializationData">
    {"appName":"Internet Explorer","requestId":"0e29479dcbe4430a99f159c5a0b35741"}
</script>
<script type="text/javascript" src="http://localhost:49408/61c2259f8ca44a5091fc594199828e35/browserLink" async="async"></script>
<!-- End Browser Link -->

</body>
</html>
Reply With Quote
  #27 (permalink)  
Old February 5th, 2015, 09:17 PM
Registered User
Points: 29, Level: 1
Points: 29, Level: 1 Points: 29, Level: 1 Points: 29, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a skin setup for the GridView, but I do not need to include GridViewAlternatingRowStyle there, right? Just addClass in jquery and define the class in my style sheet.
Reply With Quote
  #28 (permalink)  
Old February 5th, 2015, 09:19 PM
Registered User
Points: 29, Level: 1
Points: 29, Level: 1 Points: 29, Level: 1 Points: 29, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by vbboyd View Post
You know what? I owe you an appology. My bad. I way over-reacted. Must be the Irish in me. Sorry about that. I found the error and it was something really stupid. I placed the line for the jquery in managemaster page in the wrong place. I fixed this problem. A very simple mistake led to a big error. I was wrong I stand corrected. My bad once again.
Also, this is what I was referring to.
Reply With Quote
  #29 (permalink)  
Old February 5th, 2015, 09:28 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Okay

Oh okay. I stand corrected.
Reply With Quote
  #30 (permalink)  
Old February 6th, 2015, 04:11 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Take a look at this:

Code:
 <script src="Scripts/jquery-2.1.3.min.js"></script>
This will search for the Scripts folder relative to the page which may not be what you want. It will work for pages in the root but not for pages in sub folders.

You should use a root based URL instead:

Code:
<script src="/Scripts/jquery-2.1.3.min.js"></script>
Alternatively let ASP.NET figure out the location by using a ScriptReference as explained in Chapter 11.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Last edited by Imar; February 6th, 2015 at 04:23 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
move_uploaded_file frustration plugnz BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 February 18th, 2010 07:59 AM
Frustration with VB Editor jeremy1048 Access 3 October 26th, 2007 01:10 PM
Pure ASP Upload ozzii Classic ASP Professional 1 January 8th, 2007 06:41 PM
using a expression causing frustration s.wright Access VBA 1 July 26th, 2006 03:37 PM
ComboBox Mayhem Frustration. snw C# 1 November 28th, 2005 05:06 AM



All times are GMT -4. The time now is 05:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.