asp.net

How to set Row Filter for Dataview to filter rows according to valu of column?

Hii, I am using DataView control to bind a gridview. In dataview data is coming from a table 'cloneUserEntry'. cloneUserEntry table contains a column 'Visibility' whose value is true or false (boolean type). I want to display rows whose visibility is true. So how to set row filter to filter rows whose column 'visiility' contains only tru...

How do I place codebehind in multiple files?

I'm running in to a lot of inconsistencies with regards to what will compile and execute correctly in a Visual Web Developer 2008 Express environment and what fails on my web server. In particular, I've got an aspx and aspx.cs codebehind, plus a number of additional .cs files in my Web Developer project. It builds fine and executes oka...

Looking for feedback from people that have gone from 100% web development to winforms.

I have been a web developer for my entire development career. Nearly 100% microsoft focused the entire time. I have been using .Net, both C# and VB.Net, since beta. I now find myself in a position to where I have the opportunity to start doing some WinForms development in C# using the 3.5 framework. As with anything new, I am excited abo...

Change table border color using JQuery

I have a user control that conatins HTML, like this: <table id="tblProgramInfo" runat="server" cellpadding="0" cellspacing="0" class="ProgramInfo"> <tr> <td> <table cellpadding="0" cellspacing="0" width="100%" class="tblProgram" abc="def"> <tr> <td> Some data </...

Help For Regular Expression

Hi, I want to convert a link to a definite text by using regular expression.While binding datagrid,i have a function which convert (look: the text) to link.My Function is here. Private Function Convertlook(ByVal str As String) As String Dim look As String Dim pattern As String = "\(look: ([a-z0-9$&.öışçğü\s]+)\)" ...

Does the ClientScriptmanager work when called in a partial postback?

I would like to close the browser window when an ASP.NET operation has succeeded. The code below is triggered by a button that resides in an Ajax UpdatePanel. Page.ClientScript.RegisterClientScriptBlock(typeof(LeaveApproval), "ShowSuccess", "<script language=javascript>window.opener=self; self.close();</script>"); However, this code d...

Setting RegularExpressionValidator ValidationExpression in JavaScript

Is it possible to set the ValidationExpression of a RegularExpressionValidator using JavaScript? I'm using ASP.NET 3.5. Here's why I want to do this... On a payment page I have a DropDownList that allows my user to select their card type. Beneath that is a TextBox in which they type their card number. I want to use a RegularExpression...

ASP.NET TextBox Control - Get the default text value in code behind?

Hi all! I have been spying the MSDN and can't see a property/method for TextBox that allows you to get the default text value that was set on a field; I want to be able to compare the current txtMyTextBox.Text to the default value (like this psuedo code shows): var myValue = (String.Compare(txtMyTextBox.Text, txtMyTextBox.DefaultText) ...

Can I change the warning settings for Web Sites in visual studio?

I can turn on warnings as errors and exclude certain warnings for all the projects in my solution except for a website (not web application). Is there anyway to turn on 'warnings as errors' as errors for websites and is there anyway to turn off certain errors for the whole website or sub folders? Update I'm using ASP.Net with C# ...

JqGrid addJSONData + ASP.NET 2.0 WS

Dear community ! I am a bit lost. I' ve tried to implement a solution based on JqGrid and tried to use function as datatype. I've setted all by the book i guess, i get WS invoked and get JASON back, I got succes on clientside in ajaf call and i "bind" jqGrid using addJSONData but grid remains empty. I do not have any glue now... other "...

ASP.NET sample applications

anyone know of some well written (but not too complex) ASP.NET web applications/websites that i could download from code.google.com or something? i just want to peek at how some other projects look to get some ideas for how to structure my project before it goes live. many thanks. ...

What model/pattern should I use for handling multiple data sources?

As part of an ecommerce system I need to design and implement a blackbox of sorts. This needs to accept customers and orders from various internal and external data sources (i.e., web site, extranet, yahoo store, amazon xml feeds, etc.) and insert/update a backend system. The api's to insert/update customer and order data are in place ...

Automatically mark ASP.Net controls which have a RequiredFieldValidator on them

Is there a clean and centralized way to automatically designate a background color or other CSS property for ASP.Net controls (i.e. a TextBox) with an enabled RequiredFieldValidator? Currently I have manually set the background color of required controls to yellow. I would like to replace that with a central method so if the client requ...

DataTable to Json using jquery

I'm trying to execute a web service which returns a DataTable with the following piece of code: $.ajax({ type: "POST", url: url, data: data, contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { //do things } }); If the webservice retur...

processing page

how to show a processing page on load of certain data display page in asp.net. ...

GridView Column Width Altering

Can someone please help me with my problem? I have a gridview in a webpage, whose datasource is an oracle database. I would like to know if it is possible to change the column widths while you are on the web page? string select = "SELECT * FROM TABLE" OracleCommand cmd = new OracleCommand(select, connectionstring); cmd.Connection.Open...

vb.net, option strict, enums and overriding ToString

I have the following code: Public Enum Country Canada = 1 USA = 2 End Enum When I want to see if the user has selected a value, I do: ddl.SelectedValue = Country.Canada Which works fine. However, if I turn on a warning for implicit conversion, this gives a warning. Changing it to ddl.SelectedValue = Country.Canada.ToString...

Hybrid WebForms/ASP.NET MVC

I am kinda new to .NET applications, I have a web forms application that I am working on and I am about to start the development of new pages, I am trying to make the new pages with the ASP.NET MVC, but I am not beeing able to make the pages hit the controllers. First i added the library references added the routes on the global.asax but...

Forcing client ids in ASP.NET

I know that in the next version of ASP.NET we'll finally be able to set the clientids on System.Web controls without the framework doing it for us in a quasi-intelligent way e.g: id="ctl00__loginStatus__profileButton" Does anyone know a good method in the meantime to force the above id to something like id="profileButton" The main ...

ASP.Net MVC Redirect To A Different View

Is it possible to redirect to a different view from a controller? For example in this case all my controllers inherit from a custom controller that has a contructer that I want to redirect to different view if certain criteria is not meet. Hope that makes sense. Thanks ...