Hi i am getting this error while tryin to connect my web site.
Unspecified error Description: An
unhandled exception occurred during
the execution of the current web
request. Please review the stack trace
for more information about the error
and where it originated in the code.
Exception Details:
System.Data.OleDb....
When adding user input to a web page, it should (unless it's HTML of course :) be encoded to help prevent XSS attacks etc.. like this:
litForename.Text = HttpUtility.HtmlEncode(MyUser.Forename);
I'm putting together a template to generate my business logic layer, and I'm thinking of using it to do all the encoding as soon as the data ...
Hi can someone show me an example of a multidimensional associative array in vb.net. Need array to hold peoples name, there age and a few other settings. Want to be able to use a Dictionary to use People.Add.
Thanks
--Mark
...
when I write this query (using LINQ):
Dim hw22 = From hw In db.HWs _
Select hw
then:
GridView2.DataSource = hw22
GridView2.DataBind()
this error occurs: http://www.rofof.com/img2/6hscmu7.gif
How can I solve this?
...
I'm struggling with the documentation to figure out exactly what I need to. The documentation (to my understanding) is for 1.5 anyway.
N.B: I don't want to extend NinjectHttpApplication
I've configured it to use the NinejctControllerFactory in Application_Start() but I get a null reference exception on the KernelContainer.Kernel when i...
Hello:
I just started working with Javascript and I ran into an error with Visual Studio stating, "Validation (ASP.Net): Attribute 'onMouseOver' is not a valid attribute of element 'Button'". Basically, I entered onMouseOver="this.style.color='Red'" within the HTML code of a button control. When I run my web project, the mouse over co...
The item doesn't get saved. Only member gets saved.
When I debug [AcceptVerbs(HttpVerbs.Post)]
the information is empty in the Item. Why? How should I solve this?
When it goes to the post method of create, then the ITEM dosen't follow the member. and the ITEMS doesn't get saved. I debug the information and there are 0 Number items. ...
Hello,
I think I understand ViewState pretty well, but the following is giving me some troubles:
From http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/truly-understanding-viewstate.aspx
Postback controls such as dropdownlist and textbox restore their posted state (the selected item of a dropdown ist 'posted') even when V...
this question is related to this http://stackoverflow.com/questions/962558/multidimensional-associative-array-in-vb-net
getting the following error.
System.ArgumentException: An item with the same key has already been added.
Line 103: AdInsured.Add(dbread.Item("FullName"), New Person(dbread.Item("FullName"), GetAge(dbre...
For some reason anything I put into a textbox does not get saved. Could someone please tell me why this is happening? Here is the simplified code I am using:
.aspx
<body>
<form id="form1" runat="server">
<div>
Try this:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat...
I have an ObjectDataSource that I'm binding to a DetailsView control. I have the insert method written in a business layer (which calls down into a data layer) and everything works fine.. until i want to do something else before the insert method fires. Before going to my business layer I need access to a fileupload control. So I wi...
I'm writings some ASP.NET and I tried connecting to my MySQL database. I found out GoDaddy doesn't support remote connecting to the database (free hosting).
Is there a way to program against it? Maybe prototyping the database locally?
...
Hi,
I want to record voice online and I guess I need to use FMS or Red5 and I don't know how to use Red5 with Asp.net, actually this is my first attempt to handle such a thing and currently I am a .net developer.
So someone please show me a way to handle it and show me how to use Red5 with Asp.net.
Thanks in advance.
...
Hi,
I'm building an application that gives users the option to send out an email notification to their friends.
The options I would like to give them for this are to:
manually write down which emails they would like to send to
choose contacts from a list of ones already in the database for that user
choose all contacts from facebook,...
I am having an ASP.NET page with one Asp.net button control and a normal html link (anchor tage) I want to invoke the postbackl event of asp.net button control when someone clicks on the link.
I used the below code
<a href="javascript:myFunction();" class="checkout" ></a>
<asp:Button ID="btnCheckout" runat="server" Visible="false"
o...
I am using an HttpModule to do some URL shortening on my site. I am using Visual Studio 2008 and IIS 7, and .Net 3.5.
When the module is specified in the system.webServer element of web.config, and the site is run in IIS, it works fine. The config looks like this:
<system.webServer>
<modules>
<add name="MinimizeModule" type=...
Not to name names, but for example, every pageview on all of Woot's forum pages (across four subdomains) returns a hidden __VIEWSTATE value that is about 54KB big.
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTIxMDUyNjY3MjAPZBYCZg9kFgJmD2QWAmYPZBYEAgEPZBYCAgEPFQERLi4vQmxvZy9GZWVkLmFzaHh
kAgMPFgIeBWNsYXNzBQljb...
I upgraded it with IE8 from IE7, but it was in a situation that "a list did not appear" even if I assigned mouse cursor to bill of fare control. It is each item of the list part of the bill of fare precisely. The square part of the whole list displays it.
this is a code:
<asp:Menu ID="Menu1" runat="server" BackColor="#B5C7DE" DynamicHo...
Hi there
I have a base page (inherited from System.Web.UI.Page and all my pages inherit from this base page) in my .Net web application and at the moment if I put the following methods:
protected int GetProfileTenant()
{
try
{
ProfileCommon p = Profile.GetProfile(Profile.UserName);
return Con...
Hi,
whenever I convert a DatSet into an XML with DataSet.GetXml, any null value is ignored, so, where i expect this:
<value1>a</value1>
<value2></value2>
<value3>c</value3>
I get this instead:
<value1>a</value1>
<value3>c</value3>
Any quick and dirty way to handle this?
Thanks
EDIT:
I think a solution would be using WriteXml. Coul...