OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Search and Result tutorials do not work with my masterpages

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Search and Result tutorials do not work with my masterpages
Page: [1]
 
photofly

 

Posts: 1
Joined: 9/28/2009
Status: offline

 
Search and Result tutorials do not work with my masterp... - 9/28/2009 12:22:57   
I have had this problem before and had decided to just use a different method to return the info since eveything I tried did not seem to work.
Now I have to fix it.
I've learned a little since June and have used both the homepage doctor and microsoft expression tutorials and I can get them to work fine on a blank asp page. But when I combine that with my masterpages for my site, I do not get any results. I think it has something to do with the form tags but I'm still not sure. Here is my code for both pages
Thanks for any help you cna give
Brandi Long

This is the Search page
<%@ Page language="C#" masterpagefile="MainContent.master" title="Electrical Storage" %>
<asp:Content id="Content1" runat="server" contentplaceholderid="Content">
<div id="Rightside" class="Rightside">
<form id="form1">
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp:Button id="Button1" runat="server" PostBackUrl="ElecResults.aspx" Text="Search" />
</form>
</div>
</asp:Content>

This is the results page
<%@ Page language="C#" masterpagefile="Results.master" title="Untitled 1" %>
<asp:Content id="Content1" runat="server" contentplaceholderid="resultscontent">
<form id="form1">
<asp:GridView id="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1">
<Columns>
<asp:boundfield DataField="CoID" HeaderText="CoID" SortExpression="CoID">
</asp:boundfield>
<asp:boundfield DataField="ProjClass" HeaderText="ProjClass" SortExpression="ProjClass">
</asp:boundfield>
<asp:boundfield DataField="Project" HeaderText="Project" SortExpression="Project">
</asp:boundfield>
<asp:boundfield DataField="FileName" HeaderText="FileName" SortExpression="FileName">
</asp:boundfield>
<asp:boundfield DataField="FileAddInfo" HeaderText="FileAddInfo" SortExpression="FileAddInfo">
</asp:boundfield>
<asp:boundfield DataField="Location" HeaderText="Location" SortExpression="Location">
</asp:boundfield>
</Columns>
</asp:GridView>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="App Data/browser.mdb" SelectCommand="SELECT [CoID], [ProjClass], [Project], [FileName], [FileAddInfo], [Location] FROM [ElectricalFiles] WHERE ([CoID] LIKE '%' + ? + '%')">
<SelectParameters>
<asp:formparameter FormField="TextBox1" Name="CoID" Type="String" />
</SelectParameters>
</asp:AccessDataSource>
</form>

</asp:Content>

Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Search and Result tutorials do not work with my masterpages
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts