Long time programmer just now getting into .NET so There may be something better but I would like to use the Graphics Server Extended Graph (Graphs32.ocx) on my form.
I tried to put it in the Toolbox by going to Tools --> Choose Toolbox Items --> Com Components tab
then check that item and press OK. From what I saw in help files, it should now appear in the Toolbox. Unfortunately, I can't find it anywhere. Did I miss a step in this process? I then tried adding the ocx to the project Bin folder and repeating the steps. Still can't see it. If I can't get it onto the Toolbox, is there another way I could put the control on the form ?
I want to learn how to add/delete/update account (including adding mail boxes for new users). Can someone point to a good book where I can begin from. I want to start with some real basics and build from there.
I want to create a user registration form, I used the CreateUserWizard control, and i intend to add more filed with the wizard interface, the fields were firstname,lastname, telephone all these with the textBox control and sex-male or female with a radioButton control, and upload photo with the FileUpload control.
After a successfull submit to the sql database, i should be able to retrieve all this informtion inluding the photo uploaded in another aspx page using any of the data control in y toolbox and resizein the photo to be 100/100 pixel size. pls could you write out the code (step by step details) to follow to implement all this in my asp.net 3.5 c# website. I have already created a table in my database, using userId as my ForeignKey.
i created an Active X Control for my web Form first time when i executes my page its works fine.. but when i modified my Active X Control then place my ActiveX Control dll to my web site root directory then my Active X Control is not loading on my Web page..
I am new to web forms, but how can I populate a web form (form fields i.e. name, job title, tel no etc) with that users information automatically taken from their active directory profile? It wouldd be an Intranet application so all users would be on the domain. How is this done in ASP.net? In Coldfusion I would set the following variable
<cfset user = listLast(cgi.REMOTE_USER,"") > which would grab the user id from AD
Then I would query an employee DB matching up the userid to gather their employee info
<cfquery name="querygetemp" datasource="DATASOURCE"> SELECT * FROM empl.directory WHERE uPPER(NETWORK_ID) = '#ucASE(user)#' </CFQUERY>
and then set variables which I would use to populate the form fields further down the page
<cfset varsection = querygetemp.section> <cfset varjob_title = querygetemp.job_title> etc.
I am using IIS 7 and have URL rewrite turned on for a friendly URL.
The problem is that in side that pages repeater (right under the captcha) when I click on the images in there the page redirects to /null/ which then throws a 404 error. I have turned off url rewrite and removed all rules and that didnt solve the problem so I dont think its related to that.
I have also noticed that in my master page if I use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
then the client side ajax fails to load, sys becomes undefined and that may be the problem here
I'm at a loss, this is the first time I have seen these problems occur.
nable to cast object of type 'System.Web.UI.HtmlControls.HtmlForm' to type 'System.Web.UI.HtmlControls.HtmlGenericControl'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Web.UI.HtmlControls.HtmlForm' to type 'System.Web.UI.HtmlControls.HtmlGenericControl'.Source Error:
I am making a web form in whose name is order.aspx in which user have to add his details .like name contact no etc. but my problem is there are products which i have listed in combo box . if user select any one item from it it shows its quantity .after selecting he quantity the details of product must be displayed in grid view below .then if user select second product it should do the same grid view must add the second product details to it and so on.
I have a requirement to make parts of forms (and sometimes the entire form) read-only based on the user's active-directory group. I already have integrated AD into the dynamic menu, so that users cannot view certain menu itmes based on their AD group - and this is working fine; however, now they want to get down to the control-level on the forms. The first way that comes to mind is for me to just grab the AD groups for the users and then loop through them, and write my own code to make controls read-only or enabled. Is this a good way to do it, or is there another way? Also, while we're on the topic, is there an easy way to protect an entire form, or maybe an entire panel?
i friends i am having two forms say form a and formb and having two panels in formb and i want to show this panels from forma based on some condition and the code which i am using is
Dim capfrmobj As New CaptureForm capfrmobj.panelvf.Visible = True capfrmobj.pnlc.Visible = False capfrmobj.pnlnc.Visible = False
I want to add a running clock on my aspx form. which after certain period of time like 30 minutes or something. After 30 minutes the form should automatically submitted.
Is there any way to add a C# Web Form to an ASP.NET 4.0 Web Application that is written in VB.NET? I had an ASP.NET 2.0 WEB SITE that I recently converted to an ASP.NET 4.0 WEB APPLICATION. It was mostly written in VB.NET with a couple pages that had C# code behinds. I've read the following article (the end section about mulitple languages): [URL]
1) When I converted my site to an application, it didn't seem to add an APP_CODE folder at all 2) I'm not looking to just write a simple class, I actually want to be able to add a WEB FORM with a C# code behind
When I try to add a new item and I select which type of item I want to add, I am only given to option to add a VISUAL BASIC web form. I have a workaround right now. If I need a new web form with a C# code behind, I take one of my old C# web forms and just copy and paste the form and C# code behind into the project and then rename it and change the class name as well. Then i make my changes and do what I need to do. It seems to work, but I was just wondering if there was an easier way.
You might wonder why want to put C# forms in my VB app. I wrote my app in VB (not well versed in C# but I can read it). I have a programmer working for me that is much more efficient with C#. I don't really have the budget to spend weeks/months getting her up to speed with VB
i have a gridview control i added checkbox contrl dynamically but i am not getiing the reference of checkbox in button clilck event here is my code Gridvew
Adding an ImageButton to the ImageMap control as a child control. I am developing a map that will be contained some user-defined nodes. The user can click anywhere of the map to add the node to that location. X locations and Y Locations are stored in the database. Initializing the page all stored nodes will be created programmatically. My problem is that the created nodes are invisible. If I replace the ImageMap with a panel control then all dynamically created nodes will be visible but in this situation I cannot capture the X and Y locations.
I'm trying to do something that should be very simple, but getting completely stumped on why it's not working.
I have a page that has a few calendar controls, and when the user clicks a date, I want it to toggle the value (in this case it's the "availability" of the date).
I don't want it to post back with every calendar click, so what I'm doing is:
1. During the dayrender event, a Hidden Field gets added to the day. (As it is created, the Hidden Field is added to an array so that it can be retrieved later.)
2. When the user clicks, the value of the Hidden Field is toggled using JavaScript.
3. Once the user is done marking unavailable days, they click a Save button, which gets the values, and saves them to the database.
The Hidden Fields are getting added, and toggling is working just fine. The problem is that when the user clicks the Save button, all the Hidden Fields and their values get cleared, so at the time of the save, it thinks the length of the Hidden Field array is 0.
I think it has something to do with the order in whcih the page is rendered, and the "Save" code executed, but I'm not sure how to fix it. I'm doing something almost identical on another page that works fine - the only difference is that on that page there are no calendar controls, so instead of being added at dayrender, the dynamic controls are added on page load.
If I wanted to add a Hidden Field for each day in a calendar, whose value I can change with Javascript, how do I go about it in a way that I can access the values when clicking a Save button?
i have some web site with one page call genPage.aspx for all regular site pages, the title and the content of the page is changing by the pageId on the url (queryString). All the page looks the same (title, content and images and the same structure)im want to add contact form to the page with the pageId=7 only and dont have idea how to do this. (i know in classic asp it was : <if pageId = 7> html code and then <end if> but in asp.net i cant find the way. [Code]....
I guess the code is totally right and doesn't require any change in it,, however am getting an error which says "Conversion failed when converting the varchar value '11/11/2010' to data type int."check the attached file ..
How do I find the TabIndex property of the control who has the active focus at runtime.I am using UlitmateEditor(Text Editor) i.e User Control , so i want focus inside the body of that Editor.
I a problem defining the variable @Bestilling in the codeBehind for adding the record to the database using a single form page. The database design with corresponding form are as below:
My ASPX.CS: Â private void GridView1_BindData() { SqlConnection conn = new SqlConnection(connStr); SqlDataAdapter dAd = new SqlDataAdapter("SELECT kart_DemoOrder.OrderID,
[Code]....
I get error in the method: "GridView1_AddNewRecord".
Must declare the scalar variable "@BestillingID". Is there a way to use only one Add Method and not two as I did?
I am developing an active x control for IE which is invoked through javascript. The active x control is developed in visual basic and it an array of strings. How will I use this array of strings in javscript.
Eg :-
var a = new Array() a = objActiveX.GetArray(); // call to active x returns array of string, how will I loop through this in javascript. The above line does not work.I want to loop through each string in javascript.