asp.net

how to use Pseudo-classes of css in asp.net linkbutton?

In my web page there is link button and on that link button i want to add pseudo class of css which is made in another css page. I call that css page in aspx page. I want to use my pseudo class with this linkbutton .How to use this? So my question is :I want to add this pseudo cssclass in linkbutton. how to do that? This css want to ...

Preffered calender for ASP.NET

Hey, I search a good calender for my business application. The Microsoft ASP.NET calender is perfect for my requirement, but I heard that this component is not longer supported by Microsoft. My apprehension is that I must in the near future program a new one. Should I use a jQuery calender ? Can I use a future-proof library ? Thank you ...

Inserting value to AjaxControlToolkit.HTMLEditor using javascript

I'm using AjaxControlToolkit.HTMLEditor, and I want to add value to it using javascript or jquery like this: alert( $find("eCompose_ctl02_ctl01")); // if $find("eCompose_ctl02_ctl01").attr('value') = "asdfasdfasdf asdfasd asdf sf"; also tried like this: document.getElementById('eCompose_ctl02_ctl01').value += "ababsakas asdasd l"...

Viewstate, have I understood this correctly?

Say I have 5 buttons on a page, numbered 1-5. When one is clicked, a value with a viewtate getter/setter assigns this the value of the button clicked. If I am checking for a value in Page_Init() / OnInit(), after the postback has occured, the value will always be empty/null. Is this correct? If so, is there anything else I can do th...

Using Templates with Microsoft Chart Controls

I'm using Microsoft Chart Controls to generate some charts on a Webpage. I'm trying to use Templates to have a definition of the Chart an load it on request. This is a sample of the template: <Chart Palette="BrightPastel" Width = "100" Height="100" BackColor="Black" BackGradientStyle="TopBottom" ...> <series> <series _T...

How to open crystal report page in asp.net

I am using Crystal Report 10.2 version. I have applied paging, and when I open the 3rd page, the following error is raised: Error in File C:\WINDOWS\TEMP\StatReportNewV {94692B41-40A2-4F6A-9551-110BA7D78A37}.rpt: The request could not be submitted for background processing. Please help how to resolve this. ...

how to fix link in scroll bar

i am working on a shopping site. i am using a div tag where when i add on a product it is getting added to shopping basket in that div,which i am displaying it on top right cornor. in this, i have given View All link when user clicks on this it will rediredted to details of shopping page. when there are more than two or three products t...

How to run a leightweight ASP.NET MVC application that would be accessible only locally (not on IIS)?

We have a desktop client application and recent customer requests indicate that they would like to have some dynamic HTML content served and displayed by the application. We are considering hosting a simple ASP.NET application in a local process, accessible only from the local machine (similar to the ASP.NET development web server used ...

ASP.NET: WebMethod: PageMethods.GetRate is not a function

Hi all, When I try to access web method I obtain error: PageMethods.GetRate is not a function; My method: [WebMethod] [ScriptMethod] public static string GetRate(string date) { return "qwe123"; } Register assembly: <%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, Publ...

Displaying string variable in editable portion of ComboBox

I have some value in variable string var="some text"; i have bind the combobox with list but during loadoing of form i want var to be displayed in editable portion of Combobox... Thanks in advance!!!! ...

Need help setting up ASP.net 3.5 (Screenshots)

This is driving me crazy, and has been bugging me for weeks, I'm trying to sort it all out today but am having real difficulty, if anyone could help it would be a HUGE benefit to me! I'm trying to get a website I've developed on one computer, to work on my home computer. The old computer was running ASP.net 3.5. On my new computer, af...

How to add doublequotes to a string that is inside a variable?

I have variable like: string title = string.empty; My need is that whatever string is passed to it I have to display the content inside a div with in a doublequotes .So I have written something like: ... ... <div>"+ title +@"</div> ... ... But how to add the doublequotes here? So that it will display like : "How to add doublequot...

Getting error in web.config: requirePermission is not declared

In my project i am was getting error: error:requiredPermission attribute not declared to resolve this i did google http://dotnetslackers.com/Community/forums/requirepermission-attribute-is-not-declared/p/1241/12676.aspx and then i found that i will have to add "xmlns" in my webconfig's configuration tag and i did that: <configur...

ASP.NET session expired error when viewing a report

Hi, I am getting "ASP.NET session has expired" error when viewing a (SQL server reporting services) report using report viewer control. sometimes it works fine and sometimes I get this error, it works fine in Dev, but not in test environment. Please let me know if you have any clues. thanks in advance. here is the code for the report vie...

how to add ASPNETDB.MDF database to generate crystal reports

I have the connection string like this: connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" How do I give the new data source connection to this ASPNETDB.MDF (the database created with asp.net userlogin) file?? Wh...

Applying css on asp.net FileUpload Control's Browse Button only

I have a FileUpload Control like this <asp:FileUpload ID="fileuploader" runat="server" /> Now I want to apply css only on the Browse button part How can I do this? ...

How can I log any login operation in case of "Remember Me" option ?

I have an asp.net login web form that have ( username textBox - password textBox ) plus Remember Me CheckBox option When user login i do the below code if (provider.ValidateUser(username, password)) { int timeOut = 0x13; DateTime expireDate = DateTime.Now.AddMinutes(19.0); if (rememberMeCheckBox.Checked) { time...

Formatting asp.net label when the value is sourced from a query string

Afternoon all. A very simple one for you today from thicky Rich. I have a label I want to display as a lovely number format i.e. {0:N0} Now, this label text equates to a query string value. How do I go about formatting a label's text from a query string value in one fell swoop? I have tried this lblTotalPurchQS.Text = String.For...

Compare Datatables

Is there any way that I can compare 2 datatables with each other, both will have the same columns but I would like to check the rows in them to see which ones exist and which ones don't in each of the tables, is there an elegant way to do this? I am using c# ASP.NET too. Thanks in advance, hope I have explained it well enough. ...

Credentials prompt for an aspx page configured for anonymous authentication

From Flex we call a Upload.aspx page which is configured for anonymous authentication. Most of the time, it works like a charm, but once in a while, the browser does prompt a enter credentials popup... The whole site is configured for Windows Authentication, but some pages and folders are set to use anonymous authentication. This is don...