|
You can force a download. What you want to do is link to another file that outputs the img along with a "force download" header. Look up the following headers (or their asp equivalents):
"Content-Transfer-Encoding", "binary"
"Content-type: application/octet-stream"
"Content-Transfer-Encoding", "binary"
'Cache-Control: maxage=3600'
'Pragma: public'
'Content-Disposition: attachment; filename="yourimage.jpg"'
|
|
|
|
|
Hi all,
I want to use Ajaxtoolkit:Accordion for listing some title and some content.
My code is here in aspx :
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ArticleConnectionString %>"
SelectCommand="SELECT [Title], [Abstract] FROM [Articles]">
</asp:SqlDataSource>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<ajaxToolkit:Accordion ID="acc1" runat="server" DataSourceID="SqlDataSource1" >
<HeaderTemplate>
<a href="" onclick="return false"><%#DataBinder.Eval(Container.DataItem, "Title")%> </a>
</HeaderTemplate>
<ContentTemplate>
<%#DataBinder.Eval(Container.DataItem, "Abstract")%>
</ContentTemplate>
</ajaxToolkit:Accordion>
But i want to do this work via DataSet.
How i can do this in CodeBehind using DataSet?
I really need your help,
Thank You.
Hoda
|
|
|
|
|
I am trying a method="get" to bring in or select or link to another page but nothing is working i'm need help with the input statement or the method or action?
|
|
|
|
|
explain more about what you are trying to do. & post code.
|
|
|
|
|
Here is a link to Absolutely Free Flash Slide Show Service
http://slideshow.citronsoftwares.com

