|
|
Hi
Abhijeet thanks for ur reply man but iwas not able to find any thing on google with javascript, do you have any link or any javascript code ?
|
|
|
|
|
Hi
I have a project that when a certain event occurs in the websit a report is generated
with crystal reports and then loaded on another page which opens infront of the parent page,
is there some way that i can disable the parent page while the child page is still loading , without using
a modal dialog .??
A proplem I've encountered with the modal dialog is that when i want to print or download the report another page opens when I click the export or print button on the reportviewer.
modified on Thursday, December 18, 2008 5:51 AM
|
|
|
|
|
The thing i was actually looking for was javascript thickbox , it grays out the main page, lets it look like its disabled
|
|
|
|
|
Is it possible to embed a MPC into a html? If not, is there any other media player (that supports .flv)can be insert into a html?
Thanks
Merry X'mas.... ^_^
|
|
|
|
|
|
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 error ? 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: <asp:TextBox ID="VideoQuery" runat="server"></asp:TextBox>
Author:
<asp:TextBox ID="Author" runat="server"></asp:TextBox><br />
<br />
Category:
<asp:TextBox ID="CategoryQuery" runat="server"></asp:TextBox><br />
<br />
Order By:
<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?
<asp:CheckBox ID="Racy" runat="server" /><br />
<br />
In Timeframe
<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>
<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>
|
|
|
|
|
Hi All,
Can any one help me for the following please.
I have an image on Main page this image is a link to the popup page. Wehn you click on the image it shows you a popup page where you can do some actions, I am asking user to insert some information into the database on this popup.
Whenuser insertes a record I need to change the image on main page i.e if Image souurce was image1.jpg I want to change it to image2.jpg.
Any ajax , c# or Javascript code will do to me.
Thanks in advance
modified on Wednesday, December 17, 2008 11:20 AM
|
|
|
|
|
If you have an id assigned to your <img> tag, such as <img src="image1.jpg" id="foobar">
You could execute certain code on a onclick or onblur event:
<a href="#" onclick="changeImage()">
The javascript code itself would be:
changeImage()
{
var i = new Image();
i.src = "/images/image2.jpg";
document.getElementById("foobar").src = i.src;
}
Hope this helps,
m1ke
places.ae
|
|
|
|
|
Hi i have a dataset ? i want to filter it based on some value i.e it conntains Department ID columsn and i want to filter based on a particular ID ...
Please give ur valuable suggestions . Thanks in advance
|
|
|
|
|
Hi phani420,
maybe you could use the DataSet.Tables.Select() method. There you can pass a string (select-stmt) to get all rows matching the passed criteria.
Does this help you?
Regards
Sebastian
|
|
|
|
|
Yes .. Thanks
|
|
|
|
|
Hello Everyone
I am woking on asp.net 2.0 and i am using a Freetextbox control but does'nt works on Safari 3.0.4 browser.
I want a Freetextbox like control that will support in all the browsers like IE6, IE7, Mozilla, Safari etc.
Thanks in advance
Saurabh Agarwal
|
|
|
|
|
Dear Friends ,
I have dot net application ? is it possible to integrate with TOMCat . if s please list down the approach for that .. need very urgently and confirmation wellfor the same.
|
|
|
|
|
I searched a lot on Internet but failed to find any .net installed that can configure itself in TOMCAT.
Server Installation Requirements:
"Internet Information Services (IIS) version 5.0 or later. To access the features of ASP.NET, IIS with the latest security updates must be installed prior to installing the .NET Framework. ASP.NET is supported only on the following platforms: Microsoft Windows 2000 Professional (Service Pack 3 recommended), Microsoft Windows 2000 Server (Service Pack 3 recommended), Microsoft Windows XP Professional, and Microsoft Windows Server 2003 family"
Check out:
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en
I don't think, .net will work on Tomcat. You can search over internet for a compatible installer.
|
|
|
|
|
Hi friends,
I have add a embded windows media player in my site using following code,
<object id="wmp" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" style="width: 475px;
height: 367px;" type="application/x-oleobject" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/">
<param name="URL" value="<%=url_filename %>"/>
<param name="enabled" value="True"/>
<param name="AutoStart" value="True"/>
<param name="PlayCount" value="0"/>
<param name="Volume" value="50"/>
<param name="balance" value="0"/>
<param name="Rate" value="1.0"/>
<param name="Mute" value="False"/>
<param name="fullScreen" value="False"/>
<param name="uiMode" value="full"/>
<param name="ShowStatusBar" value="True" />
<param name="SendPlayStateChangeEvents" value="True" />
<param name="autorewind" value="True" />
</object>
But its not supporting many formats is there is any way to code such that it will accept some additional formats
and one more problem is i uploaded this in server but some formats which can play in my system cant supported in other systems.
|
|
|
|
|
B87 wrote: i uploaded this in server but some formats which can play in my system cant supported in other systems
Embedded objects run on the client side, so the supported formats depend on the codecs that are installed on the client's system. The best solution to this is to simply use a standard format such as MP3 or WMA so that it plays on all systems.
|
|
|
|
|
Hi, How can I create a move next command in my dataset???
<br />
Dim DS As New DataSet<br />
<br />
TextBox1.Text = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() + 1).Item("ITEM_NAME")<br />
This code that I've used just give a move last command and i can't figure out how to the move next so that I can look for the items in my data base one-by-one.
can you give me some solution?
Thanks a lot in advance.
|
|
|
|
|
Hi Meki,
what you are trying to implement is a enumerator. You could use the enumerator of the DataRowCollection.
<br />
IEnumerator oEnum = DS.Tables[0].Rows.GetEnumerator();<br />
while(oEnum.MoveNext()) {<br />
DataRow rowCurrent = oEnum.Current as DataRow;<br />
Textbox1.Text = rowCurrent.Item["ITEM_NAME"].ToString();<br />
}<br />
I hope this helps you.
Regards
Sebastian
|
|
|
|
|
Don't keep posting to every forum you can find, instead read the anserws you have been given...................
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I have developed a dll in .net. I am displaying the object in an aspx page with the following code:
<object classid="http:BrowserBin/BKDocuments.dll#BKDocuments.DocBrowserAppControl"
id="DocBrowserApp" name="DocBrowserApp" width="800" height="500">
</object>
I have the IIS set to scripts only. And I have the Mime type set.
Once the website is deployed, the object is displayed properly only on the development machine on which I developed the app.
From any other machine, the object does not load. I have adjusted all zones to be fulltrust...just to try to get this to work.
I was hoping someone would have some idea of where I might begin to debug this problem. Thanks
|
|
|
|
|
Hello folks,
I am working on Delphi since more than a week now.
Since then I have been trying to consume a web service created in C# .NET using a Delphi desktop application.
Can someone please help me with the issue I have here:
My web service has two methods:
1. One doesn't take any parameters & returns a text data.
2. Takes a string parameter & returns a string data.
My problem here is, I can call 1st method without any problem, but when I call second method, I get nothing out of that method. Same two methods work absolutely fine in C# .NET.
Can you please help me out, I can't find any way out of it.
|
|
|
|
|
Hi,
if I understood you right the problem is, that the parameter you pass is null for the second method. Maybe there is a problem with filling the SOAP-request for the second method. Check the wsdl of your service, how the request must look like (especially the parameter) and then try to use a tcp-monitor to check if your delphi application puts the passed string in the correct field of the request.
I'm just guessing, so I hope this helps you a bit.
Regards
Sebastian
|
|
|
|
|
Hey I am receiving 3 errors in this code, I am using 2008 web developer with C#, any help would be greatly appreciated. I want to see other peoples' opinions before I display my own for an unbiased opinion. Thanks
Errors: (...this.txtSearch.Text; )
(...GetIDSimple(entry...)
(...this.lblresults.text)
_____________________________________________________
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Google.GData.Client;
using Google.GData.Extensions;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string url = "http://gdata.youtube.com/feeds/videos?q=" + this.txtSearch.Text;
AtomFeed myFeed = GetFeed(url, 1, 15);
DisplayFeed(myFeed);
}
private static AtomFeed GetFeed(string url, int start, int number)
{
System.Diagnostics.Trace.Write("Conectando youtube at " + url);
FeedQuery query = new FeedQuery("");
Service service = new Service("youtube", "exampleCo");
query.Uri = new Uri(url);
query.StartIndex = start;
query.NumberToRetrieve = number;
AtomFeed myFeed = service.Query(query);
return myFeed;
}
private void DisplayFeed(AtomFeed myFeed)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
foreach (AtomEntry entry in myFeed.Entries)
{
#region render each
sb.Append("<br /><b>Title:</b> ");
sb.Append(entry.Title.Text);
sb.Append("<br /><b>Categories:</b> ");
foreach (AtomCategory cat in entry.Categories)
{
sb.Append(cat.Term);
sb.Append(",");
}
sb.Append(RenderVideoEmbedded(getIDSimple(entry.Id.AbsoluteUri)));
sb.Append("<br /><b>Published on:</b> ");
sb.Append(entry.Published);
#endregion
}
this.lblResults.Text = sb.ToString();
}
private string RenderVideoEmbedded(string idSimple)
{
return string.Format("<div id=\"video{0}\"><object width=\"425\" height=\"355\"><param name=\"movie\" value=\"http://www.youtube.com/v/{0}&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/{0}&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"355\"></embed></object></div>", idSimple);
}
}
|
|
|
|
|
Aehm, well and the errors are? What kind of errors do you get? Compiler, runtime? Maybe the textbox and the label are not declared. Same with the getIDSimple-method.
|
|
|
|