Trouble Dragging And Dropping User Controls (ASP.NET)
I have created a user control (ascx) in C# which accesses a database and
fills a datagrid. When i attempt to drag and drop this control onto a new Web
Form (aspx), my VS .NET 2003 program crashes. I am forced to programmatically
reference the user control.
Can anyone guess if this is a problem w/ my software (VS.NET 2003) or is it
not posssible to drag and drop "complex" user controls?
With ASP, I can add user contrlos inside the same Panel and then programmatically change the view state of each one...but I don't want to have all the controls allready loaded into the Panel when the page starts, instead I want to call each control (from outside the page) as needed.
I have tried to declare the control class and then programmatically load and change the view state but it din't work. how to better deal with many constrols to the same panel/page ?
I am trying to post some data from the database to an XML file. Everything works except for a stray comma that comes from the database and exists at the end of the address string. For example, "123 Anywhere Street,"
I would like to kill that comma that will always exist at the end of the address string.
I created a "calculator" but it spits the results with too many decimals.Is there any way to write only the first two decimals as suppoused of all the ones the operation creates?
i'm reading in a .csv file and then inserting the data into a mssql db. batchid sometimes shows up blank. the values that are disappearing begin with the letter "N", such as "NP2338" or "N00312". outside of those that begin with "N", the rest are a five digit number. the table field is varchar. why is it dropping those that begin with "N"?
I have a Base class that is inherited by Form.aspx them Form.aspx loads 2 controls Menu.ascx that never changes and a body control that is selected dynamically at runtime. On each of the body controls I have a Function for validating the page Val() .
What I need to do is when an image button is clicked on the Menu.ascx I need to Fire off Val() in the Body control. Is this possible? I have tried setting a session var. but I have to load menu.ascx after the body control for the page or the body control does not function properly?
FormView & DetailsView are great controls in the new version of ASP.Net, but I am finding it tricky to display more than the record that either control is bound to at the time. For these controls to be useful in any mode other than read-only, we need the ability to populate controls like drop downs that hold associated data, which in the DB represents foreign key related data. In order to do this, do I create a template field that has a seperate control that binds to a different data source pulling back the "lookup" data?
I have a list of radio buttons that is populated from the database. The value of this radio button from the DB is SalesRanking If one selects the radio button (Sales Ranking) then I want to display 2 select boxes. Is this possible?
I have the following problem: I have an asp-page which contains a loginview with two templates (loggedin- and anonymoustemplate). How can I access a textbox inside the the loggedintemplate from the code behind c# module?
I tried: (TextBox)Page.FindControl("TextBox1") but that will result in a null pointer. I also tried: (TextBox)Page.FindControl("ContentPlaceHolder1.LoginView1.TextBox1") with the same result.
I am using the object command in asp page to download and register my controls on the client machine. But when a upload the file and run the page on client machine its shows means the permission to download the controls but it didn't download it on client machine as a result i am not able to use any of the control function from page. what to do. I am using this object tag to download
<OBJECT ID="voxPlayer" CLASSID="CLSID:45C0D292-1955-4ABF-8FFE-BEDC323ADBD9" CODEBASE="http://<ServerName>/<myControl>.cab" height = "10" width = "20" border = 2> </OBJECT> Am i missing anything
I want to change this color when someone selects this control. I know in visual basic the set.focus function works. how do I apply this to this control.
On my form I have 3 dorp down controls. Two of them have main information on them. Then on the third control I have only 3 values. "<blank>, AND, OR". If the end user selects AND, OR then Create a new line with 3 more drop down controls beneath the other 3. Where can I find out how to do this?
If I want to encode all inputs from user, can I apply this encoding for all "Input" fields on my site in a single action. Something like Input.HtmlEncodeAll() or HtmlEncodeAllInputs() etc.
I want to hide the form control on clicking the submit button on the same form.Tell me the solution.And also facing the problem while using the date time pickers in frontpage.
Actually by using asp value of date selected is being fethched in variable but on clicking the submit button again the datepicker shows the date before selecting the date.
i have a webpage which has 3 forms and each of the form has a about 20 controls. now what i want is to have these controls displayed in a mixed manner on the screen. moreover the ACTION pages of all the three forms are different. so is there anyway in which we can specify that TO WHICH FORM do they belong
my page is something like this
FORM1 starts TEXTBOX(of FORM1) FORM2 starts TEXTBOX(of FORM2) BUTTON(of FORM1) END OF FORM1 TEXTBOX(of FORM2) END OF FORM2
We have a need to be able to edit videos uploaded to us. Need to be able to resize them, resample,convert to various formats, etract images, overlay images, etc.
I've seen a few controls that do this, but wanted to know if anyone had any feedback on any of them. If you've used any of the ones on the market, please give your feedback on ease of use and stability.
I am trying to set up the security for my website... and understand that ASP.NET comes with a Membership Administration tool which is great, does it all for you! however, it stores all the user data (i.e. username password etc) in a default database.
What i would like to do is to GET the user information from this database once a new user is created and store it in my own database - hopefully i will only need the username and password... as then i can link my own user table to my employee table using a user id field? does this make sense???
Basically, i need to know HOW to get this information from the database that ASP.NET automatically creates and add this info into my own User Table.
I'm creating controls dinamically in ASP.NET using VB. The problem is that i don't know how to catch the event of each button that i've create (the buttons are created dinamically).
Suppose I have a form with only a button on it. Each time I click on the button, I want an other new button control to be added on the form, of course with some functionalities.
This is a simple example to make my question clear. I need to learn how to make dynamic changes on my form.
i have a webpage which has 3 forms and each of the form has a about 20 controls ...
now what i want is to have these controls displayed in a mixed manner on the screen ... moreover the ACTION pages of all the three forms are different ...
so is there anyway in which we can specify that TO WHICH FORM do they belong ....
I have a Web form with a gridview supplied with a object dated source, when I select a line, h've got a formview with the detail of the line... I would like to know, in edit mode, how to grey some fields according to the rights of the user, admin or not??? Here what I do...
==> ddlstSeverity is always null, i've got this error message
"Object reference not set to an instance of an object. 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. Code:
I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++ v6.0. Under Visual Interdev I can debug the ASP code just fine. However, when I get to an ASP line that references my ActiveX control the debugger does not go inside my C++ code allowing me to debug the ActiveX control.
If I load the ActiveX control project from VC++ with Internet Explorer as the debug executable I have the same problem. Break points in the ActiveX control's code are not respected. I know I'm compiling in Debug mode,how to get these breakpoints to be respected?
I have a sysmon activex control inside an ASP page. When I resize the window, the activex control does not resize itself to fit the window. Does anyone know how to make the activex control automatically resize to fit the window?
if its possible to create a custom validation control which can enable or disable any given control depending on whether a checkbox is checked or not?Currently my solution involves posting back to the form which in turn enables or disables appropriately.
I have noticed with some of the standard validation controls that the screen does not refresh (postback) for the error message to display.Is it possible to enable/disable a control instead of displaying an error message, and do this without posting back to the form to refresh?I have seen some custom controls which can do this for sale, but they cost $$$.
i have created a custom control in vs.net, how shall i add that one to my asp.net page. do i need to create new web control library project for creating custom web controls, what i have done is, i just included that one as another class, i am confused about how i would specify the value for the assembly attribute.
whether it was possible to format cells through using ASP, i.e. before I load my data to be displayed in an excel page format a particular column from a General to a dd/mm/yyyy format. Is this possible? Perhaps through JavaScript or by other means?
If I disable the form control, even I post it, it still cannot get the value. Is that correct
<form action="page2.asp" method="post"><INPUT TYPE="TEXT" name="fname" value="Joe" disabled></form><%= Request.Form("fname") %> still cannot get the value "Joe
I am having trouble with installing IIS, I tried to do it in my control panel, but it wants the disk, I don't have the disk because my computer came with Windows XP Pro 2002 Service pack 2.
so I went to the microsoft website and downloaded the free download of IIS6. Then when I go to my control panel and Administrative tools it is in there and when I click on it, there is no computer name available.