asp.net

How Should I store values in DB from multiple text boxes.

Hi, I have 14 text boxes on application, in that user will enter single digit numbers. My task is to retrieve and save the values of all 14 text boxes into DB... I am facing a problem in passing a string for all text boxes. Could anybody help me out in writing some code in .aspx file? I did some work on it: actually I need help in writi...

Using Routing without MVC: authentication form

Hi. Now I'm trying to work with System.Web.Routing. All is just fine, but I can't understand how to make form authentication work with url routing (return url, redirection, etc). Google says nothing. Help! :) UPD: I forgot - I don't use MVC. That's the problem. How to use rounig and form authentication without MVC UPD2: more about my...

ASP.NET Datagrid HTML Output (Display)

Currently I am binding a dataset with a datagrid. ds = query.ExecuteReadQuery("select PollQuestionText as 'Survey Question', PollAnswer1Text as 'Selection 1', PollAnswer2Text as 'Selection 2', PollAnswer3Text as 'Selection 3', PollEnabled 'Status' from tbl_pollquestions") For Each row As Data.DataRow In ds.Tables(0).Rows ...

What 3rd party asp.net controls or libraries can you not live without?

Working on a project right now and I have a few must have controls that I include in most sites I build. Often times it strikes me that the best controls are not always that well publicized so I thought I would ask the SO community about their favorite 3rd party asp.net controls - the ones you just have to have on a project because they ...

How to create HTML output without a) databinding or b) using Response.Write?

Kind of related to my other question - I've only ever used HTMLControls with runat="server" and WebControls grudgingly, preferring to have control over the markup that gets generated (including the ids of the elements, etc.). What's your suggestion for, say, iterating over the contents of a collection and generating a table or list with...

Ideas on making a javascript object name unique in ASP.Net?

I've created an ASP.Net user control that will get placed more than once inside of web page. In this control I've defined a javascript object such as: function MyObject( options ) { this.x = options.x; } MyObject.prototype.someFunction=function someFunctionF() { return this.x + 1; } In the code behind I've created MyObject in a s...

What is meant by htmlencode and urlencode ?

What is meant by HTMLEncode in ASP.net. How we use this HTMLEncode to controls. What is meant by urlEncode and in what way it differenitates from HTMLEncode? ...

How to read GlobalResources in ASP.NET MVC Controller?

I can't find a way to read resource values in a controller ...

(ASP.NET MVC) Will this make my webapp slow if I use GlobalResources for localization only?

I have a multilingual site and I want to use Global resources only, I was wondering if it could cause my site runs slower? ...

Compile time problem in .Net 3.5

Hi, I am developing a web application. When i build the application i can see the statement "Build Succeeded" in status bar even the syntax of object declaration is wrong in a aspx.cs file. I cleaned the solution again i tried to rebuild the application. But i did not get any error. If i am adding any block of code in that page it is no...

ASP.NET Web Architecture Design

The problem I'm having with writing a web application architecture is that I want separate components that work together. By this I simply mean, for example, a navigation bar and the actual page content (as well as a header, which is static) in ASP.NET. Now, here's where it gets interesting: There are no two pages the same The naviga...

How to send SMS from ASP.NET application by way of a GSM modem

If GSM modem has to be used to send SMS, then what are the hardware and software requirements to setup the entire thing? ...

Visual Studio HTML editor curly bracket annoyance

Does any one know of a way to control how Visual Studio handles curly braces in Html view? Type... <% if (true) { %> Then <% { %> And visual studio will auto format it as such. <% if (true) { %> <% } %> Not a major issue but nest a few of these using foreach and it gets messy. ...

ASP.NET MVC Beta upgrade problem with ajax form

I got this ajax form in a ASP.NET MVC beta application : <%using (this.Ajax.BeginForm("Edit", "Subscriber", new AjaxOptions { OnSuccess = "onEditResult", HttpMethod = "GET" })) {%> <%=Html.Hidden("idSub", p.Id.ToString())%> <input type="submit" value="Edit"/><% } %>...

ICallbackEventHandler and ViewState

Does anyone know if viewstate is available when using ICallbackEventHandler? If not is there any work around to get it? Thanks. ...

How to access the context object as an array in PageMethods callback

I cannot seem to access the context object using a loop context is set: var context = [id1, id2, id3]; This callback function works: function OnChangeSucceeded(result, context, methodName) { document.getElementById(context[0]).disabled = result; document.getElementById(context[1]).disabled = result; document.getElementById(...

Why does this code only work when I use a break point?

See code below, for some reason it only works when I put a breakpoint on line 2 (*) is there some delay? Is it starting the next line before it finishes the 2nd one? dp.SSLCertStoreType = nsoftware.IBizPayPal.DirectpaymentSSLCertStoreTypes.sstPEMKey *dp.SSLCertStore = My.Computer.FileSystem.ReadAllText(Server.MapPath("\cert_key_pem.txt...

Moving ASP.net webservices to WCF

I am verifying my login authentication using ASP.net webservices. But the client requested to move to WCF. I need to know in what way WCF differs from ASP.net webservices. What are the advantages for me to use WCF than ASP.net webservices. ...

How to show all ASP.NET web application's loaded/referenced assemblies with version numbers?

I'd like to show a list of all used assemblies on a dedicated web page inside a ASP.NET web application for debugging and maintainance purposes (there are many instances of this web application on many different servers). The assemblies could be called from the bin folder or from the GAC. There are some written by myself, but also third-...

how to add 2 values of textbox in asp.net using javascript

I have 2 textbox in my asp.net page and also have one hiddenfield in my asp.net page , my hiddenfield will always have numeric value like 123.00 , and in my one textbox also I will always have numeric value like 20.00 now I want to add this hiddenfield value and textbox value and display it into second textbox thru javascript I wrote ...