|
|
|
|
|
And here's[^] a list to your competitors that are also free. Why should I use yours, especially after this unsolicited ad?
I are troll
|
|
|
|
|
because it does not show created by ad like the most present on the net 
|
|
|
|
|
It shoved itself under my attention whilst I was reading a programming forum. It may actually be better than the competition, or easier to use, or just plain cool - but I will never find out, since I'm not inclined to test a slideshow-creator when I see a URL. Would you download an application when you saw a forum-post without much explanation? It might be a virus for all I know..
There are also non-intrusive ways of getting the word out. Just some suggestions, I'm not a marketing-man;
- Add a hyperlink to your signature
- Write an article
- Put some samples on the web, giving a stunning demo of what can be achieved with your app
- Find some people who are building slideshows, and give them free testversions
Just some idea's
I are troll
|
|
|
|
|
|
i just want to know what is web service and how to consume a service into a web page ?
abdul.rahman
|
|
|
|
|
Let me Google that for you[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Here is my CSS and source code. I CANNOT get the two scripts to line up side by side in the MultiView???? Why???? I have tried padding, absolute position, relative position, margins, etc. Help would be appreciated. Thanks!!!!!
#widget
{
padding-top:20px;
padding-left: 20px;
border: solid 2px white;
}
#widget1
{
padding-top:20px;
margin-left:300px;
border: solid 2px white;
}
<%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeFile="Financials.aspx.cs" Inherits="Financials_Financials" ViewStateEncryptionMode="Always" %>
<asp:Content ID="myText" ContentPlaceHolderID="cphContent" Runat="Server">
<asp:MultiView ID="mViewMain" runat="server">
<asp:View ID="CustomerView" runat="server">
<asp:Panel ID="panelNavigationView1" runat="server"
CssClass="TabContainer">
<asp:Label ID="labOne" runat="server"
Text="Customer Information"
CssClass="TabItemActive"/>
<asp:LinkButton ID="lnkb_DefaultBook" runat="server"
CssClass="TabItemInactive"
Text="Customer Book Selections"
OnCommand="LinkButton_Command"
CommandName="Book" />
<asp:LinkButton ID="lnkb_DefaultCategories" runat="server"
CssClass="TabItemInactive"
Text="Customer Categories"
OnCommand="LinkButton_Command"
CommandName="Categories"/>
</asp:Panel>
<asp:Panel ID="panelView1" runat="server"
CssClass="ContentPanel">
<big><div id="widget">
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('b7341d7c-5c43-4ca1-b195-a262bee5dad4');</script><noscript>Get the <a href="http://www.widgetbox.com/widget/live-global-stock-market-ticker">Live Global Stock Market Ticker</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>!</noscript>
</div>
<div id="widget1">
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('7989a535-3c46-42ca-a0c3-51a13260de4d');</script><noscript>Get the <a href="http://www.widgetbox.com/widget/index-futures-quotes-inocom">Index Futures Quotes - INO.com</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>!</noscript>
</div></big>
<asp:Button ID="view1Next" runat="server" Width="6em"
Text="Next"
CommandName="NextView" />
</asp:Panel>
</asp:View>
<asp:View ID="BookView" runat="server">
<asp:Panel ID="panelNavigationView2" runat="server"
CssClass="TabContainer">
<asp:LinkButton ID="lnkb_BookCustomer" runat="server"
CssClass="TabItemInactive"
Text="Customer Information"
OnCommand="LinkButton_Command"
CommandName="Customer" />
<asp:Label ID="Label3" runat="server"
Text="Customer Book Selections"
CssClass="TabItemActive"/>
<asp:LinkButton ID="lnkb_BookCategories" runat="server"
CssClass="TabItemInactive"
Text="Customer Categories"
OnCommand="LinkButton_Command"
CommandName="Categories"/>
</asp:Panel>
<asp:Panel ID="panelView2" runat="server"
CssClass="ContentPanel">
<asp:Button ID="view2Back" runat="server" Width="6em"
Text="Previous"
CommandName="PrevView" />
<asp:Button ID="view2Next" runat="server" Width="6em"
Text="Next"
CommandName="NextView" />
</asp:Panel>
</asp:View>
<asp:View ID="CategoriesView" runat="server">
<asp:Panel ID="panelNavigationView3" runat="server"
CssClass="TabContainer">
<asp:LinkButton ID="lnkb_CategoriesCustomer" runat="server"
CssClass="TabItemInactive"
Text="Customer Information"
OnCommand="LinkButton_Command"
CommandName="Customer" />
<asp:LinkButton ID="lnkb_CategoriesBook" runat="server"
CssClass="TabItemInactive"
Text="Customer Book Selections"
OnCommand="LinkButton_Command"
CommandName="Book"/>
<asp:Label ID="Label4" runat="server"
Text="Customer Categories"
CssClass="TabItemActive"/>
</asp:Panel>
<asp:Panel ID="panel3" runat="server"
CssClass="ContentPanel">
<asp:Button ID="view3Prev" runat="server" Width="6em"
Text="Previous"
CommandName="PrevView" />
<asp:Button ID="view3First" runat="server" Width="6em"
Text="Start"
CommandName="SwitchViewByIndex"
CommandArgument="0" />
</asp:Panel>
</asp:View>
</asp:MultiView>
</asp:Content>
|
|
|
|
|
can you use css?
float:left;
width:200px;
|
|
|
|
|
I have tried simple stored procedures to return recordset
like : Select * From
It is running good, giving proper out put.
But If I am making it bit complicated then recordset is returning -1 recordcount
e.g. : Select Count(bId) as cntBid from bTable
This stored procedure is running well in SQL Server 2005, but if I am caling them in ASP pages it is returning me -1 recordcount.
Please Help me
Kiran Sajanikar
|
|
|
|
|
you seem to be asking the same question multiple times.
show us all the necessary code as to how you are calling your priocedure and what your procedure looks like.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
This is stored procedure
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[test1]
AS
--Select * From blog
Select Max(blogID) as cntId from blog
ASP code to call Stored procedure
Code 1:
dim rsTemp, strSql strSql = "Exec test1"
set rsTemp = Server.CreateObject("ADODB.Recordset")
rsTemp.Open strSql, con, 1, 3
Response.Write rsTemp.RecordCount
Code 2:
------------
dim cmd, rsTemp, strSql
set rsWork = Server.CreateObject("ADODB.Recordset")
set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = con
cmd.CommandText = "test1"
set rsTemp = cmd.Execute
Response.Write rsTemp.RecordCount
Kiran Sajanikar
|
|
|
|
|
It's returning -1 due to the type of cursor the recordset is using. Google recordset cursors - you need one that's dynamic.
Make a program idiot proof and a better idiot will come along.
|
|
|
|
|
Hi all
I have a form. In this form, there's a text box and a submit button.
The problem is that I have to check what user puts to the text box before he can submit form. If the text box is blank I want to alert a error message(not a alert message) to the form.
I intend to use a <span> tag to block a error message. The code as bellow:
<script language="javascript">
function f_check()
{
//how to change the attribute <b>display:none</b> to <b>display:block</b> to show the message
}
</script>
<input type="text" id="txt_id">
<span id="span_id" style="color: Red; display:none;">Required Information</span>
<input type="submit" id="btn_id" onclick="return f_check();"></input></input>
Thanks in advanced
[N][Q][H]
|
|
|
|
|
This should get you started. You need to clean up the code, for instance the toggle_visibility is not what you need.
function f_check()
{
var str = document.getElementById('txt_id').value;
if(str.length == 0)
toggle_visibility('span_id');
}
function toggle_visibility(id)
{
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Please Help I want Create Job Portal Like(www.Rozee.pk)
IF any One Have Idea or Documantion or Screenshots or Templete About Job Portal Then tell me
I am Thank Full for this Act.
|
|
|
|
|
|
I doubt that you want to create such a portal from scratch, as it's a lot of work. Especially since there's a starter-kit[^] from Microsoft. These starter-kits are an excellent point to start of your journey.
Good luck
I are troll
|
|
|
|
|
Hello
I want to install visual studio 2003 on vista home premium but I can not select web development option. I have chedked IIS and FPSE and about IIS is there but I dont know about FPSE. But I can install without web development but want web developent feature.
so could you please help me how to install visual studio 2003 with web development on vista home premium
I have install .net framework 1.1 with SP1
Enable IIS 6.0 compatibility
I Make sure IIS permits running ASP.NET. in ISAPI and CGI Restrictions
but still same
waiting for your kind help
thank you
|
|
|
|
|
Visdta Home Premium has some known issues for VS Installation. But anyway, you can use the following link and I hope it helps you:
http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/how-to-setup-asp-net-v1-1-visual-studio-net-2003-projects-on-iis7-vista.aspx
Either you love IT or leave IT...
|
|
|
|
|
using reflection's type.getmethods(), i was able to get MethodInfo of a class.
How do i use MethodInfo.Invoke() to execute a non static method present in a class?
How do i create a instance of the class?
|
|
|
|