nccsbim071 25 Junior Poster

Hi ManicCW

I already trid that. I created a folder named home and inside this folder i created Default.aspx and worte all the contents of Home.aspx in Default.aspx.

I tried to access the folder as follows:

Http://localhost:4381/ApplicationName/Home

but i get error not page.

nccsbim071 25 Junior Poster

Hi
I have been developing a website. I need to hide the page extension of the pages while user is browsing my site.

for example:
Home.aspx should be displayed as Home only.

How can i do this.

Please help
Thanks

nccsbim071 25 Junior Poster

ya i got it.

That was pertty basic. I missed to notice this fact and end up wasting hours of time until one of my coworker noticed this and we solved the problem.

Thanks for the time you took to look at my thread.

nccsbim071 25 Junior Poster

Thanks, Ramesh
That's what i wanted.

nccsbim071 25 Junior Poster

Well, Guys and Girls
The problem was not with the code. The problem was something else.

I tried to access the value of the Card Struct directly in the class definition: like this

public class Class1
    {
        Card card = new Card(CardSuit.Clubs,CardValue.Ace);       
        card.suit = CardSuit.Clubs;//Wrong method
      

    }

but it was supposed to be accessed in side method or property like this:

public class Class1
    {
        Card card = new Card(CardSuit.Clubs,CardValue.Ace);
        

        public void SetHands()
        {          
           card.suit = CardSuit.Clubs;  
        }

    }

Anyways,
That was crazy of me
I solved the problem.
Thanks to you all

nccsbim071 25 Junior Poster

I have a structure named "Card" in Codes.cs file which is located in Codes folder of project. The source code of this structure is as follows:

struct Card
{

    //Suit that this card belongs to
    private CardSuit suit;

    public CardSuit Suit
    {
        get { return suit; }
        set { suit = value; }
    }


    ///The value of this card
    private CardValue value;

    public CardValue Value
    {
        get { return value; }
        set { this.value = value; }
    }

    public Card(CardSuit s, CardValue v)
    {
        this.suit = s;
        this.value = v;
    }

}
enum CardSuit : int { Clubs, Spades, Hearts, Diamonds };
enum CardValue : int { Ace, King, Queen, Jack, Ten, Nine, Eight, Seven, Six, Five, Four, Three, Two };

I have anathor class file named "Class1.cs" which is outside the Codes folder. The source of the class is as follows:

public class Class1
    {
        Card card = new Card();
        
    }

In this class file i created an instance of "Card" structure successfully as shown in above code. But i cannot access the properties of structure like this(as shown bleow):

card.Suit = CardSuit.Clubs;

Please Help,
Thanks

nccsbim071 25 Junior Poster

Thanks,
That solved my problem

nccsbim071 25 Junior Poster

I want to develop silverlight web application. But i could not find installed templates for silverlight projects. I have viusal web developer express edition 2008 and visual studio 2008 team system installed on my computer.

what shall i do . Which IDE should i use.

Thanks,

nccsbim071 25 Junior Poster

Hi,

I want to develop an online poker game in asp.net and C#. Can anybody tell whether do we have an existing library which i can download freely or by so that i can use to develop poker games.

Or
please suggest if you have any better idea.
It's urgent
Thanks

nccsbim071 25 Junior Poster

Use javascript to get input from the user for example:

response = window.prompt("Select Car","Enter 1 if you want Air Conditioned car and Enter 2 if you want simple one:");

document.write('response');

or you can create windows forms and get the values of the textbox using the following code

document.getElementById('txtCarType');

where "txtCarType" is the id of the textbox in which user will enter hir/her choice.

nccsbim071 25 Junior Poster

I have created a windows forms in which on certain button click i show FolderBrowserDialog. After the user selects a folder and click on Ok button of FolderBrowserDialog i have done some work in the Ok click part of FolderBrowserDialog.
For example

if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
   generateFiles();
}

The Problem is: folderBrowserDialog doesent disappear completely untill generateFiles(); method has completely done it's job.

