I have the following code for each lookup table. So far I am doing copy/paste for each drop down list control. But I think there is a better way of doing this. I should be able to specify DataTextField, DataValueField, control names etc. Of course I will have to manually add configuration related database values on the database side like...
I have the following code for each lookup table. So far I am doing copy/paste for each drop down list control. But I think there is a better way of doing this. I should be able to specify DataTextField, DataValueField, control names etc. Of course I will have to manually add configuration related database values on the database side like...
Why when I set enabled=false on a button does it not render correctly in Firefox? Instead of graying out the link it is still blue.
[UPDATE]
ASP.net already removes such tags on the link so the only thing that is needed is to grey out he link. In other words a CSS style change not a functionality change.
The following effectively re...
Can I get a stylesheet to detect a custom tag on a page element?
I'd like to add some functionality into a stylehseet that can detect a disabled="disabled" attribute on a linkbutton and grey it out.
[UPDATE]
Great suggestions. This effectively resolved the disabled buttons not showing up as grayed out in firefox and google chrome. Th...
Hi,
I am stuck in uploading files at different pages.On one page i open a popup where i ask user to browse and select files and on close option,the popup gets closed and then i want to upload files from the main page, not from the popup. How can i do that?
I am using the following code to obtain uploaded files:
HttpFileCollection uploa...
I'm going to apologize ahead of time. I'm new to ASP.NET and MVC and don't yet grok the internals and flow of operations. I'm trying to get the ASP.NET MVC Membershp Starter Kit integrated into a site I'm developing to get OpenID support.
I've worked through several issues, but I'm stumped at where to start looking for a null reference ...
Hi,
I would like to dynamically generate a form from a database in ASP.NET, what is the best approach? Are there any built in functionalities I can use?
I will have database tables to represent the panels and their names, then for each panels, it contains the different fields and their types (Combos, Textboxes, etc..).
Please advice,...
Hi
I want to use a validator to compare 2 text box in such a way that ,
If V is in Text box 1, means User must type any of the numbers prefix V in Textbox 2 (V00001 to V00050).Other than V ,if they type any other Letters means error message must be shown.
Just like that if C is in TextBox 1 means user must type C00001 in TextBox2.(or...
Hi I am trying Export data to excel sheet from GridView but having this error.
RegisterForEventValidation can only be called during Render();
Here is my code
Dim attachment As String
attachment = "attachment; filename=Contacts.xls"
Response.ClearContent()
Response.AddHeader("content-disposition", attach...
I read that webservice are transmitted through soap over http,,then what is the differnce between SOAP and HTTP,,though both are communication protocols.Is there any differnce or HTTP binding is used in soap?
...
Hi!,
Can someone share their experiences with s#arp architecture. we have decided to follow mvp pattern for the project. Is this okay to go with it ? The size of the project is medium. we are going to follow the tdd and ddd.
Can anybody explain how to use this architecture means explain about the layers. we don't have enough time to go...
I have a gridview bound to a LINQ to Sql datasource. I would like to filter the the results in the gridview using the LIKE operator. i.e I have a textbox used to Search on Username and I would like to select all users with the username like [textbox value].
Below is my code:
<h1>Manage Users</h1>
Search for users
Username:
...
Hi guys,
I've not worked with anything but simply controls for a year or two and so am a bit rusty and need some help.
I want to allow a usder to create a product categories structure, with a parent child relationship which can be any depth.
To thsi end I want to create a control to represent a level with a listbox to show the sectio...
Quick question which I thought would be easily answered.
I have a .net website, which has references to dlls in the GAC.
When I build this and deploy to another server (in production) which doesn't have the same DLL references in the GAC, how can i get the dlls across?
...
I want to have HttpModule to inject javascripts, css links into HEAD element from some simple config data. I am not sure which event I should hook?
Curently I use
- context.PreRequestHandlerExecute for changing the masterpage dynamically
- Context.BeginRequest for SEO optimalization
There is some help at http://stackoverflow.com/ques...
Dear All,
I want to know how can I implement the scenario "if the user is already logged in or not?" i.e. I have an application which initially redirects u to Login.aspx and then redirect to Home.aspx.There I am showing one msg like Welcome "UserName".Now if the user dont logged out and close the browser and next time visit the site he s...
I have created a CustomValidator control
public class MyValidator :CustomValidator, IScriptControl {}
and also created the equivalent client script. The server validation works fine, however how do I hook up my client script?
The rendered javascript looks like
var MyValidator1 = document.all ? document.all["MyValidator1"] : documen...
Hi,
I am using jquery remote tab with asp.net to load my .aspx pages.The problem is if suppose i have a main page called "Parent.aspx" which contains the jquery tab and child page "Page1.aspx" which is loaded via remote tab into the "Parent.aspx".When i click on a server side button on my Page1.aspx, the whole window redirects to the Pag...
Hello.
I want to implement test feedback in my web application in the following manner - when a user with testing privileges logs in, every page in the web app will open small feedback window and dock it to the corner. Testers can use this window to describe the issue, and eventually add attachments. On confirmation, the module saves th...
I'm trying to write username validation using jquery, I'm using jmsajax plugin.I have tested webservice, it work fine.
I'm getting error.
Webservice code
[System.Web.Script.Services.ScriptMethod(ResponseFormat = ResponseFormat.Json)]
[WebMethod]
public bool check_username(string uname)
{
DBMOdelDataContext db = new ...