I have this, and i've been fiddling around with it for a while but i'm completely stuck. can anyone help me make a little sense of this. i'm trying to rewrite this into .NET. thanks.
Set objCmd = Server.CreateObject("ADODB.Command")
Set objRS = Server.CreateObject("ADODB.Recordset")
objCmd.ActiveConnection = Application("ConnString")
...
I have enabled the AutoPostBack property of one of my form's textboxes, which according to w3 schools should only trigger a postback when I press enter or tab.
I am also calling a __doPostBack() on pageLoad, given a user's answer to a javascript prompt. When I do that, the Request.Form['__EventTarget'] is not what I set it to be in the...
All the Google finds I ran into tell me how to use FindControl to access a control on the master from the content page itself.
However, what I'm trying to do is the opposite.
From the master page, I want to reference whichever child page is in the ContentPlaceHolder.
Why you ask.
I want the master page to know which tab should be activ...
So there is a ASP checkboxlist that gets rendered to the table and in the code behind the checkboxes get bound with a label from a code table. I need to display a text box only if a certain checkbox is checked off.
<table id="chkSomeCheckbox">
<tbody>
<tr>
<td>
<input type="checkbox" id="chkSomeCheckbox_0">
...
I need to convert this line of code from an asp.net c# page to asp.net IronPython, how would it be?
((IPostBackEventHandler)Button1).RaisePostBackEvent(null);
...
Hello all,
In the generated asp.net code from visual web developer 2010, I see the following code:
<%@ Control Language="C#" ClassName="Header" %>
<asp:Panel ID="Panel1" runat="server">
<img alt="xxx"
src="Images/bird.jpg"
width="800" height="110"/>
</asp:Panel>
<asp:Panel id="menuPanel" r...
Hello,
I have few inline sql statements with some arrays and if loops. I want to change them all into one stored procedure in SQL server 2005.
As i am learning SQL, i have got no idea about how it should be done with arrays and if loops. Is that possible to send arrays into stored procs or is there any other solution.
Refer the code wh...
Do I need to make a Custom Membership Provider or is there another way?
I have a project using ASP.NET Forms Authentication and the Microsoft SQL Membership Provider. The website is DONE. I use this provider everywhere. (Register, Login, Forgot Password, etc...)
Until now, my website users have not needed complex passwords. The users' p...
Is there a way with ASP.net page (with AJAX) to display some some of busy indicator (just a label is fine) while disabling some buttons (to prevent double-click) and then do the work. At the end of the work, the label changes to indicate the new status.
When I tried to do it this way :
Public Sub BtnEnvoyer_Click(ByVal sender As Obje...
Hey
I'm writing an admin panel in ASP.NET for an existing set of web service calls. My goal is to use some of the existing login stuff (locking out pages if your not logged in) etc but using my login mechanism. This works by hitting an http post request with a username and password, if you're good you get a session id back, if not you g...
I have a custom metadata provider that inherits from DataAnnotationsModelMetadataProvider. I am wondering how (if possible) I add data to the ViewData dictionary from the custom metadata provider class?
Thanks!
...
I have a ASP.NET page that contains a formview and ObjectDataSource. On the page I only have 4 fields that are bound to fields in my datasource. My datasource contains 10 fields. When I call an update it is setting the 6 fields I am not binding to to null. The only way I can find it get around this is to add hidden fields for the 6 u...
I am building a website using asp.net and this website will host users images and will give them options to edit these images by resizing, cropping, watermarking,....
I am thinking of 2 ways to save images and want someone to recommend one or advice me with something different better.
1- The user will upload his images, i will put th...
I'm trying to implement a custom panel control that would act as a naming container. So far here is so what I've done.
First this is my custom control, MyPanel...
[ToolboxData("<{0}:MyPanel runat=server></{0}:MyPanel>")]
public class MyPanel: Panel, INamingContainer
{
}
And I try using it like so:
<cc1:MyPanel ID="A" runat="server">...
Hello all,
// question has been modified
I start to learn ASP.NET and the book uses Web developer express 2008 as the development platform.
I would like to know what the key difference between using the professional VS 2008 and this free express version.
Thank you
...
I'm trying to find faxcomexlib.dll. After Googling around, I installed the Core SDK from the Platform SDK, but I still don't see this dll listed in the System32 folder. This is the code I'm trying to run:
FAXCOMEXLib.FaxServer faxServer = new FAXCOMEXLib.FaxServerClass();
//faxServer.Connect(Environment.MachineName);
...
I have an web application written in ASP.NET (FW 3.5) (along with some VBScript, this is a legacy app) that uses a utility class in the backend that logs error.
I need to log several values that a user has entered in the front-end.
Since the utility class has no access to the front end (or any HTTP services),
i created a singleton cl...
since asp.net contains multiple threads that are executing at the same time.
so if 2 threads access an object (simple or complex) that i got from the the asp.net httpcontext Cache.
can't this lead to state problems on that object if these 2 theads tried to modify/read it at the same time?
so what kind of precautions should i implement?
f...
Hey All,
I maintain a ASP.NET web application that causes a user's network connection to reset for several seconds when it executes a procedure. Therefore, the page request times out on the user's end as they never receive the web application's response (the connection dies before it gets the response packet).
To resolve this situat...
We display an ASP.NET calendar control and update the color and if the day is enabled with the DayRender event. This process is a bit slow so I'm trying to map out a strategy to cache the results of the all the DayRenders. Basically take a snapshot of the calendar and cache it for X minutes. Where would I hook into the page/control workf...