This behaviour has made my form look bad, because while generateFiles() method is working i have used progressbar to indicate the progress of generateFiles(); method.

How can i make FolderBrowserDialog disappear completely so that my progressbar looks good.

Please help.
Thanks

nccsbim071 25 Junior Poster

I am so sorry,

I already read that.

But i was not able to figure it out.
Thanks, anyway

nccsbim071 25 Junior Poster

Thanks,

I got a whole lot of information from you.
I really appreciate the time and effort you invested to reply.

Thanks Again

nccsbim071 25 Junior Poster

Yes, i did that and i got the kind of accessor i wanted, but abstract keyword appeared on property.

I want to do the same but without the abstract keyword appear on the property name.

If this can only be done in .net framework 3.5 that's ok. I will use .net framework 3.5.

But how to do that in .net framework 3.5.

What attributes should i set for

CodeMemberProperty

object to get the auto-implemented accessor.

nccsbim071 25 Junior Poster

I have been using .net framework 2.0

nccsbim071 25 Junior Poster

I have beed using CodeDom to generate codes. I was generating property using CodeMemberProperty. Can anybody tell me how to generate property like this:

get;

instead of

get
{
}
nccsbim071 25 Junior Poster

Thanks, I will do that.

nccsbim071 25 Junior Poster

I have beed using CodeDom to generate codes. I was generating property using CodeMemberProperty. Can anybody tell me how to generate property like this:

get;

instead of

get
{
}
nccsbim071 25 Junior Poster

Hi,
is there any difference between accessor written as
get
{
}
get;

nccsbim071 25 Junior Poster

Hi,
Recently i have been creating a Generator. That extracts all the names of the tables from the database tables and generates the class file for each of the tables in the database. I have successfully extracted the names of database tables and their corresponding column names with thier data type and length of the datatype. Now i want to place columns as variable names in class file. That can be done but what about the datatype of the variable in class file.

I found an article on MSDN website that matches SQL Server Data Types and Their .NET Framework Equivalents at the following location http://msdn.microsoft.com/en-us/library/ms131092%28SQL.90%29.aspx.

I want to know, is it ok to replace the SQL Server Data Type with their .NET Framework Equivalents comfortably.

Is there any better method to that.


please help


Thanks,
randhir

nccsbim071 25 Junior Poster

This doesen't mean i do not have any idea about server side controls i just need the hint of doing it.

Thanks
Please help

nccsbim071 25 Junior Poster

thanks that was really a great help.

nccsbim071 25 Junior Poster

I don't have any codes. I don't have any idea how to display the data in above given format. I haven't done anything for above problem. I just need idea of how it can be done using different ASP.NET server controls and programming using c#.

nccsbim071 25 Junior Poster

I have business requirement and i need to diplay records of data in certain format. My problem is as below:

I have database with two tables names "Restaurant" and "Restaurant_Associates". "Restaruant" table stores list all the restaruants available in town wheres "Restaurant_Associates" sotres the list of associates for particular restaruant in "Restaurant" table. One restaurant can have so many associates.

Now my problem is to display the Restaurant and their Associates in the form as given below:

Restaurant1
Restaurant1 Associate1
Restaruant Associate2
Restaruant Associate3
Restaruant2
Restaruant2 Associate1
Restaurant2 Associate2
Restaurant 2 Associate2

in the above format with Edit and Delete link by the side of associates.

How can i do this using different server side controls in ASP.NET or by any other method available in .NET

Thanks
Randhir:icon_confused:

nccsbim071 25 Junior Poster

Thanks Ramesh's That was a great help.

nccsbim071 25 Junior Poster
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
nccsbim071 25 Junior Poster

Thanks Ramesh S, This solved the problem. But i have few more questions in mind. While adding assemblies to the web.config file we have to sepcify the name of the assembly,version, culture and public key token. I found the public key token for the assembly as you have suggested. Is it possible to find the version and culture of the assembly.

Thanks

nccsbim071 25 Junior Poster

How can i get the public key token for the assembly that i want to add in root web.config file.

Please Help