asp.net

Is "region " is any keyword in asp.net?

Is "region" a keyword in asp.net? If yes, then what does it mean and where would one use it? ...

Getting exception like Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.?

hi, i am getting this error: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. and this is my code where i am getting error. if (Session["edit"].ToString() == "y" || Session["master"].ToString() == "y" || Session["del"].ToString() == "y") { bt...

ASP.NET - Response.Redirect Not Populating Url Referrer

I feel like i've done this a ton of times, but i can't for the life of me figure out what is going wrong. Default.aspx: protected void Page_Load(object sender, EventArgs e) { var r1 = Request.UrlReferrer; // null var r2 = Request.ServerVariables["HTTP_REFERRER"]; // null } SingleSignOn.aspx: protected void Page_Load(object sen...

Textarea and Textbox in asp.net.

We are able to provide a connection to a textbox using ADO.net to the database...but if we are willing to specify a particular region for our text then we are unable to use textarea in this case as far as sql connection through sql server is concerned.We are bound to use multiline textbox for this situation.Why textarea doesn't support c...

ASP.Net Crafting Postback filter Data result

Hi, There's a private site (Energy Company - so I can't give details) that allows me to enter job numbers and check the current status if I give them an appropriate code for the job. No user or pass required. I'd like to make an automatic lookup in the datagrid I display on my own internal site for employees, by posting the code to th...

I want to bind gridview of all D:\ drive file folders in asp.net?

I want to bind gridview of all D:\ drive file folders in asp.net? and download the file? how is it possible? ...

Using Dundas.Charting in Asp.Net

I am getting the following exception, while using Dundas.Charting in Asp.Net:- Stack trace: at Dundas.Charting.WebControl.ChartHttpHandler.b(HttpContext ) at Dundas.Charting.WebControl.ChartHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.H...

role of script manager in asp.net page

what script manager exactly do in the asp.net page. ...

session set in ashx and get that session on aspx

The following code is working on IE but not on Firefox. The following code is setting session on *.ashx file. public class Upload : IHttpHandler, IRequiresSessionState { public string PATH = System.Web.HttpContext.Current.Request.MapPath("..") + @"\UploadFiles\"; public string prefix = "ANNUAL_"; public void ProcessRequest...

DotNetNuke - jQuery - Why is this jQuery Watermark plugin not working?

I'm using DNN 5.4 with the default google api jquery reference: I have confirmed that jquery.min.js is loading. I don't know if there's other jQuery (other than the plugin) that needs to be loaded. I'm utilizing the Google Code jQuery Textbox Watermark Plugin (Link) Web Dev Toolbar & Firebug suggest that both jQuery and the Watermar...

Maintain position of web part in asp.net

I have created a web part in asp.net application and allowed user to change it position. Now, I want that once user comes back he/she will see the same setting of web part that he/she had left earlier. What is the best approach to maintain the web part position for that particular user. ...

Is it necessary to know ASP.NET before learning ASP.NET MVC 2 ?

Hi, I've begun reading an excellent book on ASP.NET MVC 2 by Manning Press. In the early part of the book, the authors imply understanding ASP.NET 3.5/4.0 is good for building ASP.NET MVC 2 concepts on top. I am an intermediate developer - should I cover ASP.NET first or can I get by ? Thanks, Scott ...

Calender as drop down list

Can anybody tell me the meaning of ew:CalendarPopup ID="ucCalendar" runat="server" Width="80px" ImageUrl="~/images/calendar.gif" ControlDisplay="LabelImage" ShowGoToToday="True" CalendarLocation="Bottom" UseExternalResource="True" ExternalResourcePath="~/Include/JS/...

Copying the whole layout with controls from one aspx page to another page - Moving Controls dynamically - ASP.Net

Hello all Here is my issue. I've a page main.aspx. This page has a button 'Settings'. When it is clicked, I load another aspx page settigns.aspx in a popup. Now in the settings.aspx i allow the users to add controls dynamically. For example the user can create 5 textboxes. When he saves it there, I need to get that controls to main.asp...

[System.Web.Services.WebMethod] return object value using json or another convient class

The javascript does not get value from the web method. It says undefined for the value of s located in CallMe().. My aim is get an object from the web method.... to use the data in js.. What am I missing_? using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; us...

Displaying two web pages on one page.

i am not saying its difficult but i would like to know what way is used professionally. what i do is declare iframes from html code and assign a scr to it, but the problems are switching the html code each time for declaration the size of frame does not change/ adjust with the page in it, scroll bars do appear but thats not it...

Is there a difference between client browser's submit mechanism and the ASP.NET postback mechanism?

While going through MSDN I found that in button properties useSubmitBeheviour there is written that if useSubmitBeheviour is true then it cause the Button control to use the browser's submit mechanism and false then the ASP.NET page framework adds client-side script to the page to post the form to the server. What its mean? please expla...

Hide user control present in master page

I have an user control in master page with id 'ucTopUser' and a button 'btnSub'.I need to hide the both control from my current aspx page.How can I do this? ...

how to show password in asterik format when we generate random password

i am generate random password and show it in a textbox. when i am set textbox property textmode to password then it doesn't show in textbox but when i set it singleline then password shows in textbox. I am using following code -- textbox1.attributes.add("value",passwordvalue); for show i am using -- textbox1.text = textbox1.attribut...

Is Microsoft Sync Framework 2.1 support this scenario?

Is Microsoft Sync Framework 2.1 support this scenario? I use ASP.NET 3.5 and Sql Server 2008. My scenario is that I want to sync data between two tables of Sql Server 2008 databases in two remote distributed places. 1) I totally own the two database server with remote desktop rights. 2) The database A has a table CustomerA with the c...