|
If you want the output of all of the pages on one page the you should call server.
i dont really understand by what means you are talking about?
how can i do that then? please read my requirement in the above message,is it possible to do that in your way, if so can you please explain little more how to do the same
waiting for you reply thanks in advance
|
|
|
|
|
|
Hello all.
i got one doubt that, each page has its own response rt??
here i am trying to open the pages in loop,
my code is
for (int i =0 ; i <=1 ;i++)
{
response.write("
|
|
|
|
|
How is it possible to browse to one of the .rdl reports in the sql server reporting services on the report server?
At present I can succesfully browse to the report by:
http://servername/reports
then I see a folder called "ReportFiles" which holds the reports (.rdl files)
then I click on one of the .rdl files in there to see the report.
I have managed to do this using the reportviewer.
The question now is, do you know why I do not get some of the functionalities such as export or the backbutton inside the viewer control whereas if I do not use the browser, and just browse to the report usingthe url outside the asp.net, I then get these functionalities.
Any thoughts please?
Thanksmodified on Thursday, February 11, 2010 9:31 AM
|
|
|
|
|
The functionalities are all there. Thank you.
|
|
|
|
|
i cant get you , which one you are talking about?
|
|
|
|
|
This is now solved.
All the functionalities seem to be present.
Thank you
|
|
|
|
|
Hi,
I want to build my own widget and put it in my website. How can I do this?
Thanking You!
Rock Star
|
|
|
|
|
<button>I am a Widget</button>
If you want a more complex widget you would have to give a tad bit more detail.
|
|
|
|
|
Hello,
I want to make a picture transparent. Because, I want get back the picture appear.This file is jpg extension.
How do i, thanks.
|
|
|
|
|
Consult with someone who knows photoshop or any other photo editing tool.
|
|
|
|
|
Thanks , but I do not do Photoshop. I do it on Asp.Net.
|
|
|
|
|
u can never achieve that in ASP.net, u need designers help for sure
|
|
|
|
|
if possible file extension png or GIFF?
|
|
|
|
|
|
Dear Friend
I have one Grid contain hyperlink control, i want to set its visibility depend on Login Group, If User is "Guest" then User can not access the link but if that user is "Authorized" he can access that link.
For this, i have created following code
Form Syntex Level Code:
public partial class frmTest : System.Web.UI.Page
{
private bool IsVisible
{
get { return (Session["G_UserGroup"] == "9") ? true : false; }
}
}
Form Design:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmTest.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:GridView ID="gvwOrders" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" AllowSorting="True" OnSorting="gvwOrders_Sorting" EnableViewState="False">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:TemplateField HeaderText="Link">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="http://www.google.com"
Visible='<%# Eval("IsVisible") %>'>Link</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</form>
</body>
</html>
I try to use this way as Eval is use to access different properties.
Please help me as i m going right way but issue is in syntex.
Thanks and regardssasmi
|
|
|
|
|
yes, it is right, are you facing any problem in this?
|
|
|
|
|
when i run this it giving error
"DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'IsVisible'."Sasmi
|
|
|
|
|
why don't you set the visibiltiy to false in the method where you bind the grid?
this is easier.
|
|
|
|
|
You have got to mark the property as public to access it from the markup. Change the "IsVisible" property's access specifier to "public " and your code will work.
HTH!
|
|
|
|
|
I have change the property to public but still showing error
"DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'IsVisible'."Sasmi
|
|
|
|
|
Modify the gridview code where you set the visible property like this.
Visible='<%# IsVisible %>'
|
|
|
|
|
Yes,
Thanks now it working fine....
can i access any class property using this syntex?
Thank you very muchSasmi
|
|
|
|
|
hi! i've seen that you've solved your problem. but you can use also
<%=Server.HtmlEncode(IsVisible) %> when you use IsVisible function to return a string (parse true to "true" and false to "false")
|
|
|
|
|
Hi,
I am trying to use the Sqlcachedependency in my application but am getting error...
step1) Enabled notification service of the database
step2) enabled notification service of the Table
step3) coding in asp.net2.0
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
DataTable tbl1 = new DataTable();
tbl1 = (DataTable) Cache.Get("tbl");
if (tbl1 == null)
{
tbl1 = fnloadgrid();
lbl.Text = System.DateTime.Now.ToString();
}
grd.DataSource = tbl1.DefaultView;
grd.DataBind();
}
}
public DataTable fnloadgrid()
{
if (Con.State == ConnectionState.Closed)
{
Con.ConnectionString = Constr.ConnectionString;
Con.Open();
Cmd.Connection = Con;
Cmd.CommandType = CommandType.StoredProcedure;
Cmd.CommandText = "Sp_Select";
Cmd.Parameters.Add("@Tabid", SqlDbType.Int).Value = 1;
SqlCacheDependency Depend = new SqlCacheDependency(Cmd);
Da.SelectCommand = Cmd;
Da.Fill(Ds, "tbl");
tbl = Ds.Tables[0];
Cache.Insert("tbl", tbl, Depend);
}
return tbl;
}
note: while filling am getting error like as follows,
Notifications require SQL Server 9.0 or later.
so what is this Error ..can u clear me plz.......?
Regards,
kannak.......kannak
|
|
|
|