In a previous question I mentioned some work with a 3rd party DLL whose interface uses a series of XML inputs that are defined using DTDs. Everything has gone smoothly so far, but I still have this nagging issue with resolving the Document Type Declaration in the generated input values.
What I can't figure out is what the deciding facto...
I personally like option one below for maintainability but I could see option two getting me better performance. Option three is probably complete garbage.
1. ViewState["Calendar1.SelectionMode"] = Calendar1.SelectionMode;
2. ViewState["CSM"] = Calendar1.SelectionMode;
3. ViewState["Calendar1_SelectionMode"] = Calendar1.SelectionMode;
...
I have a TemplateField that is dynamically added to a custom GridView.
void ITemplate.InstantiateIn(System.Web.UI.Control container)
{
switch (_templateType)
{
case ListItemType.Header:
if (this.ParentGridView.ShowDeleteHeaderImage)
{
Image hImg = new I...
i need to add JavaScript calls in some controls attributes, i am using master pages but in order to obtain the contentplaceholder client id i am iterating over the forms controls.
is there another way to obtain in the server side code of the content page?
foreach (Control control in this.Form.Controls)
{
...
I want to use a LinqDataSource or ObjectDataSource with ViewData.Model, where ViewData.Model is an string array.
I don't want to bind the datasource on view's PageLoad event.
Is it possible? How?
...
Hi there,
Can anyone confirm the best way to integrate the repository pattern with webservices.... Well actually i have my repository patter working now in c#. I have 3 projects, DataAccess, Services and my presentation layer.
Problem is my presentation layer is a number of things... I have a ASP.NET MVC site, I have an WPF application...
Is there any way to convert PDF to excel? I'm looking for a free component but cant find one.
Thanks in advance.
...
I know this question has been asked before, but many answers don't give clear samples with codes on how to do this using ASP.NET 2.0. A simple C# is preferred, but I can also accept VB.NET or F#.
This third party cookies question is a sample of a self answered question with the same topic, but it didn't give any clues about reading/gett...
Hi
This is my code code for the Page_Load Event
OdbcConnection myConnection;
DataSet dataSet = new DataSet();
OdbcDataAdapter adapter;
//making my connection
myConnection = new OdbcConnection(ConfigurationManager.ConnectionStrings ["ODBC_ConnectionString"].ConnectionString);...
I was wondering: When looking at an ASP.NET error page with a stack trace you can see a + sign and a number at the end of each line.
For example:
Also in the trace pasted in this question:
http://stackoverflow.com/questions/680434
The numbers are not the line numbers in the sources files, so I suspect them to be something like stack ...
I'm writing an internal web application that is used to look up credit checks. I'm using ASP.NET for this website.
I have a SQL Query that I have to query the credit check database and it returns a datatable of results. After the person clicks search, I run the query and bind the returned datatable to the Gridview every time the user ...
Generally, how do you figure out which version of asp.net that an app is written in? The app in question is VP-ASP 6.5.
...
UPDATED 03/04/09
In response to some comments, a sample from the master page looks like this. This is not an asp.net control, this is hard coded html
<a href="http://www.MYDOMAIN.com/about_us.asp" accesskey="u"><span class="topleft"><span class="bottomleft">About us</span></span></a>
This renders on the production server as
<a hre...
I am adding a bunch of items to the ASP.NET cache with a specific prefix.
I'd like to be able to iterate over the cache and remove those items.
The way I've tried to do it is like so:
foreach (DictionaryEntry CachedItem in Cache)
{
string CacheKey = CachedItem.Key.ToString();
if(CacheKey.StartsWith(CACHE_PREFIX)...
I am using Nithil Kotari's Facebook.NET api wrapper for developing my facebook app. So far everything seems okay, its an iframe application and I can make everything work excep one thing.
When adding the application for the first time, its falling in a redirect loop between my server and facebook.com .. an infinite loop i mean.
But the...
I have a DataList, which is set to Horizontal Flow which renders a set of checkboxes. I also have a drop down list, which I would like to be rendered at the end of the datalist, on the same line as the last time in the datalist.
Is it possible to get rid of the last line break at the end of the datalist so the dropdown does not render ...
I have one dropdownbox(ddlCountry) containing allcountries,If i select USA it will display grid
displaying Tax information related to USA.If i edit information
in grid and if we change country USA to UK in dropdown box
in the ddlCountry(not the dropdownbox coming in the edit window of grid,,no problem for that) it displaying error like
...
Hi
I have a SqlDataSource that is supplying data to my GridView. Thats all i am using on my form, thus i have NO code behind at all. But somewhere i need a TRY CATCH block just in case my connection get's lost. What code must i place where?
If i get a error i want my lblMessage Text to be "No connection".
Any help would be great!
Reg...
Hi,
We have a very slow ASP.NET page with a repeater. It is slow because most of the processing is done in the ItemDataBound event of the repeater. All this processing just gets 2 totals to be shown in each row.
To increase the throughput, it could be a good idea to load the repeater without ItemDataBound event and without the 2 totals...
In my page source I put: <!-- A comment -------->
and ASP.Net converts it to: <!-- A comment -------->
so by the time it gets to the browser, my comment is visible.
It doesn't do it to all comments and if I add in another comment it sometimes makes the comment go away.
Anyone seen this before? How can I fix it?
...