asp.net

Google Custom Search, how to run by querystring value ?

Hey I have signed up for the google custom search and its working reasonably well. So basically it generated a Javascript code for me to use. I was wondering how can I get it to work by also accepting a value from querystring ? Cheers ...

ASP.Net: How do I disable a ListItem?

Hi there, I've come across an annoying problem that's probably really easy to solve if you're not a newb like myself... I've got a DropDownList in ASP.Net that has a ListItem that requires being disabled... but I DON'T mean Enable="False". And I also don't want to disable the entire DropDownList, just one specific ListItem. What I'm tal...

Can I use normal Asp inputs instead of telerik's automatically generated ones??

Hi, How can I change <telerik:RadTextBox runat="server" ID="txtUserName" Width="238px" EmptyMessage="Lütfen 'Kullanıcı Adı' nızı giriniz."> </telerik:RadTextBox> in normal asp input form because in teleriks format I can not use onFocus="javascript:toggleMsg('msg-2')" or onBlur=...

How to set the maxAllowedContentLength to 500MB while running on IIS7?

I changed the maxAllowedContentLength to <security> <requestFiltering> <requestLimits maxAllowedContentLength="5024000000" /> </requestFiltering> </security> In my web.config, but when running on IIS7 I get this error: The 'maxAllowedContentLength' attribute is invalid. Not a valid unsigned integer but when I ...

Loading web application content through AJAX

I'm about to build a web application(not web presentation) which will load its content through AJAX (jQuery) into a specific div. There will be a menu above the div and when a user clicks on an item from the menu, the appropriate page will be loaded into the main div. I'd like to know if there are any cons and pros of choosing this patt...

How does websites get live Channel coverage

there are thousand of websites on the internet that have live coverage of the channels ,cricket matches.how does they do that? from where does they pick the coverage? i am asking this because i have no idea . any input will lead me to go further in the implementation i want to implement this in an asp.net website ...

Returing multiple Model objects from LINQ Joins

I am using ASP.NET MVC framework and accessing DB records with Entities. I am doing some joins like this: public IQueryable<...> GetThem() { var ords = from o in db.Orders join c in db.Categories on o.CategoryID equals c.ID select new {Order=o, Category=c}; return ords; } I need to use/pass 'ords...

C#, WebProxy, multiple proxies

I have a pool of IP addresses which I have registered with a supplier (firewall access). The IP addressess are for live and test servers and I do development from remote-office. Previously I created a proxy on test server and was using it to access supplier's system. I cannot provide my IP as it is dynamic. The problem now is we instal...

How to programmatically iterate through pages of a GridView

Hi all. I've created a wallboard application to display outstanding support calls for my ICT department. I've bound a number of gridviews to sqldatasources which execute a stored procedure. This is automated via asp.net ajax controls and partially refreshes the page/data every 30 seconds. At the moment, when the number of records in t...

How to switch off validation summary HeaderText for a perticular CustomValidator

I have 6 required field validators and 1 custom validator. ErrorMsg is common for required fields so I have set that msg to validation summery headertext but the problem is that error message is coming with custom validator too. In case of custom validator I want only customValidator error messsage not Header text. How can I do that> Do...

jQuery autocomplete: change SQL query depending on selected checkbox

Hi, imagine i have one textbox (with autocomplete 1.1, not the latest UI version) and a checkbox. The textbox triggers an asp.net .ashx page that will execute a stored procedure at the sql-server and return the results. It's all working, but i want to add another feature. When the checkbox is checked i want stored_procedure_1 to be exe...

Close colorbox from asp.net form Submit button in iframe

I'm aware there are other questions similar but I just cannot get this to work. Id like to close the colorbox iframe on the click of a .NET Button form within the iframe. <script type="text/javascript"> $(document).ready(function() { $(".del-add").colorbox({ width: "800px", height: "660px", iframe: true, open: true }); }); </script...

Repeater Control finding the object that raises the event

Inside repeater control HeaderTemplate i have some LinkButtons and Checkbox I want to findout the object (Linkbutton or checkbox) that raises the event. protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { switch(e.CommandSource) { case LinkButton:some work here; ...

w3wp.exe has high cpu usage on every request

I'm running a Windows 2008 server (a VPS with 1GB of RAM), with SQL Server Express and IIS 7 installed. On it I'm hosting a NopCommerce 1.7 website, with a database of around 26 000 products. Right now I'm the only user of the website (it's in development) and I'm getting rather bad performance from it. To be more specific every time I...

Tuncate string in ASP.NET using VB.NET

Hi, I made a function to truncate a string in the code behind file. But how do i use it in the aspx file? This is the textbox: <asp:TemplateField HeaderText="page" HeaderStyle-Wrap="true"> <ItemTemplate> <a href='<%# makepageURL( Eval("page") )%> '> <%# Eval("page")%> </a> </ItemTemplate> <EditI...

Data set skip column

Hi all... I have one dataset in which i have say 10 rows.. I want to skip data of first two column means whatever data is there in that first 2 column sholud not present in that dataset how to do this..? ...

Preview the text contents from HtmlEditor control(ajax) on A4 size paper and save it as .txt

I am doing asp.net project using C#.I want to display the contents that are being typed in HtmlEditor control onto a A4 size as preview and i also want to save this content to a file(.doc or .txt). How do i do it?? Please help ...

ASP.NET Repeater Selection

I have a select button(LinkButton) inside the Repeater.When i select the button that row should be appear in ListView control.But Repeater control does not support DataKey,then how can i achieve this? ...

WCF, ASP.NET Compatibility Mode and custom authentication using membership providers

Hello all, I need help in following:) To begin with I work on the large application, that has a WinForms client and server. Server in our case is the set of WCF services. There is one service that is responsible for authentication of users. The logic of authentication is custom and complex and authentication service uses different memb...

RegisterClientScriptBlock In userControl

Hello. This is my jquery and javascript code : <script type="text/javascript"> $(document).ready(function () { //setup new person dialog $('#dialog').dialog({ modal: true, modal: true, // show: "clip", // hide: "explode", autoOpen: false, title: "انتخاب فاکتور"...