Hello,
I've written custom role provider, which internally uses web service methods for getting roles or usernames. This provider inherits from System.Web.Security.RoleProvider. In the web.config file I switched on .NET provided caching feature which uses cookies.
Here is how looks web.config section for this provider:
<system.web> ...
Hi,
in my new c#.net 3.5 ASP Website, user have the possibility to upload a picture.
What solution is the best for saving this picture? Should I save it on my server in a folder and save the path in the database, or should I save the picture in the database?
...
Hello
Can I dynamically create controls in Silverlight without a postback to the server (even an asynchronous one). Does silverlight drag-n-drop requires postback?
I'm asking this because I've an asp.net application where I dynamically create/delete lots of controls. So after the postback I'm getting error with view state stating that...
The snippet of code was just supposed to write a string into a text file called "all_results.txt". I had errors implementing in File.WriteAllText. After searching the net for solutions, I tried using FileStream and StreamWriter as substitutes. The problem still persists.
It gave me:
IOException Unhandled: The process cannot access the...
Hey all, i am in need of some help trying to figure out why this dropdown is not selecting the value after i pick one.
Here is the ASP.net for the dropdown part:
<div id="divItemsPerPage" runat="server" style="font-size:60%;font-weight:bolder;padding-right:15px;">
Items per Page:
<asp:DropDownList ID="ddlPerPage" runat="se...
Hello!
Is it possible to hijack the RawUrl property somehow, in order to change it?
Asp.net MVC internals have the horrible habit of using that, to craft some URLS (and not all, most annoyingly). This way they just ignore my calls to app.Context.RewritePath, which works most of the time...
Thanks...
...
I have a table in an SQL DB that stores individual data items from a table; it might help to think of it as a matrix but with labels instead of integer indexes.
The structure of the table looks like this:
DataItem
{
int TableID,
int DataItemID,
string YLabel,
string RowLabel,
int Data
}
Basically I...
Hi,
I use asp.net recaptcha control on my website (.net 3.5).
I get it from this site:
http://code.google.com/apis/recaptcha/docs/aspnet.html
version 1.0.4.0
It works great on IE6, chrome, ff, safari but I don't know why it doesn't work on Opera. When I open this page it's blank.
I've prepared just a simple web form which contains onl...
I am using RadListBox and RadDateTimePicker in a traditional C# ASP.Net 3.5 web application, and I have labels like this:
<asp:Label ID="lblStartDate" runat="server" Text="Start Date" AssociatedControlID="dtpStartDate" />
<telerik:RadDateTimePicker ID="dtpStartDate" runat="server">
</telerik:RadDateTimePicker>
The label doesn't connec...
I have following code
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
UpdateCommand="UPDATE [gMeter] SET ... [userId] = @userId ...
I need to parametr @userId assign session variable Session["userId"], any ideas? I tried
[userId] = <%= Session["userId"]%>
But it does not works.
...
EDIT:
its a confirmation div box that when the user click on save button, you typicall see the confirming that they have receivied your inqury.
and the div box look like this:
"[image] We got your email, and you should hear from us within 24 hours."
below is the code that i am using to display div with image but whats happening that,...
Hi,
I'm trying to find out if there is a shorter way of writing data to a view than what I am currently doing. This is what I currently have in my view:
<td>
<%
if (Model.AnnualIncome != null)
{
%>
<%: "R " + Model.AnnualIncome.ToString() %>
<%
}
%>
</td>
Is there a shorter way of ...
So the code below is called when a user selects Save on an ExtJS popup modal window. This window ONLY contains a combobox. Now, sometimes when a user saves this, and then re-opens it later on, the combobox will appear BEHIND the window all grayed out, unable to get to. Other times, it will be fine and work, and no difference in events ha...
Hello All,
I'm new in using Extjs Library , I want to use GridPanel but I don't know how to use it with aspnet ,
any help will be appreciated
Thanks in Advance
...
I've got an ASP.NET 4 site on which I want to allow people to put '<' in their password. However, .NET gets in the way by blocking (what it sees as) an attempt to put HTML in a form field. I know I can turn off input validation entirely, but I only want to turn it off for this one field. Does anyone know an easy way to do that?
...
I have a query in sql server 2008. That I want to either pass a value from the dropdownlist or IS NOT NULL (so it shows all of the values). What's the best way to handle this? I know you can't pass the string "IS NOT NULL" to the parameter. I'm a bit stuck on this one.
ASP.NET 3.5 and SQL Server 2008.
...
I have a server that gets it time reset to 7 hours in the past. When this happens forms authentication no longer works.
When I resync the time with the server time it works again.
What could be causing this? It is actually and issue for me more so then changing the time, because I don't think it will be possible to keep all the clien...
The basic problem: selecting a few items from a list of thousands.
The potential solution:
I have an autocomplete field that searches the db, and returns a name/id pair. This is working fine.
The next step is to preserve the selected IDs, and allow the user to remove some if needed. For this, I've been looking at using a select...
Hi..all
I am developing a login form with User Name and Password. I want the user to create the username in a specified format. So i am using RegularExpressionValidator for the username. What is the Validation Expression for this format.
The format is:
xyz\\t4z4567 (characters are not case sensitive)
Rules:
The username will be cr...
I have a Crystal Report used in an ASP.NET web application that I've just come into a project I'm assessing/turning around.
The reports are called from a web page or web service and are sent an ADO.NET dataset - using ReportDocument.SetDataSource for some tables with a relation etc - all defined largely in code - initially loaded from t...