Hi
I have a FileUpload with a RegularExpressionValidator with the following Validation Expression
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.gif|.jpg|.JPG|.JPEG|.GIF|.jpeg|.png|.bmp|.3dm|.3dmf|.ai|.drw|.dxf|.esp|.mng|.png|.ps|.psp|.svg|.tiff)$
This way i make sure the User only Upload Images............
But for some reason it does ...
I have a simple file selector on my web application which uses Directory.GetFiles and Directory.GetDirectories to produce the UI. This works perfectly on my localhost, but when I upload it to my Windows Server 2003 hosting I can only see files - on the same directory, GetFiles works but GetDirectories doesn't.
The code is incredibly si...
Hi,
Ok, I have a masterpage, on that i have a linkbutton, popupcontrolextender, a panel as the popupcontrol and within the panel a login control.
When the linkbutton is fired the popup panel reveals itself with the login control inside, if i try to login, the authenticate method does not fire.
I have tried many different ways of getti...
I have several ASP.NET applications deployed in a farm of 4 Windows 2003 machines. Each application uses a separate App Pool and Virtual Directory in IIS. They rely heavily on sessions which are persisted out of process on a single SQL Server 2000 (<sessionstate mode="sqlserver" ... />). Applications are compiled against .NET 3.0 but .NE...
hi there
i have made a web service, it has two web methods, one method uses an xml file to get the data, and other uses a database on my machine, first method is working fine but when i call the second method using an object of the webservice from my aspx page, i am getting the below mentioned exception, i am a beginner on this and have ...
Hi,
I am working on ajax-page using PageMethods (web service) to interact with server.
I want to allow a user to upload a given file to server (at some fixed path on server).
I know about FileUpload control in asp.net, but that wont work in my case. Since i dont want to user UpdatePanel or a dedicated server page.
Is there a way to do...
I have three classes MainMenu, SubMenu and Secondary SubMenu. I have a cascading drop down box which is used when creating Secondary Submenu. A main menu is selected which then shows a drop down with sub menus. When I select an item in the MainMenu drop-down box I get an error:
System.InvalidOperationException: A circular reference was ...
I am using ASP.net with VB.NET.
Is there some Validator that i can use that will check the size of the uploaded image?
Else what must i do in code to make sure that the user do not upload images more than 1MB?
Thanks in advanced
p.s C# code will also do, i can use a converter to VB.NET
EDIT
For some reason when i change the maxReques...
One of our applications has a mechanism for emailing our Helpdesk automatically should it encounter a certain level of exception. One particular exception, a NullReferenceException, is causing a few problem and I believe it is caused by IIS recycling and losing the session.
To prove this I want to log when the application is started/sto...
How i can create a generic datacontext on linq means If database change i don't have to change anything on linq datacontext.
Please specify the code or link
...
I am fairly new to the Entity Framework and am in the process of building my first MVC application. I'm implementing a Create View for a simple Entity however, I am having problems with the (SQL Express 2005) Identity column primary key. As I understand it the Framework should handle the Identity column and let the SQL database generat...
I have tried setting it in the code and also in the markup but when the Next Button is clicked, the page is validated, I want to prevnt this from happening and control when validation should occur and when not. Any suggestions or code samples would be appreciated
...
I am working with an old web application developed in VB.NET 1.1 framework. I am having an issue with checkboxes.
I have the following code for my checkbox:
<asp:TemplateColumn HeaderText="Reviewed">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemTemplate>
<asp:checkbox ID="chkAppRev" Runat="server"
OnCheckedCh...
I am writing a survey application, and I have a form that can have potentially hundreds of input fields. How would I write the controller to process this form? I can't specify each input as a parameter for the controller, that would be unrealistic.
I found out about the MVCToolkit, and the UpdateFrom() method, but is this the right ...
In a website, I need to integrate membership and authentication. So I want to use the functionality of ASP.NET Membership, but I have other custom stuff, that a "user" has to do.
So I am sitting here with my pencil and paper, drawing lines for my domain model... And how can I best utilize the ASP.Net membership, but extend it to fill m...
Here is the issue:
We have a report with many gridviews in an aspx page. However, when we print them, they don't page correctly, as one would expect.
I found a library that will create page breaks correctly within a single page break. But, yet again, it is not aware about other gridviews, so if the last gridview ended in the middle of ...
Hi,
I have a news portal.
For this portal I have a database with a "News" table and with the following columns
(NewsID, CategoryID, NewsTitle, NewsText, DateAdded, ImagePath, TotalRead, NewsType, isActive)
I use dataset files (.xsd) and for this one, I have a query that returns the last 3 days' news into a custom class that I coded, ...
Let's say I have a controller action defined as:
public ActionResult(MyModel model, string someParameter)
{
// do stuff
}
I have a custom model binder for the MyModel type, and there is a form field called "SomeParameter" in the view that is not bound to the model. How does ASP.NET MVC know to pass the value of Request.Form["Some...
One of my friends has written a website that has so many user controls and pages.
The pages contain so many labels, hidden values and user controls. Based on user requests he is enabling and disabling those controls. In every webform pageload he is looping over Request.form.allkeys and comparing every control. Based on that comparison, ...
The JSON response from the following code is wrongly escaped as described below.
My webmethod is like this:
[WebMethod (Description="doc here")]
[ScriptMethod(ResponseFormat=ResponseFormat.Json)]
public string responseMyObject() {
if (!Setup()) return "";
...
Proxy pu = new Proxy(...);
...