I am doing a Web Project using C#,ASP.NET.
Now I Have added many buttons to Web Forms.I have written code for Buttons Click Events.
Sometimes,when running WebProject,I saw that Event of the Button has lost.I mean In Button Properties-->Events-->Click-------There is no click event method.
So Sometimes ,Buttton event has lost.
I am using 'Microsoft Envirnment 2003' and '.Net Frame Work 1.1'
Can anybody please tell me how to solve this problem ?
That's due to the fact that in some cases the VS 2003 designer automatically remove your sample code to add the event handler in the InitializeComponent method, and as a result you cannot see it in the Properties Window. Here is one of the cases: http://support.microsoft.com/?id=822759[^]
Check your stored procedure 'insert_ExchangeOrderDetail' s input parameters.Here from the functions you are passing 12 parameters. Check in your stored procedure,whether it contains 12 input parameters or not. It seems your stored procedure contains less than 12 input parameters and you are passing 12 parameters from your function. So that you are getting the error of 'Sql Exception'.Because of this error it can't go second time inside the loop.Hope you can fix this issue by the above check.
I am a .NET developer but have a potential client that is using a hosting company that developed their current pages using MGI. When that client brought it to the company's attention that they were unhappy with it, they gave them some software that will allow them to customize the site.
This is probably going to be very biased from everyone but what is your opinion about the 2 in terms of ability, dynamic content, and dependability or anything else for that matter? I will be checking out this customization software this week to see what I think but dont want to make any rash decisions.
I have already begun to re-develop their current site and have been able to utilize data lists for dynamic product listing and server side session in order to keep things private. What would you guys recommend in this situation?
i have created an asp.net application which is hosted on a web server running Win 2003. This application generates an html file which is sent as an attachment to a third party who in turn sends a fax to our client.
The problem is that the html file generated on the above mentioned web server is received by the third party in a incorrect format or rather jumbled up.
But when i run the same application from my localhost it runs perfectly fine. My machine is running Win 2000 server.
I have checked the code of generating the HTML file and all the syntaxes are perfect. I also downloaded an HTML validator to cross check.No errors were found.
Please help me solve this problem.
>> Is this an issue with Win 2003 web server.
>> Do i need to install any Service Packs..
Ok, I confess. Sometimes ASP.NET throws a curve ball at me and I can do nothing about it. Like today.
I'm trying to refer to a spreadsheet in the root of a website from a page nested deep within (note, this could be any page in the site).
Previously, I had simply coded the root of the site in the Web.Config and then concatenated it with /style.css to get the stylesheet name. However, I keep screwing up when I deploy and forgetting to change the setting for the website root, resulting in a missing stylesheet.
Now, I've heard about using "~/" and "../" but I can't seem to get either one to work. I've even tried the following code:
I was trying to be all fancy and make my new webpage entirely out of div's as opposed to tables, then i came into a problem. The .net framework has a class for tables, so you can control then etc in your aspx.cs page, however, I can't find a class that represents divs.
How am I supposed to manipulate my divs in my code?
a div tag is a generichtml control in .net. You can still modify it, it just doesn't have the same functionality as a table. One trick would be to use nested div tags and give each one an ID and don't forget runat="server"
"People who never make mistakes, never do anything." My Blog
You basically don't need to add an additional invisible column to keep the ID values, instead you simply specify the id field in the DataKeyField property of the datalist control when you bind the datasource to the control, and you can access the id values from the DataKeys collection. For more information, you can see DataList Members[^]
Im writting some asp.net in c# using visual studio 2003.
As such my code is in a code behind file whereas my controls & HTML are in the actual html aspx file.
My problem is that i need to display a number of drop down list boxes on the page. However on submitting the page i need to display different content.
How do i do this?
With classic asp this was simpley a case of an if /else statement surrounding the relevant page aspects. However with asp.net i dont know whether to locate the code around the relevent parts in my aspx page or the code behind page?
I tried adding the if /else statement to the aspx page because this is where i placed the various page elements. However i need to pull in some data from the page to determine if the page has been submitted via the submit button eg:
isubmit = Request.Form("status"); or
isubmit = Request.QueryString("status");
However this causes errors:
CS0103: The name 'isubmit' does not exist in the class or namespace 'ASP.bookings_aspx'
If i declare isubmit in the codebehind i get another error:
CS0122: 'wibble.bookings.isubmit' is inaccessible due to its protection level