View Complete Post
in datalist templatefield, i want to bind an imagebutton's visible property. the scenario is .. it is a picture comments page like one in facebook. if its your own comment, the delete button is shown, otherwise not. the problem is .. for the imagebutton i want to set visible = false, if the user logged in is the same user as the one who commented. how can i do that ? please help
currently im using this code on datalist databind event. but the label is returned as null
public bool set_visibility() { Label lb = DataList3.FindControl("Label7") as Label; if (lb.Text == Session["user_id"].ToString()) return true; else return false; }
findcontrol dosent return the control.
Hi is it possible to write a custom aggregate function in SSIS. Is there any other way to do it better? Any help is highly appreciated.
My values are like this
Item | VALUE
1,abc
2,def
1,xyz
1,wer
2,tyu
3,ppl
I am trying to bring the output.
ITEM,VALUE
1, abc-xyz-wer
2, def-tyu
3, ppl
LocalReport, SQL 2005, Custom Assembly compiled in Framework 2.0, with this I can add the reference to the report.
Client (WinForm Framework 4.0) In the same path of my application, I have the custom assembly (that uses the report)
When I try to get the DataSources, getParameters, or SetParameters, I always get the same error. The LoadDefinition(stream) does not load anything. Any Idea?
An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.'.’.
I also tried to enable the NetFx40_LegacySecurityPolicy in the config of my application, and nothing change.
If I don't use the Function from the custom assembly I don't have any problem. Thanks in advance.
Hi,
I'm trying to get a UDF from my SQL Server database to map to Linq to Entities. I've found an example for the CourseManager sample in the MSDN :
Private
Sub Button1_Click( Custom Lookup function not connecting to data sources? Hi folks, I am trying to run the following function (which works in Visual Studio just fine) but it appears SSRS can't access data in the same way as Visual Studio? There are extra permissions needed - can anyone point me in the right direction? (I am basically trying to emulate the DLookup function from Access for a migration we are planning.) Here's the error: --- begin Error output System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.PermissionSet.Demand() at System.Data.Common.DbConnectionOptions.DemandPermission() at System.Data.SqlClient.SqlConnection.PermissionDemand() at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at ReportExprHostImpl.CustomCodeProxy.DLookup(String dField, String dTable, String dCondition) The action that failed was: Demand The t
Hi folks,
I am trying to run the following function (which works in Visual Studio just fine) but it appears SSRS can't access data in the same way as Visual Studio? There are extra permissions needed - can anyone point me in the right direction? (I am basically trying to emulate the DLookup function from Access for a migration we are planning.)
Here's the error:
--- begin Error output System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.PermissionSet.Demand() at System.Data.Common.DbConnectionOptions.DemandPermission() at System.Data.SqlClient.SqlConnection.PermissionDemand() at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at ReportExprHostImpl.CustomCodeProxy.DLookup(String dField, String dTable, String dCondition)
The action that failed was: Demand
The t
Hi again, i have a client that needs me to create a custom view on thier webpage similar to Microsoft Word.
It goes about that, when I click on an image it redirects me to another page and must create a custom view for a certain paragraph on that page. I am not sure how to do this and wonder if anyone knows how.
I am using C# programming language if that helps at all. I Heard that using javascript would work but i dont know javascript yet so is there any alternative?
Dear All,
I have to set custom paper size 6X8 inches
plz tell sugest me code how to do it.
in C#.net 3.5
i m using Asp.net 3.5 Crystal report
i have to do it programiticlly
Regards,
Rakesh
Here is the content page:
********************************************************************
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="JavaDynamicCopyValue.aspx.cs" Inherits="JavaDynamicCopyValue" Title="Untitled Page" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <script type="text/javascript" > function copyValue(input, output ){ ouput.value = input.value; return true;} </script> <asp:TextBox ID="txt1" runat="server" onchange="copyValue(this,document.getElementById('<%=txt2.ClientID%>'))"></asp:TextBox> <br /> <br /> <asp:TextBox ID="txt2" runat="server"></asp:TextBox></asp:Content>
I got a javascript run time error says output is undefined. if I view source of the page, the txt1 markup became:
<input name="ctl00$ContentPlaceHol
I dont have the SQL EXPRESS installed instead I have SQL Standard Edition.
I have two SQL Server instances installed.
1- UserLT (this is sql 2000)2- UserLT\SQL2005 (this is SQL 2005 named instance)
But when i try to add a database to my VS website project I get the following error:
Connection to SQL Server files (*.mdf) require SQL server express 2005 to function properly. please verify the installation of the component or download from the URL: go.microsoft.com/fwlink/?linkId=4925
I went in Tools>Opetions>DataBase tools>Data Connection>Sql Server Instance Name (blank for default)
and changed the "SQLEXPRESS" to "USERLT\SQL2005".
But I still get the same error message. Any ideas how i can resolve this issue?
Hello All,
I created an application and implemented IHTTPHandler for all incoming request ending with ".aspx" extension.
Under "ProcessRequest" module, I am creating an instance of HttpContext (with URL attributes different from my application's URL i.e. if I am working on localhost then speciying Yahoo.com as its URL) and assigning it to "context" which comes as method argument.
After redirection, an error is generated. Also, the custom HTTPContext is not passed to the requested page (default.aspx, in my case.)
Code is as follows.
Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System.Web.IHttpHandler.ProcessRequest Try Dim requestedUrl As String Dim targetUrl As String Dim urlLength As Integer 'Save settings which will be used while redirecting to appropriate page requestedUrl = context.Request.RawUrl If requestedUrl.IndexOf("?") >= 0 Then targetUrl = requestedUrl.Substring(0, requestedUrl.IndexOf("?")) Else targetUrl = requestedUrl End If If targetUrl = Nothing Or targetUrl.Length = 0 Then targetUrl = requestedUrl End If urlLengt
I have just joined the forum. I have a very simple query. I have added custom header to my website. Now I want to read the custom header. I am using IIS 6.0 on windows XP. I have already tried using using the Request.ServerVariables and and Request.header method. But none of them give me the custom header added to website.
Can any body help?
Thanks a lot in advance
Thanks
Pramod
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend