I am grabbing a huge html text from a database and I have to strip off the unwanted junk before I can use the text:
$newsText = $row->news_text;
$newsText = str_replace("\'", "'", $newsText);
$newsText = str_replace("\"", '"', $newsText);
$newsText = str_replace(" ", " ", $newsText);
I...
Consider the following data; I need a query that will return ID = 1 only if anotherGroupID = {1, 2, 3}.
id | anotherGroupID
----------------------
1 | 1
----------------------
1 | 2
----------------------
1 | 3
----------------------
2 | 1
----------------------
2 | 5...
I've used Excel Sheets since the ice age...
But for some reason, my setting is changed, so when I click on tab, instead of moving one cell to the right, I get moved from cellA to cellT!!!
This is super annoying!!
Also, when I click on my up and down keyboard keys, the entire excel sheet goes...
I have 3 types of Accounts and for each of them different count of radio buttons should be displayed:
Silver = 1 radio button should be displayed
Gold = 2 radio buttons should be displayed
Platinum = 3 radio buttons should be displayed
I display the radio buttons and assign an onclick event...
I need to display at most 3 radio buttons depending on the logged-in user (silver members will get 1 radio button, while for a gold member there will be 2 radio buttons displayed and for plat members, there will be 3 radio buttons);
Radio buttons are displayed correctly; My problem is with the...
I have a variable in my code form: blah.ascx.vb
I want to be able to access this variable in my html code: blah.ascx
how can this be done?
eg:
in ascx.vb
dim blah as integer = 102
in ascx:
<asp:label ... text = #blah>
---------------
www.enyotic.com/corporate/
I am binding my datagrid to a datatable.
All, but one of the columns are using the source datatable.
However, in one column, I'm putting a combo box that should contain numbers from 1 to n...
I have an arraylist of numbers... How can I bind this DropDownList this arraylist of numbers? My data...
in this following line of code:
$connection = mysql_connect($connect_host,$connect_user,$connect_password) or Die("Unable to connect to database.");
$selection = mysql_select_db($connect_database) or Die("Unable to select database");
is there a way to see why I'm getting "Unable to select...
Well, I hope this is not like me asking if C# is better than VB.NET ('cause I know this is a subject that boils up a lot of programmers!!)
We have to maintain a website w/ a flash header, written in PHP-MySQL and it uses CSS style sheets.
The problem is my php programmer, is really complaining...
For some reason I cannot get the Command Event Handler to handle the click on my linkbuttons that are placed inside a datagrid of mine;
I get an "Internet Explorer Script Error" which says on line1 char1 of my Container Form an object is expected. Please read on for a better description of what...
I have a JPEG image of how a web-page should look like... it contains all sorts of tab pages, headers and footers;
I am wondering if there's an easy way to turn this JPEG into html such that clicking on tabpage-headers for example are linked to their corresponding pages and so on...
any idea...
this must be super easy for one of u to answer:
I have a list box.
I add items to this listbox dynamically.
I capture the "SelectedIndex_Changed" event of this listbox.
The event is raised and handled once the user clicks on the listbox to select one of the items.
I've made sure AutoPostBack...
I have an object w/ the following attributes:
NickName
Email
AccountBalance
I want to add instances of this object to a ListBox control such that, NickName property of the object is displayed; However, when the user selects the object from the ListBox, I want to be able to access all of...
I keep on getting an exception error saying how I haven't provided a parameter for a stored procedure(even though the parameter is provided and has a value!!)
any ideas? How would you call your stored procedures using ODBC.NET?
---------------
www.enyotic.com
Here's my super simple Stored procedure in SQL-Server:
CREATE PROCEDURE sp_AccountBalance (@Email varchar(255), @Balance money OUT) AS
SELECT @Balance = tblBands.accountBalance
FROM tblBands INNER JOIN tblUsers ON tblBands.ID = tblUsers.bandID
Where tblUsers.Email = @Email
I call this...
I am trying to add a bunch of objects to my Listbox using an arraylist using the follwoing 2 funx:
Private Sub Page_Load(ByVal s As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'If (Not Me.IsPostBack) Then
Me._list = New ArrayList...
In VB (or C#) .net, it's very easy to add an object to a listbox:
dim obj as someObject
listbox1.items.add(obj)
I tried the same thing in ASP .NET (No luck!)
So, now I've "bounded" my ListBox to an arraylist of Objects. The way it works is as follows: User interacts with the system to create...
Here's a beginner question:
why is it that my
Private sub rdi_checkedChanged(....) handles rdi.CheckedChanged
'some code in here
end sub
doesn't handle the checkedChanged event of my radio button??
I put a break point by this even handler, and the code doesn't break as I change the check...
This is a weird one:
I have a main "Toolbox" written in vb .NET; It is an mdi parent to millions of other tools that is developed by our developers. We have included these tools as .dlls (references) in this "Toolbox". We have build scrips that builds each of these tools and puts them in a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.