.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

how to format server tag correctly?

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :ASP.Net
I'm trying to display images in a GridView, but have a problem with this code:<asp:TemplateField> <ItemTemplate> <asp:Image ID="Image1" Height = "100" Width = "100" runat="server" //Error message here ImageUrl = = '<%# Eval("ID", "ImageProd.aspx?ImageID={0}")%>' /> //Warning here </ItemTemplate> </asp:TemplateField>The error message says: "Server tag is not correctly formatted."and the warning says: "Validation (ASP.Net): If this attribute value is enclosed in quotation marks, the quotation marks must match." I have this same warning on another interface where I just display one picture and not in a GridView and the image displays fine.Warning 7 Validation (ASP.Net): If this attribute value is enclosed in quotation marks, the quotation marks must match. C:\Users\karask\Desktop\Pejgan\AdminInnehåll.aspx 86 32 C:\...\Pejgan\

View Complete Post

More Related Resource Links

Video: Converting Word Documents to PDF Format Using SharePoint Server 2010 and Word Services

Watch this visual how-to video as you learn how to programmatically convert Word documents to PDF format on the server by using Word Automation Services with SharePoint Server 2010. (Length: 6:15)

The report server instance is not configured correctly. Please use the Reporting Services Configurat

Hello All, I am having problem in configuring report server in SharePoint 2010 Central Administration. The Scenario is explained below: We have farm with two Servers with following components installed: 1. APPSERVER : SharePoint 2010, SSRS(2008 R2) and Reporting Services Add in (installed using credentials    (domain/sharepointuser)) 2.  SQLSERVER: SQL SERVER 2008 R2, Report Server Database (installed using credentials    (domain/sqluser)) Steps followed: a. Configured Report Server on APPSERVER with database in SQL SERVER. We browsed the report server url (http://localhost/reportserver) successfully b. Installed Reporting Services Addin on APPSERVER c. In SharePoint Central Administration, Under Reporting Services Integration, we gave the report server web server url as http://localhost/reportserver , authentication as Windows Authentication and credentials which are used to install SQL SERVER (domain/sqluser) d. We also added a new group called WSS_WPG Error is given below: The report server instance is not configured correctly. Please use the Reporting Services Configuration tool to create a report server database in SharePoint integrated mode before setting integration options for this SharePoint Web application. Thanks in Advance  

Convert Remedy ARSystem Date in SQL Server to short date format

Hi: Does anyone know how to convert Remedy ARSystem Date in SQL Server to short date format compensating for EST and Daylight savings. Thank you in advance!

SQL Server SP3 was not correctly installed



i am running MS SQL Server 2005 Enterpreis Edition x64.
There are several local disks on the server of sql: ?:\ , X:\ ...
The SQL Server is installed on C:\Program Files\Microsoft SQL Server\

The SP3 was installed on SQL Server using WSUS.
Recently i have found out that there is a folder on disk X:\ (X:\596166c4744e026ff11d) with a lot of files and folders like "hotfixsql", "hotfixdts" etc.
I have tried to remove this folder but I got an error message:
Cannot delete sqlrun_tools: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use.
In file X:\596166c4744e026ff11d\1033\eula.txt I have found the following info:

So these hotfixes have to do with SQL Server.

I have to move disc X:\ but I can not do it because of these strange files...

But why are these files not on disk C:\?
And why are they necessary for SQL Server?

Please help me..

Thank you for your time

Report shows correctly when viewed from report server, but not at all when viewed from DB server



I've set up SQL Server 2008 R2 on a Windows 2008 server ("SQLDB").  It includes the Reporting Services databases from the SSRS 2008 R2 files-only installation, also on Windows 2008 server ("SQLRS").  The problem I'm having is that reports are rendering when viewed on the report server SQLRS, but not when viewed on the SQL Server SQLDB via the same URL.  The error message is:

"An error has occurred during reporting processing. (rsProcessingAborted)  Cannot create a connection to data source 'SourceDB'. (rsErrorOpeningConnection)  For more information about this error navigate to the report server on the local server machine, or enable remote errors"

In Report Services Manager, I've added my login in "Site Settings" and assigned my login System Administrator and System User roles.  In Report Services Home folder, I've assigned all roles to my user account: Browser, Content Manager, My Reports, Publisher, and Report Builder.  In SQL Server, I've given my login execute permissions to all report stored procedures.

Assuming I'm logged into SQLDB with my regular login, shouldn't I be able to run the report server app and view the reports as if I were running the report server app as myself on SQLRS?


Login LayoutTemplate doesn't format correctly


The layout of my login control and LayoutTemplate must use widths in percentages:

        <div style="width:60%; float:left">
            <asp:Login ID="Login1"   
            <div style="width:100%">

But the LayoutTemplate wraps its Html in a table container so the source code looks like:

        <div style="width:60%; float:left">
            <table id="Login1" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;">
            <div style="width:100%">

The table has no width set so the cascade between the divs is broken and consequently the LayoutTemplate's Html does not format correctly.

If I manually set the table width to 100% it works fine.

How can I programmatically address the table to set its width to 100%?

I can use CSS with:

table#Login1 {width:100%;}

but this is very messy in my CMS application not least that ASP.NET changes the ID of the table to ct100_Main_Login1.

Your help would be much appreciated (any code snippets preferably i

Cannot Browse cube correctly after upgrading SQL Server 2005 to SQL Server 2008


I upgraded to SQL Server 2008 from 2005 and now when browsing my cubes only one measure displays at a time e.g. i can view two measures actual month and YTD the two displays but when i drag a dimension to the row, the actual month disappears and only YTD displays. if i remove the YTD measure the actual month shows again. Without the dimensions in the rows they both show. Does anybody have a suggestion on how to resolve this? it worked perfectly well before the upgrade.


Reporting Services Error-The version of the report server database is either in a format that is not


 Hi,I have Configured All Reporting SErvices Through Rep Serv Configuration Wizard


When I type 


on top of Address Bar Of Browser I Am Gettin This Error

  • The version of the report server database is either in a format that is not valid, or it cannot be read. The found version is 'Unknown'. The expected version is 'C.0.8.40'. To continue, update the version of the report server database and verify access rights. (rsInvalidReportServerDatabase)
PLease Help Me


How to align the text in justify format with SQL Server Reporting Services?



        How to align the text in justify format In SQL server Reporting Services? Is there any code to do so?

shutting down SQL server correctly


I will like to know what the correct procedure of shutting down SQL server, I often see people simply stop/restart the SQL service from the services section within windows.

Is the correct way to set the database offline and online etc.

Datetime format checking in SQL server stored procedure


Hi, I am wondering if there is a way of proofing a stored procedure in terms of the datetime localisation. For example, in the C# we may use the web.config or machine.config to set the application's localised date settings:

<pre>globalization uiCulture="en" culture="en-GB"></pre>

This helps when we do a date comparison in a static class of ours to return a certain rating factor.

Is there an equivalent way of us checking whether or not the date we pass into the stored procedure is in e.g. UK format and will be compared against our dates in the UK format too? We have 2 datetime columns, DateEffectiveFrom and DateEffectiveTo in our table and we use those dates to compare with the date passed in to return the relevant data.


date not getting stored in proper format in vb 6.0 and sql server 2000

i have a form which accept date in dd/mm/yyyy format from the user but  when i am storing it into sql server , some time it is getting stored in
dd/mm/yyyy format and some time in mm/dd/yyyy format. When i try to retrive date from sql server  and fetch it into text box it is geting  displayed in other format . some time in dd/mm/yyyy  and  mm/dd/yyyy format .
my reginal date setting is in mm/dd/yyyy format .
will be great if i get a quick help on this issue

call JavaScript - jQuery code from ASP.NET Server-Side

jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

Making Ajax Callbacks to the Server Using jQuery with ASP.NET

In the first part of this article series I introduced jQuery's functionality and how it provides a rich client side programming model. This time around I'll expand on these concepts and show you how you can use jQuery in combination with ASP.NET using it as an AJAX backend to retrieve data. I'll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in WebForms.

jQuery is just a JavaScript library so it will work seamlessly with ASP.NET both from page code as well as through backend driven code using the Page.ClientScript object or ScriptManager. You can use jQuery on its own as a client side and Ajax library that communicates with ASP.NET or you can use jQuery in combination with ASP.NET AJAX. The two actually complement each other quite well as jQuery provides functionality that the ASP.NET AJAX library does not and vice versa. For the most part the interaction between the two libraries is trouble free except for a few very rare edge cases.

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

How To Set a Date Format In GridView Using ASP.NET 2.0

A very common desire is to set a column of a gridview to display just the month, day and year of a DateTime type. The problem is the by default, the HtmlEncode property of the boundfield attribute (
The problem is that if this field is enabled, you can not pass format information to the boundfield control. That is, if you try the following code, you will not get the desired result.

MS SQL Server: Search All Tables, Columns & Rows For Data or Keyword Query

If you need to search your entire database for specific data, this query will come in handy.

So when a client needs a custom report or some sort of custom development using Great Plains, most of the time I will have to track down the data in the system by running this query and find the table(s) it is in.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend