Hi All,
I am using the following code to extract the sheet names from excel: (See attached code)
But the data is returned sorted by the NAMES of the sheets, and this is the issue. I need to extract the name of the first sheet, by index.
How can I do this?
String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
...
Is it possible to use the standard ASP.NET login control, but just ask the user for a password? I am using a template, but the runtime complains that;
Login1: LayoutTemplate does not contain an IEditableTextControl with ID UserName for the username.
My current thinking, is to add the control with style="display:none;" which seems lame...
I'm working on a website that uses a non-secured asp.net session cookie.
The session is shared between http and https.
We want to use different sessions for http and https (because of security reasons).
Is this configurable in ASP.NET, the httpCookies config element in system.web isn't specific enough. I'd rather not programatically bui...
Hi
i need individual explanation and individual advantages regarding RegisterClientScriptBlock & RegisterStartupScript & responce.write("script");
i got some information like
RegisterClientScriptBlock() methods will inject the script after the form open tag but before page controls
RegisterStartupScript() methods will inject the s...
I understand that rendering a table this large is pushing the limits of any browser. However, I was curious as to why a table that is significantly large (20,000+ rows) crashes Firefox, while all other browsers render it relatively quickly.
I am using ASP.NET and writing the table html directly to the buffer with Response.Write. I initi...
I have a class library file that is not is not getting picked up when I add it to the reference and bin folder.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace SecuritySettings
{
public class Security
{
...
public Security()
{.....
In my web site, I am currently custom handling two HTTP errors: 404 Not Found and 403 Forbidden. This "handling" consists of redirecting the user to a custom error page specific to the particular error. Are there any other HTTP (or, in fact, other kinds) errors that occur often enough to warrant a custom redirect and page?
...
I have an ASP.NET page with some text boxes meant for searching purpose.Now i want to invoke a javascript function which is already written ,when the user press the enter key.I am having jQuery in my page.
Any easy ways to do this ?
...
Is there any asp.net framework to build multistep (aka wizard) web forms that require validation (may be dynamic validation, based on data submitted), accessibility, ecc. ?
Thanks!
Marco
...
Where I work, we do a very large number very small ASP.NET apps, and it has happened a few times that sites have been deployed in precompiled format, and the app needs to be changed, but the version of the code available in source control is out of date and the developer is not available. The app's dll has to be decompiled and hacked bac...
I have a usercontrol that I am trying to use in a project.
If I do it like this (reference the sitemap in the control)
<%@ Register TagPrefix="OS" Namespace="OS_Layouts" Assembly="OSControlLibrary, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0831306e55dc1c27" %>
<html><body>
<OS:OSmenu runat="server" ID="men1" SiteMap="siteMapDat...
Hi,
I am building a tracking system for refererrals to our websites and on behalf of other 3rd party website owners. This will include placing a cookie when a customer clicks through to the site and subseqently reading their ID from this cookie if they reach the defined 'success' page.
I have seen a number of different methods used fo...
i have the following string:
http://pastebin.com/d29ae565b
i need to separate each value and put it in an array. typically it would be done by ".split". however i need it to be split in this order: 0, 50, 100, 200, 400 etc..
does anyone know how to do this? please note that i need to do this in VB
in other words, i need it to read th...
When I assign the AssociatedUpdatePanelId, the progress does not display when I select a state, but when I leave it blank, it displays the progress.
Here is the aspx markup:
<div>
<asp:ListBox ID="lstStates" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="lstStates_SelectedIndexChanged" SelectionMode="Multiple">
...
I have an abstract class that a User control inherits from, that I would like to write unit tests for. I understand I need to create a mock class to be able to test abstract classes. The abstract class has references to UI controls (ex: a base method that has web control as an argument). My question is, how would I write unit tests to an...
Does anyone know how to do something like this.
Lets say I generate on server side using c# link.
http://www.blah.com/blabla.aspx?test=blah&search=true
How could I on server side make it so when clicking on it (for now on HTML side i save this link as asp:label it will bookmark it.
Researching online showed solutions on client side...
I use c# and usually program winform/desktop applications. But; now I'm asked to develop some ASP.Net projects. So here goes my newbie question:
I'm developing this project for device (lets say) 'Protoype X' and it has manufacturer provided .Net api. This api fires events (which I shoud subscribe to) upon receiving some special -signal-...
Hello,
I have an ASP.NET page with 10 dynamically generated LinkButton elements. When a user clicks one of these LinkButton elements, I want to display its Text in a modal dialog. The user can then change the Text by entering a value into a TextBox. My code for this looks like the following:
<asp:ScriptManager ID="theScriptManager" run...
I'm fairly new to trying ORM solutions, but I'm trying to come up with some sort of solution to create objects from our existing database model in ORACLE. I've been looking at ORM solutions, but I'm not sure I have a grasp as to what exactly they do.
Can someone explain what ORM solutions can do more clearly? Some of the options they ha...
I´m having a weird experience with paging on a GridView.
I´m trying to lazy load data into my griview by using an updatepanel with a timer and updateprogress attached to it.
So basicly what I´m trying to do is when the page with the grid loads I start the timer by enabling it. In the timer_tick event I´m fetching the data and load that i...