A user complains they can't paste into one particular text box on a form and that this is a change in behavior that occurred three months ago. I can't reproduce the error. I've tried long text, short text, plain text, formatted text, everything works. I did fix some poorly formatted HTML, but it didn't change their problem.
The user and...
Hi everyone
I am trying to make an RSS Feed with asp.net,sql and xml.
I am getting an error
Compiler Error Message: CS0103: The
name 'MyConnString' does not exist in
the current context" on line 22
"SqlConnection objConnection = new
SqlConnection("MyConnString");
My web config contains
<connectionStrings>
<add name="...
Hi,
I don't know very much about c#. I am updating a page built by someone else and I want to add a script to a button web control. The form is using c#'s validation and when I look at the returned markup from opening the page, there already is an onclick event handler for the postback submission and validation. So how do I add my own...
I have a control in which we show some links to different sites based on some business rules. Currently all business logic to build link list is in control.
I plan to move out the busincess logic from the control.
what will be a good design for this?
can I use any design pattern?
...
hi,
i am really confused here, as i read many places, Update panel makes a full post back, and i have somehow understood that web serivces are much much better for performance, so if i am developing my site should i user web services or normal functions like the following
protected void Page_Load(object sender, EventArgs e)
{
GetD...
If a user clicks on a button that does a post (lets say it has UserName and Password in the post) and those credentials get authenticated successfully. If I did a redirect to a completely different application (so I can't carry session, etc) and I use a GET with the Username and Password in the querystring (I could even use basic encryp...
I have several UpdatePanels on a page and they have been set with a mode of Conditional. I see a flicker in the controls outside of the UpdatePanels when there is an event that occurs within the UpdatePanel (Say a button click).
The page doesn't post back but the user experiences a "Flicker".
Any idea what might be going on here?
...
Finally checked out L2E framework and ran into problems almost instantly.
Yeah, i know... i should read some books before.
Situation:
entity with props -> id and name.
entity is mapped to table, which has id and name columns.
sproc, which returns ONLY id column.
Problem:
ObjectResult<MyProp> result = _container.MyStoredProced...
I have tried multiple ways of grabbing the username of a current logged on user in vb.net/asp.net. I am running it on IIS 6 and understand that it will return NETWORK SERVICE for the username. I need to grab the username of the actual windows box log on.
I have tried the following code: Returns NT AUTHORITY\NETWORK SERVICE
Dim User =...
I want to disable a LinkButton clink on the client site.
objLinkButton.disabled = true;
// or
objLinkButton.disabled = -1;
This disables the link but I am still able to click on the link and do PostBack.
Is there any way I can disable the link.
Code:
<asp:linkbutton id="xyz" runat="server"
onClick="javascript:LinkD...
What is the quickest way to Determine if a ASP.NET project compiled with debug symbols?
...
I have made a PowerShell script, which is running perfectly fine and generating a text file when I run it standalone. I wanted to automate that whenever my ASP.NET page loads I invoke a process from C# that calls my PowerShell script and executes that leading to a text file being generated.
The problem is the script is being called, but...
I have a fairly standard ASP.NET GridView that displays 2 columns that have a parent child relationship. Although the relationship exists in the database between column A and column B, the GridView does not implement it.
I would like to do the following:
When the user has elected to edit the row, 2 dropdown menus become visible. The D...
i really love the idea of it as i can create a folder for my user control, and make sub folder images, css, and put local resource file, so the whole thing is contained in one folder, and that makes it really efficient for me (management wise).
but the bugger is you cant get intellisence like global resource, so is it possible in any way...
hi guys,
I have textboxes which is placed inside accordian (ajax control).In pageload event i have written the code to load values in textboxes. But onload event one error is coming as object not set to instance of a object. Values are not coming in textboxes.
Then i tried to initialize controls in textboxes .Then the error cleared...
I have a GridView that gets populated with data from a SQL database, very easy.
Now i want to replace values in my one column like so......
If c04_oprogrs value is a 1 then display Take in the GridView.
If c04_oprogrs value is 2 then display Available in the GridView.
What code changes must i make to change to my code to display the n...
I am working on a web application that consumes a web service. Web service is written in .NET.
I want to know whether using a reference parameter for a Web method is a good practice or not?
...
I've had a problem with my styles not being applied after AJAX calls. My styles were not in the < HEAD> section of the page, and they were only recognized by IE on initial Page_Load.
If you know of any other ways to fix this problem, post them here.
This is more of a reference, hope this helps some people.
...
I'm looking at an ASP.NET application which makes heavy use of meta:resourcekey which seem to be connected to the resx files.
This is an area that seeems to have completely passed me by. Does anyone have any guidance on the benefits and purpose of this approach and best practices?
...
I am getting this error message in the web service when i am updating the reference
Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface.
Why is this happening?
...