i'm writing a stored proc and if a field i return is longer then 200 characters, i want to truncate, find the last space, remove any characters after that space, then add some full stopseg:
INSERT INTO @rec(articleid, abstract) SELECT a.id, CASE
I'm developing an ASP page and I noticed odd behaviour when I'm trying to step through server side call backs. Specifically some of the time, when I press F10 to execute the next statement the debugger acts like I pressed F5 to continue and takes off. Some of the time stepping works and some of the time it doens't. In addition, testing the same call back I can sometime step several times before it takes off and other times as soon as I click F10 it takes off. If I set explicit breakpoints it will always hit them but as I said, stepping often results in the debugger not stoping on the next statement.
I feel like I didn't have this earlier but I'm mystified as to why it is doing this
double space in Ajax Combobox.When I fill items with two o more following space I receive only 1 space in Combobox list and 1 space in edit (selected item).
ListItem litm = new ListItem("FF text");
When I try to use " " I receive spaces in combox list , but in edit they are looks like  .
I have a string with 100 characters and it is for me too long in one line. I want to make NewLine after each 25 characters. For example:
Instead: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."
I have developed a web application which contains aspdotnet treeview control. In this treeview control has binded with some database value.. that controls has one parent node and more than one child nodes for each parent node.
my problem is here, when the user clicks the parent node, I need to fire a javascript onclick function before the server side event(SelectedNodeChanged) called..
If I provide javascript to the parnet node when it is binding, then I could not fire the server side event(SelectedNodeChanged).
How to provide onclick javascript event for parent node in treeview control even the parent node has SelectedNodeChanged event.
I have Russian blog built with BlogEngine.NET 1.5.
I use Russian words in links encoded with URLEncode, so links are human-readable in most browsers - FF, Chrome, Opera (except for IE, but this is not the real problem with this browser). This idea is not mine, I borrowed it from Wikipedia - it uses encoded URLs on localized sites.
The real problem is that when I am trying to add comment in IE8 it fails (and only on production machine, development environment works fine).
Using Fiddler I found out that IE tries to send AJAX callback using WebForm_DoCallback to wrong address - it seems that it decodes URL, gets wrong characters and asks page with that wrong address from server and (of course) receives 404.
Here is how incorrect request from IE looks in Fiddler:
POST /ru/post/�������������-�����.aspx HTTP/1.1
Here is how FF makes same request and gets correct response:
POST /ru/post/%D0%92%D1%81%D1%82%D1%83%D0%BF%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D0%B5-%D1%81%D0%BB%D0%BE%D0%B2%D0%BE.aspx HTTP/1.1
I upgraded solution from default ASP.NET 2.0 for BE to ASP.NET 3.5 but this changed nothing. I made some minor changes in BE to allow properly encoded UTF links - by default it wipes out percent symbol from links.
what wrong is with IE behavior here and how to fix it? Why development environment under ASP.NET Development works different from production machine under IIS6? Why IE does not decode link in address bar (like other browsers) but does it when making request?
I know that it is basic questions, but I am stuck here.
I have TableOne have fields: USERNAME, PID, GID, TID, SID, NEWSID. I need to write query string to check if those value is already in the table. If not, insert those value to the table.
I can't let my button's OnClientClick fire if the requiredFieldvalidator fails. I created a webform that defines my problem. displayMessageClient() will always run whether
RequiredFieldValidator passes or fails.
I want to run displayMessageClient() only if the RequiredFieldValidator passes
I have a solution that consists of some web projects and websites (seperate projects in one solution) When I run the main project and debug I want to step into a function that resides in another project as a business layer function and then step into another function in DAL project. I set breakpoints in both projects (DAL and BLL) but am not able to step into those functions!!!
What is the problem with vwd express, It should support such vital thing.
I've been working on this very simple problem for days. I really don't know what's wrong. I have an insert statement that saves the Category Code, Call Number, and other details of a book to an SQL Server Database. The code is found below. The bold font is the one having the problem.
neither the code, nor the stored procedure has an error. The only problem I have is that the Category Code of "CHM" for instance, is reduced to a single character "C". The same thing happens with all other category codes that were inserted. Only the first character is saved. This is odd, because the Call Number, which has the same data type and string length, does not suffer the problem. It is saved with an intact 3 number of characters in the database. I left a breakpoint on the part that captures the content of the string variable CategoryCode, and it clearly contains a total of 3 characters. I also executed the stored procedure directly in the database, and it's also saving 3 characters. However, when ASP.NET connects to the database using that stored procedure, it always save a single character for category code.