asp.net

Why SWFUpload ASP.Net samples not working?

http://swfupload.org/node/7/release Why these samples not working, anyone faced the same thing and have a fast solution to make it work? The solution is compiling and the default page is opening normal in FireFox but when i click on the button nothing happen And in IE the button not appearing at all ...

What is the difference between a Session and a Cookie?

What is the difference between a Session and a Cookie? What circumstances should each be used? ...

Passing/Getting the session("userid") on login page. IN virtual studio -> vb

Passing/Getting the session("userid") on login page. IN virtual studio -> vb How can get with the vs login box ?? ...

ASP.net listbox control return -1

Hello everyone! I am trying to put a listbox control on my ASP.net page, and when I click it, the selectedindex value is always -1. Why is it doing that? I set AutoPostBack to true. Why is it always returning -1? Please let me know. Thanks ...

Can I ban an IP address (or a range of addresses) in the ASP.NET applicaton?

What would be the easiest way to ban a specific IP (or a range of addresses) from being able to access my publicly available web site? Is it possible to do so using the ASP.NET only, without resorting to modifying any IIS settings? ...

LoginStatus for ASP.Net MVC?

Hi There, How do I get the LoginStatus for ASP.Net MVC? I can connect and authenticate on MVC, but I am not sure how to get the LoginStatus, can anyone help? Thanks ...

JQuery tbody question - ASP.NET

I have a aspx page that looks something like this: <table runat="server" id="tblTEst"> <tr id="trHeader" runat="server"> </tr> <tr id="trRow1" runat="server"> </tr> <tr id="trRow2" runat="server"> </tr> </table> When I write my JQuery to say get a count of s, I need to do: alert($('#' + strTableId).children('tbody').ch...

What should I be aware of when moving from asp.net to python for web development?

I'm thinking about converting an app from Asp.net to python. I would like to know: what are the key comparisons to be aware of when moving a asp.net app to python(insert framework)? Does python have user controls? Master pages? ...

Setting a class for a DIV that is a server control.

I different CSS styles, one of which is: #layoutsectiondiv{ border: 2px dashed #000000; padding: 1px; left: 0px; } I have a aspx page: <div id="testDiv" runat="server"> </div> If it was regular HTML, I would set the style of a div by doing a <div id="layoutsectiondiv"> </div> At runtime (in code behind), I need to...

Updating a control outside the UpdatePanel

I have the following ASPX structure: <UpdatePanel id="OutsidePanel" UpdateMode="Conditional"> <div runat="server" id="myDiv"> <UpdatePanel id="InsidePanel" UpdateMode="Conditional"> <asp:ImageButton that causes a postback.. /> </UpdatePanel> </div> </UpdatePanel> When the imageButton is clicked, on the server side...

ASP.NET: localize content with mixed HTML formatting

In my application I have paragraphs with mixed static text and HTML formatting and links. I'm looking for a good localization solution that keeps resources decoupled from markup. Let's say we have the following paragraph: <p>Let's have a <a href="someURL">cup of coffee</a> and get <b>energized</b>.</p> Using the standard resx soluti...

Nested rows in a row

I have got 3 columns (columns: FirstName, LastName, Tel ) For the FirstName and LastName I use GridBoundColumn this is fine. But for the last one I don't know what to use (I could have several numbers and there for I need several Rows in a Row). How can I solve this problem my DataSource is a List (string FirtsName, string Lastname, List...

Impact on performance using ASP.NET Controls

With user controls on a page, I understand that every control has an impact on memory usage by storing their own state in ViewState. My question is, how much? For example - I have a feedback form as a control on my masterpage. It is set to Visible="false" by default. A user clicks on a feedback button, and the control becomes visible wh...

What is the best .NET web development framework?

I'm looking for a framework to simplify the creation of a website with social networking features and plenty of custom functionality. I'm quite keen to use an ORM like nHibernate or similar for data access. Would DotNetNuke be a good choice? Or are there other options which are better. Added: I'm quite keen not to have to reinvent the...

ASP.NET: Edit App_GlobalResources with precompiled web

Is there any options to editing the resources in the App_GlobalResources folder? Once compiled, the directory is not included as part of the precompiled folder. I read online that the App_GlobalResources Resources are compiled into a DLL for easy access. However, I want the administrator to be able to update the content of these files....

Unable to view values of variables while debugging

I'm trying to debug portions of the current application I'm working on, however when I try and check the value of a property/variable I get the error: Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized. This is just a regular ASP.NET project. ...

Smallcaps / multiple fonts and bolding using 'DrawString' in GDI+

I want to write out some text using smallcaps in combination with different fonts for different words. To clarify I might want the message 'Welcome to our New Website' which is generated into a PNG file for the header of a page. The text will be smallcaps - everything is capitalized but the 'W', 'N' and 'W' are slightly larger. The 'N...

How can I store a GridView cell value to a session variable?

How would I store the value of a GridView's selected rows to a session variable? ...

Control Lightbox (Modal) From Code-Behind Of Asp.Net

Before meeting with Ajax and Jquery, in my projects I had a function like below. Public Sub Raise_Alarm(ByVal p_Page As Page, ByVal p_Message As String, Optional ByVal p_IsError As Boolean = True) strScript = "<script language= ""javascript""> alert('" & p_Message.Replace("'", "") & "')</script>" Dim t As Type = p_Page.GetType() ...

How to submit a file's original path and filename without submitting the file itself in ASP.NET?

How can I have a control on a ASP.NET form that browses for files as FileUpload control does, but instead of submmitting the whole file, it only submits the path from witch the file was found from (with the original file name)? ...