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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

workaround?

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :ASP.Net
 
Hi, I just started using AjaxControlToolKit. For starter, I added the CalendarExtender to an existing page. Things were fine until I tried to open the page and I got the following error:"This page is missing a HtmlHead control which is required for the CSS stylesheet link that is being added. Please add <head runat="server" />" Is it obsolutely required the header tag to have runat="server" attribute? Any workaround? We are using a base page class which is derived from System.Web.UI.Page, so if I modified said class (which renders the header from the code behind), it will affect all of our existing pages. The thing is I am not sure if there will be any side-effect and if the others will approve of this approach.


View Complete Post


More Related Resource Links

why runat="server" attribute is required for ajaxcontroltoolkit controls?

  
the doubts i have may looks silly,i started my carrier in dotnet recently,1)we are calling them as client side controls,then what is the need for runat server attribute?2)<asp:Button ID="Button1" runat="server" Text="Button" /> <asp:ConfirmButtonExtender ID="Button1_ConfirmButtonExtender" runat="server"              ConfirmText="Really?" Enabled="True" TargetControlID="Button1">  </asp:ConfirmButtonExtender>when i execute the above code,i observed that in status bar message as "connecting to localhost",if they are client side controls what  is the need of going to local server,why it is happening?Thanks in advance.

Significance of

  

I am a bit confused about the significance of the <form runat="server"> on a page, and its effect on Page and Control life cycles.

For long, I have eliminated any Postbacks or Viewstate from my web forms. I just use web forms to render (often very very complex) UI to the client (composed of server-side controls as well as ExtJs or jQuery widgets etc).

After the UI renders, all interaction with server is asynchronous through web-services or http handlers. So, lately I have started omitting the <form runat="server"> tage also from my web forms.

And to my surprise, the code has NOT broken. The life-cycle events are generated normally on all controls, they have access to normal ASP.NET processing pipeline, and they render perfect;y. As there are no Postbacks, I do not need ViewState or control events like click etc.

So, can somebody tell me if there's any material difference that <form runat="server"> would make in my scenario, or to ASP.NET page/control life-cycle??


  

If I use the onsubmit does not display any data?

Example: TextBox1 = "yes" - does not appear.

If I use the onclick, I have to click on TextBox1 before the show data.

What's the problem?

Regards


Visual Studio automatically adds the ID attribute to controls that are runat="server"

  

When I copy/paste a control, Visual Studio automatically adds the ID attribute to controls that are runat="server".


Is there a way to disable this?



Add Runat server to all element in html string

  

Hi,

I have one html string in DB like below

<div style="padding-left: 200px; padding-top: 20px">
        <div style="text-align: left;padding-top:10px">
            <input id="Text1" type="text" /></div>
        <div style="text-align: left;padding-top:10px">
            <input id="Text2" type="text" /></div>
        <div style="text-align: left; padding-top: 10px">
            <input id="Button1" type="button" value="Submit" /></div>

</div>


i wan to render this in aspx page. but before this i want to all runat server to all html control in above string

like

<div style="padding-left: 200px; padding-top: 20px">
        <div style="text-align: left;padding-top:10px">
            <input id="Text1" runat="server&

inline expression or binding expression in the server head section

  
Hello, I write inline expression and binding expression in the server head section:<head runat="server"> <link rel="stylesheet" type="text/css" href="<%= Request.ApplicationPath %>themes/style1.css" /> <link rel="stylesheet" type="text/css" href="<%# Request.ApplicationPath %>themes/style2.css" /> <link rel="stylesheet" type="text/css" href="<%= ResolveUrl("~") %>themes/style3.css" /> <script type="text/javascript" src="<%= Request.ApplicationPath %>js/jwork.js"></script> </head> protected void Page_Load(object sender, EventArgs e) { Page.Header.DataBind(); }  But both kinds of expression aren't parsed or executed except the  ResovleUrl menthod. The html renders like this: <head><link rel="stylesheet" type="text/css" href="&lt;%= Request.ApplicationPath  %>themes/style1.css" /><link rel="stylesheet" type="text/css" href="&lt;%# Request.ApplicationPath  %>themes/style2.css" />    <link rel="stylesheet" type="text/css" href="/themes/style3.css"  /> 

SSRS Report Manager and Server do not work outside of Head Office

  

 

Good Day

We have recently started to transfer our current GP8 system into GP10 for the Head Office and CRM for our stores.  The stores no longer have access to Great Plains so we have re-created all the smartlists they used in GPO8 into SSRS and have published them to the Report Server (using SSRS 2008), the problem is they are unable to access the data via //{hostmachine}/reports or //{hostmachine}/reportserer.

CRM is no problem (via //{hostmachine}:5555/) and again any reports within CRM running off of companyname _MSCRM database, but accessing the report manager or report server brings back a blank page; not even the headers:

 

 

The odd thing about it is that it generates no error which has made it difficult for me to search for a solution. 

I have tried adding port numbers 80 and 8080 to the url link but to no avail.  I do not believe it is a credentials issue as a logon prompt does not pop-up (where as every time CRM loads it requests for the user's credentials).  The only thing I have noticed is that if it's someone within the Head Office or someone who has VPNed onto our server it is fine (Head office ip 192.168.247.xxx, the VPN gives an address within the same range). The

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.

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.

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

Publishing SQL Server Database using Publishing Wizard : Tips & Tricks

  
We can use SQL Server Publishing Wizard to deploy our local Database to remote hosting server/production server.This feature is available in SQL Server 2008/VWD 2008.

Below is the complete step by step guide of this process.

CLR Integration With Microsoft SQL Server

  
Transact-SQL provides as much flexibility as possible but, because it is not a real programming language, it has some shortcomings about many issues (memory management, exception handling, debugging, file processing (or streaming), object-orientation (classes), or thread management). Transact-SQL also lacks features of normal libraries (arrays, collections, serialization, expressions, or string manipulations, etc).

IP Address Blocking or Restriction in SQL Server

  
"is it possible to block connections to SQL Server based on IP address". As far as now there is no official way in SQL Server to block the connections in SQL Server based on IP address. However this can be done from the OS end, we have the following three options available, refer HERE for more.


.Firewall
.IPSec
.RRAS IP Filter

Determine whether Forms Server is installed on a server

  
Check whether the Microsoft.Office.InfoPath.Server.dll and FormServer.aspx files are installed on the server.

Connestion string create any database server

  
This links important to how to create connection string to any data base sever.
Categories: 
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