April 24th, 2010 |
xumi |
Question:
i have a sorting function here and trying to click a button ‘btnDummyLS’ from inside.
protected void gvLS_Sorting(object sender, GridViewSortEventArgs e)
{
// click btnDummyLS
Solution:
you can call the function as
btnDummyLS(null, null);
Hope this will help you
April 23rd, 2010 |
xumi |
Question:
I am trying to find a way to parse a URL in the Global.asax file in ASP.NET into sections.
Given the example of: http://www.site.com/OptionalFirstURLSection/Pages/PageKey I need to find a way to capture the PageKey (maybe using a regular expression) in these scenarios:
The folder Pages exists in the URL string followed by some value –
PageKey from the [...]
April 23rd, 2010 |
xumi |
Question:
My sql compound statement not working in asp.net which used to work in asp.
I check if the specific user id exists and update the subscribe value if it exists else insert the new value if it doesn’t.
DECLARE @ID varchar(10)
DECLARE @Subscribe bit
IF (EXISTS (SELECT * FROM users WHERE ID = @ID))
begin
UPDATE users
SET Subscribe = @Subscribe
WHERE ID [...]
April 18th, 2010 |
xumi |
Question:
I recently moved a web site from Windows Server 2003 to Windows Server 2008. The web site calls a database that is on a different server (Server Standard 2008 64bit, SQL 2005 32bit). For some reason, I’m no longer able to connect with the database through the web page.
I am using a named instance for [...]
April 10th, 2010 |
xumi |
Question:
Built in ASP.NET, C#, using SQL and Linq…
I want to be able to let a user view images and image headings in a grid, and have up and down arrows where they can click to move an image record up or down. There is a “ShowOrder” field in the SQL database that indicates the sort [...]
Question:
how to send the mail from form in asp.net
Solution:
http://www.aspheute.com/english/20000918.asp
Here is a tutorial
Question:
I am trying to create a website using virtiual directories.
I have a folder where the application is located. It is located in C:\Web Project\Projects\Students
The Students folder contain my website and the default page that needs to be opened is Default.aspx
I successfully configured the Website on IIS and when i browse the same from IIS it [...]
Question:
I try to use the methods class from app_code, by using
Item.Methods.PurchaseItem
but failed
then i try to remove the namespace in methods.cs, also failed.
also notice that the DataSet , SqlDataAdapter in App_Code do not change colour.
Code Snippet:
Methods.cs (App_Code)
——————–
namespace Item
{
public class Methods
{
public Methods()
{
}
private static string connstring = “Data Source=123\\SQLEXPRESS;Initial Catalog=productdb;User Id=xx;Password=xxx;”;
#region PurchaseItem
public static string PurchaseItem(string itemname, int quantity, [...]
Question:
i have 2 projects that will send querystrings to 1 project that receive them, in order for them to run in the same enivironment (port 2967), i manually set the port to 2967 specifically. Once i started, it change the port 2967 to 3141 (other ports), then in the url, i manually change it back [...]
March 31st, 2010 |
xumi |
Question:
I’m generating dynamic controls on the click of calendar . I have 2 calendar controls from date ,to date.. The code to generate dynamic controls is also present on Page Load so that i can maintain viewstate during postbacks.
Calendar.selecteddate value does not reflect in page load event . how do i get the changed value [...]