I want to add the href attribute to a link element. This is my code:
System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();
using (System.IO.StringWriter stringWriter = new System.IO.StringWriter(stringBuilder))
{
using (System.Web.UI.HtmlTextWriter htmlTextWriter = new System.Web.UI.HtmlTextWriter(stringWriter))
{...
Hi all,
I have defined the following in my gridview markup (simplified):
<asp:GridView ID="grvReport" runat="server" DataSourceID="odsReport"
AutoGenerateColumns="False" DataKeyNames="EntryDate,EmployeeNumber">
Then I define my datasource's update parameters as such:
<UpdateParameters> ...
I have a asp.net resouce language file in english and I have to translate that resource file into french. how can this be achieved? There are lot of values on the resource file that needs to be translated.
is there any sample available on how this can be done by using google language translation or something?
...
How can I save asp:HiddenField value across postback?
...
How can I use Html.RadioButtonFor to create radio button which when clicked runs code on the server and controls visibility of certain text box. earlier I used to create <asp:control with autopostback="true" Thanks
...
Most of the examples you find on the web, of using javascript from ASP.NET pages puts the javascript in the markup file (*.aspx). This is, of course, a really bad idea(tm), for all but the simplest uses of javascript.
What we want, of course, is to wrap the javascript up into a class, and to instantiate an instance of that class and ti...
I've got a GridView that can be edited. My problem is that when I click Edit, the textbox is too small (the File Name column). It isn't large enough to display its contents, and it isn't as wide as the rest of the column.
How can I make that textbox wider?
Here's the ASP code:
<asp:GridView ID="FileGridView" runat="server" AllowPagi...
On !PostBack dynamic templates are created based on the number of rows needed for check boxes. The control id's are chkbox_id. I am unable to retrieve the dynamic check boxes via the following code and NullReferenceException is always thrown.
The code before loops through the gridview rows, then datatable dt references the possible ...
I am using website application in VS2010. It populated data by reading app.config file from another library application. So I copied the connection string both in library project
and in website application's Web.config.
But when I run the application it throw error as "unable to auto attach aspnetdb.mdb".
I did configure aspnetdb.md...
Hi Guys.
I have a problem. I am developing Asp.Net MVC2 Application with VS2008 very well, but now I want to use the amazing DataAnnotion Validation shipping with Microsoft.MVC.DataAnnotation.dll. I cant find the dll so I found them on the project Site @ http://aspnet.codeplex.com/releases/view/24471#DownloadId=61772
I cant compile th...
Hello Friends, I am getting this Error..
Here is my Web Config file looks like..
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=152368
-->
<configuration>
<configSections>
<!--<section name="spark" type="Spark...
Hi,
We have an ASP classic ERP (very large application) that we want to rewrite using ASP.NET.
I am looking for a way to organize the application so we are going to be able to separate every program / webpage (over 400) from each other. Every program needs to be independent because many developers will work on the project at the same ...
So I have two pictures of the weirdness that is occuring
As you can see in the picture above, the scroll bar on the right hand side is being cut off a little bit by the screen, and even when you scroll to the right, you don't get the bar back, it remains cut off.
Here is the other scenario:
Here, you can see that when I scroll down ...
We were having occasional reports where the value of a set of DropDownBoxs in a GridView would be reset to the first value item in the list.
We finally tracked it down to a timing issue where a user would click Save before the page finished rendering/loading the data, and we are able to repro it on the production server but not locall...
I use excel through vb.net/asp.net to generate reports from a web page and then send the file down to the user. We've had some issues with Excel being super slow/inefficient/not closing (even when we keep track of the process id and try to kill it in code...). So I'm looking for some flexible alternatives. We need a replacement that ...
Hello,
I have about 40 tables and users should edit data in this tables in browser.
I believe than it's possible to create one page with dropdown, user select table name in this dropdown and get a grid with "Edit" button.
Does anybody know if such possible? Is it ready projects on Codeplex for such task?
Thanks,
asp.net developer
...
Hi
Found this question on an interview site
Given the following methods of the ASP .Net Page class, in which of them would you attach an event handler to an event published by a control on the web page?
a) OnLoad()
b) Page_Loader()
c) OnInit()
d) OnPostBack()
Can't decide between OnLoad and OnInit. Can anyone explain it to me?
...
I'm working on a website that will allow instructors to report on the academic progress of students in their classes. I've got the website set up two primary pages: one with a user control that displays the classes (a GridView of basic class info with a child GridView in a template field that displays student names and checkboxes to sele...
we wrote CMS apps with asp.net. the user can attach file documents, pdfs to their forms and send to each other. the user can easily download the pdf and other documents but when they want to download jpg file their IE render the jpg file as a binary and show the binaries of jpg file? the IE didn't show the save as dialogue such as other ...
Hi.
This isn't a crucial piece of knowledge for me, but I would still like to know what exactly is happening here.
This is a .NET 3.5 Web Forms application. One of the pages has 3 server-side inputs with type 'submit'. Each one of these inputs has the following JavaScript handlers assigned to them with jQuery:
$('.button').mouseov...