Quantcast
Channel: Web Forms
Browsing all 23244 articles
Browse latest View live

Convert Gridview e.Row.DataItem to c#

I need help converting the following code to C# for a GridView RowDataBoundcode... Private Sub gv_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles...

View Article


convert innerhtml to htmltablecells

Hi.IS there a way to convert innerHTML coming from a <td> back to the original td?I want to convert inner or outer html from a td to another td. In server i believe td's are htmltablecells .The...

View Article


Page Cannot be displayed

Hi,I have created a page with gridview and filter condition.It has maximum 30 records. it is working fine and if i click any button or control which creates a post back then it shows page cannot be...

View Article

ClientScript.RegisterClientScriptBlock

Hello,For some reason I cannot get the following to workClientScript.RegisterClientScriptBlock(this.GetType(), "Javascript", "RespondToRequest();", true);The above line should be executing the...

View Article

More on ASP.NET Menu control "hides" behind page

So i got to this thread:http://forums.asp.net/t/1038006.aspx/1/10By having a menu problem (asp:menu control).Seems to be quite the number of varibles to this issue!My details:  I'm 'converting' an old...

View Article


Dynamically name Variable in loop

I wrote was able to shorten some repeative code using a for loop and the findcontrol.I have a piece of code I am struggling with adapting to this stragedy; I need the name of a variable to change with...

View Article

crosspage postback mainpage has masterpage postback page does not help

Hi Im trying to postback 30+ textbox and drp down values to a new screen so query strings will not workmy main page has a master pagethis page holds the values in textboxesi have a button with a...

View Article

how to clear row in gridview control

Hello,          I have gridview control on the web form. and i am adding values manually(NOT FROM DATABASE) into that gridview control. but i want to clear selected row so how can i do it i tried...

View Article


Slow startup, csc.exe

When my webapp (cms) loads up it takes like 2 minutes to be ready of a build.  it seems that the "csc.exe" process for my app pool is just spiking cpu and chugging away.Once it finishes everything...

View Article


Failure sending mail. ---> System.InvalidOperationException

I've written some code in c# .NET 2.0 to send alert emails to a list of clients. Everything works fine but every few days I get the following error message from my application:Error Message: Failure...

View Article

If statement with two...

Learning C# - Your help is needed Please!How do I create an IF Statement with two conditions.  One condition is True/False and the other is Integer?

View Article

Add label at run time on user button click

i have a text box and a button, evrytime when user enter something in textbox and click on button then the text of  textbox is apear on label . along with the previous text of textbox...<form...

View Article

Opening a PDF file in asp.net applicaiton throws error in one particular...

Hi,We are opening a pdf file with the editor through our .net application, but we face issue in one of our production server only . the same code works fine in local, demo and other production servers....

View Article


using CSS server side

VS2010, AspNet4, C#----------------folder Style CSS---------------- @font-face {    font-family: "IDAutomationHC39M";    src: url("http://localhost:49422/WebSiteCB/fonte/IDAutomationHC39M.eot");...

View Article

XML Transformation

Hi there,is there a way to perform a XML transformation with XSLT and return the resulting HTML as a response in a Generic Handler.The idea is to call the handler with ajax and get the resulting...

View Article


Insert date into text box when text box is focused

Hi all,I'm looking for a way to insert the current Date into a textbox when the textbox is focused, within my c# code behind. Any ideas?Cheers.

View Article

How can you retrieve data from 2 tables using 1 stored procedure

For checking the post please visit here          http://forums.asp.net/post/5457700.aspx

View Article


open New Popup Window on ImageButton Click Event

Dim url As String = "popup_BankTransferRequest.aspx" Dim sb As New StringBuilder() sb.Append("<script type = 'text/javascript'>") sb.Append("window.open('") sb.Append(url) sb.Append("');")...

View Article

GridView hides when clicking a button?

Hi, I have a GridView that has 10 fields, 6 are normal, 7th is a CheckBox, 8th, 9th, 10th are buttons. 7th - CheckBox is a tempate Field. The rest are normal. <asp:GridView ID="GridView2"...

View Article

Using the tab key in an ASPX web forms page loses the tab stop order ONLY...

This is driving me crazy.   I've developed a WebForms web site using .NET Framework 4.0, Visual Studio 2010, Visual Basic, the ajaxcontroltoolkit and jquery 1.9.1.When testing the web page, the user...

View Article
Browsing all 23244 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>