Discount Web Design Blog

Just another Web Design Blog

Entries for the ‘.NET’ Category

ModalPopup Issues

Hi guys, I followed the advised posted in this thread http://www.sitepoint.com/forums/showthread.php?t=670401, but I noticed that once I clicked on the Nth page of the gridview control, the position goes at the bottom of the web page. Another thing is, I cannot get the value being selected in the gridview; say for example, I’d like [...]

HELP me fix the codes please?

Hi,
Can anyone please help me on this?
The server is supposed to see which computers are online and which are not.
if the workstation are not online the computer should not be seen on the server’s list but if it open again the computer name should appear on the list.
This is the codes I used
Private Sub btnShutdown_Click(ByVal [...]

Shell Execution in Silent mode:

Hi Guys,
Need help here anyone knows a script for Visual fox pro about shell execution in silent mode. I don’t want to display the output of the running application in windows screen. I just trying to run the ".exe" file w/o viewing on screen. Thanks in advance. [...]

While loop repeating rows

Hey,
I have the following code:

PHP Code:

        ///////////////////// V A C A N C I E S //////////////////////////////

        string connVac = “…”;        SqlConnection dbConnVac = new SqlConnection(connVac);

        DataSet dsInfo = new DataSet();

        string sqlVac1 = “Select distinct job_name from tbl_vacancies Where (availability = ‘Live’)”;        string sqlVac2 = “select tbl_vacancies.job_id, tbl_vacancies.job_name, tbl_vacancies.location, tbl_vacancies.location as Region, ” +        ”max(tbl_job_titles.body) as theDetails from tbl_vacancies, tbl_job_titles where [...]

Enabling/Disabling File Sharing

Hi to all,
I need help anyone who knows the script in visual basic on how to disable/enable file sharing as well as the script for the enabling/disabling Printer sharing. I really need your help guys. Any suggestion regarding this matter will be such a great help. thanks in advance.

Auction software?

Can anyone recommend a ASP.net C# Auction package. We are looking at having our own internal auction section on our Intranet at my work and to save time we would like to buy or ideally find an free opensource project that we can modify for our own use.
We dont need anything special just the [...]

OOP General Question with C# and ASP.NET

Hey all,
I have a general question about a C# class that’s backing up my .NET app.
I’m sure it’s a common scenario — I’m creating validators for various types of objects so I can test to ensure all business rule requirements are met. I wanted to do it this was so I could use injection of [...]

Login code problem

Hey,
I have the following code for a login script:

PHP Code:

protected void Button1_Click(object sender, EventArgs e)
    {
        SqlConnection conn;
        SqlCommand cmd;
        SqlDataReader myReader;

        conn = new SqlConnection(”…”);

        string cmdString = “SELECT [user_id], [username], [password], [type] FROM tbl_admin WHERE” +
            ”(([username] = @username AND [password] = @password))”;

        cmd = new SqlCommand(cmdString, conn);

        cmd.Parameters.Add(”@username”, SqlDbType.Char).Value = txt_username.Text;
        cmd.Parameters.Add(”@password”, SqlDbType.Char).Value = txt_password.Text;

        conn.Open();
        myReader = cmd.ExecuteReader();

        if (myReader.HasRows)
        {
            while (myReader.Read())
            {
                if (myReader[”type”] == [...]

Dataset Binding not working.

I’d been working for 2 hours and yet I cannot figure out what is wrong with my code, I know that it is working because, when I invoke a method in my webservice it returns a result. Here is my script in my webservice;

Code:
[WebMethod]
public DataSet ViewList()
{
[...]

Problem downloading Visual Web developer 2008

Hi, just started to work through the book Build your own ASP.NET 3.5 Web Site..
On page 6 it asks you to go to www.microsoft.com/express/vwd to download Visual Web Developer 2008 Express.
However it is now 2010 and the address is redirected to http://www.microsoft.com/express/Web/
So thought would download 2010 version as thats probably all you can.
But when [...]