Is there any way to set a CSS class on an input item in a radio button list? I'd like to reference these form values by class in jQuery.
Given an ASP.NET RadioButtonList with classes set on the ListItems:
<asp:RadioButtonList ID="RadioButtonList" runat="server">
<asp:ListItem class="myClass" Text="Yes" Value="1" />
<asp:Li...
Will you put the model part in asp.net mvc into a different library/assembly?
Edit
Or should we put put the model part in asp.net mvc into a different library/assembly?
...
I have an ADO .Net Entity Data Model for my database. In this Model I have three related tables:
"Users" Table containing UserId and other details.
"Run" Table that contains RunId, ApproverId and other details
"RunToUser" that contains UserId and RunId columns
The relationships are as follows:
Users.UserId is a one to one relationship ...
I have a web application that uses the asp.net membership and role providers to allow logins that are members of certain roles to have access to various pages depending on role assignments.
During debugging I'd like the app to log in automatically with a test account, so I can check the functionality of the role assignments, and not h...
Hi,
I would like to call the aspnet Membership ResetPassword stored procedure called: aspnet_Membership_ResetPassword within the aspnetdb database.
When I look at the SqlMembershipProvider class there is a ResetPassword method but this is not useful as I cannot pass the parameter PasswordFormat as I can with the stored procedure.
Can ...
I can't find a way to select multiple items in an ASP.NET ListBox in the code behind? Is this something needs to be done in Javascript?
...
I have a web service that is running on IIS (6 or 7, doesn't matter) and I would like to know the port that the caller has sent their request/invocation from.
So if a client makes a call on my web service, how do I find out from the server side what the port number is they made the call from?
Is that something that even gets passed at ...
When I run Roles.GetRolesForUser("username") the roles are returned correctly, however if I add a user into a role in AD, the result does not show up until I log the user out of their system, and have them log back in.
Is there any way to make the system re-check each time?
...
I have written a data browsing library that is being used in several projects. The library or component includes some classes as well as some ASPX pages.
Until now, we copy all the files into each project to reuse it, with the obvious drawbacks and updating nightmares. I want to encapsulate all the library into a component that the proj...
I have 2 dropdownlists on my aspx page, second is filtered by the selection in the first list.
How do I pre-select the two dropdown lists with the data saved in the database for the record when the page loads, it does not work when I bind data on the page on Page_Load.
I am using ObjectDataSource to bind the two dropdownlists.
<asp:Dr...
I am trying to set up so that my default page
http://demo.liginsurance.com/ goes to
http://demo.liginsurance.com/default.asp
currently it goes to http://demo.liginsurance.com/Home/Index
what route can i write or ignore to get that to work...
-Thanks
Hurricane
...
I have a page with a single dropdown. Depending on what the user chooses in this dropdown, a pretty huge report is generated. The cache directive for the page reads:
<%@ OutputCache Duration="14400" VaryByParam="none" VaryByControl="lstUsers" %>
The drop-down is defined as:
<asp:DropDownList ID="lstUsers" runat="server" AutoPostBack=...
In VisualStudio, when you drag and drop a table or an individual column from a data connection in server explorer, a gridview is created.
What I want to be able to do is drag and drop the columns to make a quick and dirty detail form to display an individual record. Is this possible in any way?
An even better way to do this would be v...
I'm using datalist in my application and i'm binding datalist with lisq to sql
dim db=new linqdatacontext();
var products=from p in db.products select p;
datalist.datasource=products;
datalist.databind();
now how can i do paging in my datalist?
...
I have a webpage with some data in a table and I would like to offer my users the option to download it as a PDF File, how can I do that in ASP.Net?
...
I need to pass data to a variable in my master page each time a page is loaded.
I have a string[] of RequiredRoles that I set on each content page defining what roles are required to access that page.
On my master page, I have a method that takes this array, and checks to see if the current user is in one or more of those roles.
How w...
how can i create an singleton asmx webservice ? (please don't say use WCF and WWF :D )
...
Hey everyone,
I'm having a heck of a time trying to get a gridview to refresh its data after a modalpopup adds a new record to the database. Ive tried the following with no luck.
<cc2:ModalPopupExtender ID="mdlPopup" runat="server" OnOkScript="__doPostBack('<%= gvRecommendations.ClientID %>', '');" BackgroundCssClass="modalBackground"...
I have a multi-project ASP.NET + C# solution. Tonight, I was planning on writing a quick (separate) VB app that yanks out all DLLs, ASPX, Config, etc files and slaps them into a 7zip file for deployment to the test server.
Is there a more elegant solution than this?
My development environment is VWD2008Express.
Thanks in advance for y...
I am writing a form using jQuery and encounter some difficulties.
My form works fine in static page (html).
However, when I use the form in dynamic page(aspx), the form does not behave correctly.
I cannot append items to the form and call the form.serialize function.
I think the error occurs when a form is inside another form (.aspx co...