Click here to Skip to main content
15,907,326 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How to change the color of Div based scrolls in Mozilla firs fox ? Pin
King Shez18-Dec-08 19:47
King Shez18-Dec-08 19:47 
GeneralRe: How to change the color of Div based scrolls in Mozilla firs fox ? Pin
Shog919-Dec-08 4:25
sitebuilderShog919-Dec-08 4:25 
GeneralRe: How to change the color of Div based scrolls in Mozilla firs fox ? Pin
King Shez18-Dec-08 19:50
King Shez18-Dec-08 19:50 
QuestionDisable Parent page Pin
Armandt__17-Dec-08 22:17
Armandt__17-Dec-08 22:17 
AnswerRe: Disable Parent page Pin
Armandt__18-Dec-08 19:49
Armandt__18-Dec-08 19:49 
QuestionEmbed Media Player Classic (MPC) into a html Pin
alexyxj17-Dec-08 21:31
alexyxj17-Dec-08 21:31 
AnswerRe: Embed Media Player Classic (MPC) into a html Pin
Abhijit Jana21-Dec-08 17:37
professionalAbhijit Jana21-Dec-08 17:37 
QuestionSource Error setup help Pin
bmx463717-Dec-08 8:26
bmx463717-Dec-08 8:26 
I am getting this error in my browser when I debug my site, code is at the bottom.
The build works and no errors show in the 2008 web developer, yet this shows up when I try to view. I don't understand because if I was missing a reference that contained 'SearchYouTubeSource' wouldn't it show an errorConfused | :confused: ? Anybody can explain this for me? Thanks

(By the way I know I have no a href links in my body)

_______________________________________________

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'SearchYouTubeSource' could not be found.]
System.Web.UI.WebControls.ObjectDataSourceView.GetType(String typeName) +1122515
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1171
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +44
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

_________________________________________________

vvvvv Default.aspx.cs has this code in it vvvvv
_________________________________________________

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class SearchVideos : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Search_Click(object sender, EventArgs e)
{
this.SearchYouTubeSource.Select();
}
}
________________________________________
vvvv Default.aspx has this code vvvvv
________________________________________

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="SearchVideos" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Search YouTube</title>
</head>
<body>
<form id="form1" runat="server">
<a href="default.aspx">Your Videos</a>
<a href="">Most Popular</a>
<a href="">Your Playlists</a>
<a href="">Most Commented</a>
<b>Search YouTube</b>
<div>
<br />
This will be searching the top rated video feed.<br />
<br />
Video Query: &nbsp;&nbsp; &nbsp;<asp:TextBox ID="VideoQuery" runat="server"></asp:TextBox>
&nbsp; &nbsp; Author:
<asp:TextBox ID="Author" runat="server"></asp:TextBox><br />
<br />
Category: &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;
<asp:TextBox ID="CategoryQuery" runat="server"></asp:TextBox><br />
<br />
Order By: &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
<asp:DropDownList ID="Relevance" runat="server">
<asp:ListItem Value="relevance">Relevance</asp:ListItem>
<asp:ListItem Value="published">Published</asp:ListItem>
<asp:ListItem Value="viewCount">ViewCount</asp:ListItem>
<asp:ListItem Value="rating">Rating</asp:ListItem>
</asp:DropDownList><br />
<br />
Include Racy? &nbsp;
<asp:CheckBox ID="Racy" runat="server" /><br />
<br />
In Timeframe &nbsp;&nbsp;
<asp:DropDownList ID="Timeframe" runat="server">
<asp:ListItem>All Time</asp:ListItem>
<asp:ListItem>Today</asp:ListItem>
<asp:ListItem>This Week</asp:ListItem>
<asp:ListItem>This Month</asp:ListItem>
</asp:DropDownList>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<asp:Button ID="Search" runat="server" Text="Search YouTube" OnClick="Search_Click" /><br />
<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SearchYouTubeSource">
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
<asp:BoundField DataField="Uploader" HeaderText="Uploader" SortExpression="Uploader" />
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
<asp:BoundField DataField="Author" HeaderText="Author" SortExpression="Author" />
<asp:BoundField DataField="Content" HeaderText="Content" SortExpression="Content" />
<asp:BoundField DataField="WatchPage" HeaderText="WatchPage" SortExpression="WatchPage" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="SearchYouTubeSource" runat="server" SelectMethod="Search" TypeName="ListVideos">
<SelectParameters>
<asp:ControlParameter ControlID="VideoQuery" Name="videoQuery" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="Author" Name="author" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="Relevance" Name="orderby" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter ControlID="Racy" Name="racy" PropertyName="Checked" Type="String" />
<asp:ControlParameter ControlID="Timeframe" Name="time" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter ControlID="CategoryQuery" Name="category" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</form>
</body>
</html>
QuestionSwapping image + server side script [modified] Pin
Naveed Kamboh17-Dec-08 5:11
Naveed Kamboh17-Dec-08 5:11 
AnswerRe: Swapping image + server side script Pin
Michael Hendrickx19-Dec-08 3:54
Michael Hendrickx19-Dec-08 3:54 
QuestionFilter a Dataset Pin
phani42016-Dec-08 21:54
phani42016-Dec-08 21:54 
AnswerRe: Filter a Dataset Pin
SeMartens16-Dec-08 23:12
SeMartens16-Dec-08 23:12 
GeneralRe: Filter a Dataset Pin
phani42016-Dec-08 23:27
phani42016-Dec-08 23:27 
QuestionFreetext box Like Control Pin
Member 400664816-Dec-08 21:05
Member 400664816-Dec-08 21:05 
QuestionRun Dot net application on TOMCAT Pin
phani42016-Dec-08 20:51
phani42016-Dec-08 20:51 
AnswerRe: Run Dot net application on TOMCAT Pin
Aman Bhullar21-Dec-08 20:28
Aman Bhullar21-Dec-08 20:28 
QuestionEmbded media player Pin
B8716-Dec-08 20:43
B8716-Dec-08 20:43 
AnswerRe: Embded media player Pin
L. Madhavan16-Dec-08 21:19
L. Madhavan16-Dec-08 21:19 
QuestionHow to do a movenext into your data??? Pin
meki_211816-Dec-08 15:06
meki_211816-Dec-08 15:06 
AnswerRe: How to do a movenext into your data??? Pin
SeMartens16-Dec-08 23:19
SeMartens16-Dec-08 23:19 
AnswerPosted all over the place, been answered multiple times. Pin
Ashfield16-Dec-08 23:58
Ashfield16-Dec-08 23:58 
Questionobject not displaying on web page Pin
Tabb Smith16-Dec-08 14:59
Tabb Smith16-Dec-08 14:59 
Question.net web service in delphi Pin
Milin Thosani16-Dec-08 9:38
Milin Thosani16-Dec-08 9:38 
AnswerRe: .net web service in delphi Pin
SeMartens16-Dec-08 23:35
SeMartens16-Dec-08 23:35 
QuestionSome errors on test site - help Pin
bmx463716-Dec-08 8:21
bmx463716-Dec-08 8:21 

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.