asp.net

ASP.NET Web Site vs ASP.NET Web Application

Possible Duplicates: What is the difference between web application and website in asp.net? ASP.NET: Web Site or Web Application? To start a new ASP.NET project in Visual Studio 2008 we are presented with two options to go about creating a website,you can either create it as a new ASP.NET Web Site(File > New Website > ASP.N...

Quirky cookie behaviour

A colleague of mine asked me to take a look at some cookie behaviour. He created simple web app that created a cookie and inserted the value of a text field, he then checked the cookie collection on the next page to see it had been inserted and read back correctly. All simple really. On the second page however he noted the was more th...

Deliver a Crystal report using Web Service (ASP.NET)

My end goal is to open up a new browser window and display an animated progress gif whilst loading a slow Crystal Report. Using traditional asp.net methods to achieve this always results in the gif not animating during a postback, unless I use update panels but that's when things start getting messy. I have read lots of articles describ...

How to transparently pass URL parameters from page to page?

Is there a way to transparently pass URL parameters through web pages? I mean situation that when using redirects, already added parameters will be passed to new page without direct action of programmer. For example: we entering page myPage1.aspx?param1=test performing Response.Redirect(myPage2.aspx) here I would like the parame...

SQL Command cannot be converted to string

Here's my code I seem to be getting an error SQL command cannot be converted to string with this code Dim LogData2 As sterm.markdata = New sterm.markdata() Dim query As New SqlCommand("Select * from openquery (db, 'SELECT * FROM table WHERE person=@person')") query.Parameters.AddWithValue("@person", Session("number")) Dim drCode2a A...

insert query syntax problem

i have a SQL query as follows String S = Editor1.Content.ToString(); Response.Write(S); string sql = "insert into testcase.ishan(nmae,orders) VALUES ('9',@S)"; OdbcCommand cmd = new OdbcCommand(sql, myConn); cmd.Parameters.AddWithValue("@S", S); cmd.ExecuteNonQuery(); Error: Column 'orders' ca...

I need to put a new CSS from ASP.NET how to do it

I need to put a new CSS from ASP.NET when the image button Control comes dynamically ...

Need help with Telerik RADEditor CSS issues plz

<telerik:RadEditor ToolbarMode="Default" ID="editor1" runat="server" EnableEmbeddedBaseStylesheet="true"> </telerik:RadEditor> The editor's using Default skin..when I made changes to Editor.Default.CSS file...they didn't reflect on my page..but when I type the following I can see the changes:- <link href="Skins/Default/Editor.Default....

how to prevent postback by javascript.

actually this code is working well in firfox mozila but it's not working in IE8 <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btnPrimary" OnClientClick="return doSubmit('this');" OnClick="btnSubmit_Click" /> <script type="text/javascript"> function doSubmit() { ...

sql query error

i have a SQL query as follows String S = Editor1.Content.ToString(); Response.Write(S); string sql = "insert into testcase.ishan(nmae,orders) VALUES ('9',@S)"; OdbcCommand cmd = new OdbcCommand(sql, myConn); cmd.Parameters.AddWithValue("@S", S); cmd.ExecuteNonQuery(); Error: Column 'orders...

AutoCompleteExtender issues

Hi all, I'm using an AutoCompleteExtender in ASP.NET/C# to retrieve data from my database, along with the primary key of the field. When a name is chosen, the details (name/pk) are retrieved even before clicking submit, and it then passes these onto a hidden field. The issue I have is that if the user types in an incorrect name, the pk ...

ASP.net over ride client ID for form elements

Given a textbox: <asp:Textbox runat="server" id="txtAddress1" /> This renders as something similar to: <input name="ctl00$mainContent$txtAddress1" type="text" id="ctl00_mainContent_txtAddress1" /> I don't think browsers autocomplete features recognise this name/ID as a field they can autofill, they are not standard recognised names...

Added reference, class is still not defined?

I have a web site project where I need to use the System.Security.Cryptography.Xml.SignedXml class. I added the Dll System.Security as a reference and imported the namespace into my project. It compiles successfully but when I debug the project I get a compilation error: Compiler Error Message: BC30002: Type 'System.Security.Cryptograp...

data type for text formated as.. bold italics underline and other properties

I want to save the contents from HtmlEditor(Ajax Control) into a database field. If i try to save as VARCHAR than error comes as data too long. Please help. ...

dynamically generated form how to actually save entered data

hi there i have a form that is generated dynamically. the plan is to generate it, the user to enter data, and then to save all that lot away. although a slight variation to this is if the form has previous data associated with it, and then it loads in all pre-populated. - the user may then change any previous selections. and that is th...

question-suggestion list

i have a asp.net page. i m writing some words in a question textbox named txtTitle, after moving to another txtbox named txtbox2, i want that it should open a question-suggestion page based on that keyword typed in txtbox1 in the space before txtbox2. i hv tried this but it is not working. can anyone provide me the all the codes which ar...

How to Enable/Disable asp.net button when a dropdown list selected value changes?

Hi All, I have a couple of dropdownlists and a button.when a user selects an item in the 1st dropdownlist,the 2nd dropdown is programmatically bound to a set of items(using an ajax request) depending on the value selected in the 1st dropdown.Then the user will have the ability to choose an item from the 2nd dropdown and click on the but...

start batch job from IIS

What is the right approach when users (authenticated domain admins) should be able to start batch jobs (usually exe files) from an IIS (7.x) aspx (c#) page? This is an intranet site. The batch jobs have to run on the web server as Domain Admins. The website pool is executed by network service or some similar restricted account in AD. Ap...

ASP.NET C# - Sitemap using global resource file and nodes dynamically added from database?

I have a sitemap that's pulling its information from a global resource file (because the website is in two languages). That part is working. Now, I want to make it so that part of the sitemap is dynamically added from the database (product categories). I found a tutorial here and tried to implement it but it's not working. I can get ...

Returning Json Result with object name MVC

When a json result is returned by the controller the object name seems to be missing, I normally wouldn't mind but the flexbox jquery plugin requires the json result in a particular format. Flexcombobox expected format {"results":[ {"id":"1","name":"Ant"}, {"id":"2","name":"Bear"}, {"id":"3","name":"Cat"}, {...