nirveshverma -1 Light Poster

hi to all


Actually i am working on my major project and i want to add some follower or following or subscriber kind of feature on my website but i don't know where to start

either a xml file could be used for this purpose and later save it to database for each user or some tables in DB.


Please someone make me help

Thanks
Profoundly Regards
Nirvesh Verma

nirveshverma -1 Light Poster

What do you want to display on the homepage? The users? If so, use asp:repeater to create a box for each one.

To store multiple images you can do it both ways, as you said it. But i prefer to store it on disk and store the file path in the database.

If you make a folder structure like this: ~/art/[user_name]/, you don't have to store the images names on the database. But reading the DB is much faster than reading the files on the disk.

So, i would create the folder structure, as above, and a table to store the paths.

Hope it helps.

yep, thanks for reply but actually i am looking for some kind of tutorial which enable me how to do these kind of stuff.

Thanks

nirveshverma -1 Light Poster

Hi to All,

Actually i am working on social network cum portfolio site, in which one can able to display his/her artwork to the all users.

For e.g : Deviantart.com, Shadowness.com, etc.

Now i have login system for users as well as profile page for each individual users.

But now i don't have any idea that how to display them on home page.

1. Either By using Repeater Control in Asp.net or Grid view ?

2. How i store multiple images?
1. either by using Disk file system or In database column.


So please help me and suggest as much as possible relevant tutorials, helpful links,etc.


Thanks In Advance

nirveshverma -1 Light Poster

Hi

Actually i want to ask about trigonometric function in matlab. i.e I'll have to make a application in which trigonometric function are used, for my minor project purpose. Can anyone suggest some name of examples ? in which trigonometric function is used , i mean that application based on trigono function in matlab or use of trigonometric function of matlab in application.


Thanks in advance
NIRVESH

nirveshverma -1 Light Poster

HI, Actually i am a student of CSE pursuing BE, currently in 3rd year. I have choose Different trigonometric function in MATLAB as my minor project, but problem is that i don't have any kind of knowledge about MATLAB,so please someone help me in suggesting that what kind of books i would have to prefer,tutorials,online resources, From where i should have to start ,etc. Please help me.

Thanks in advance

NIRVESH VERMA

nirveshverma -1 Light Poster

Hi,

Actually i want to start a major project for my GRADUATION ,so i want to write a lot of code to make a new platform or distro using existing linux kernel.
Can anyone help me ? I mean any one who able to tell me from where i start for my project.
THANKS

nirveshverma -1 Light Poster

no no..
actually let me explain in some what easily manner

1.first user come to my website
2.Register herself/himself
3.after the login he/she redirect to a common template in which they can submit their photos or upload their pics,edit the profile ,etc.
4.but when he/she login into the website the he/she only redirect to his/her profile page from database and not able to edit into any other profile.
5.after this he/she can use that profile link as a id for showing his/her work to the world.


I hope now you people can understand my problem

nirveshverma -1 Light Poster

hi


actually nowadays i design my website to make as a marketplace,but i don't have any idea about how the space is alloted to user or make a new table in database for the user .
i mean when user register then how they store his information,upload pics etc. into their account (for e.g:- facebook,crowdspring,99designs,envato)and display it to a common dashboard so that a specific user can see the entries for their product.

Please guide me,
i had completed the login page & register page in asp.net(c#)

thanks

nirveshverma -1 Light Poster

HI to all i want to add a feature or i want to upgrade my website so that user will be able to save his file or folder,photos etc like social networking site,after the signup.

I work in asp.net with MSSQL2005 please give me some hint so that i can improve further in this direction.


thanks

nirveshverma -1 Light Poster

hi to all


I design my login system with registration form but now problem is that my registration form in main directory rather than that private directoy which i authenticated means if somebody want specific content then it must to register or login.

now when x user register them and when it enter to database the password store in clear text and i want to encrypt using sha1 or MD5 technique.

I had search so much link on the web but i don't get correct option for me .

so please can anybody give me a example illustration for encrypting password and store to database.
Please use very simple script.

thanks

nirveshverma -1 Light Poster

Hi,

You can do the following modification in the query as,

string cmdstring = "SELECT [password] FROM [users] WHERE" + " [username]=@username and [password]=@password";

I have tried with this change and it works.

Thank you.

thanks it is solved now,bro you are amazing

nirveshverma -1 Light Poster

hi to all this is my script for login means somebody wants to acess the private folder first it say to login then it redirect o requested page

but ther is error when i submit the button please help me i take more than 26 hours but i am unable to debug this


following is the error

An expression of non-boolean type specified in a context where a condition is expected, near 'AND'.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login_login" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Data" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <br />
    username<br />
   
    <asp:TextBox ID="usernametextbox" runat="server"></asp:TextBox>
 
     
    <br /><p>
    password<br />
    <asp:TextBox ID="passwordtextbox" runat="server" TextMode="Password">Password</asp:TextBox>
    
     
    </p>
        <p>
            <asp:Label ID="Label" runat="server" ></asp:Label>
     
    </p>
    <asp:Button ID="submit" Text="submit" runat="server" onclick="submit_Click" />
    </div>
    </form>
</body>
</html>
using System; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
using System.Data.SqlClient;

public partial class login_login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void submit_Click(object sender, EventArgs e)
    {

       
        
        SqlDataReader reader;
        SqlConnection conn = new SqlConnection(
"Server=localhost\\Sql2005;Database=ram;" +
"Integrated Security=True");

        string cmdstring = "SELECT [password] FROM [users] WHERE" + "(([username=@username]) + ([password=@password]))";
        SqlCommand cmd;
        cmd = new SqlCommand(cmdstring, conn);
        cmd.Parameters.Add("@username",SqlDbType.VarChar, 50);
        cmd.Parameters["@username"].Value = usernametextbox.Text;
        cmd.Parameters.Add("@password", SqlDbType.VarChar, 50);
        cmd.Parameters["@password"].Value = passwordtextbox.Text;

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

        if (reader.Read())
        {
            FormsAuthentication.RedirectFromLoginPage(usernametextbox.Text, false);
        }
        else
        {
            Response.Write("invalid credentials"); …
nirveshverma -1 Light Poster

thanks for your such a fast reply but my problem is that what is basic source from which i arrange games and put on my server so a user will be able to download or play iit is not possible that everyday i will or somebody will make game and i post on my website ,
i am not saying that it is not possible or it is hypothetical i am saying that where i arrange some game for starting a website.
whether i purchase or link a game download option from any other website.


1. For simple and common games give free download for the users.
2. Fix some dollar to download your games and don't forget to give a free trial to complete at least level 1.
3. Create unique game and publish in facebook, nowadays more users are there to play games, and you have the control over all the users of facebook. (That make them adict to the game to purchase for levels)
4. Post your add by sponsoring some of the sites.
5. Initiate it and sure you will become the master of games website.

Hope it helps!

nirveshverma -1 Light Poster

hi to all,


I want to start a game website such as gamespot(i know it looks like very childish).
so i complete FRONT-END designing of my website as well as some BACK-END also.
but problem is that i don't have any idea that what are the sources for earning from this,
From where i arrange games for my website, so user which will come to my website and download games from there.

please help me because i want to start my website by the end of JULY2010.
hurry up REPLY SOON

nirveshverma -1 Light Poster

You may have discovered this already, but i believe namespaces are case sensative. The namespace you are looking for may be System.Data.SqlClient I hope this helps.

thanks


and sorry for taht common mistake now its working

nirveshverma -1 Light Poster

hi
I am facing problem in connection of sql server in asp.net pages
Actually there is error when i importing namespace System.Data.Sqlclient

Error is:

The type or namespace name 'sqlclient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)


now i don't idea that what s this how to remove this error
Currently i am using VS2010 ,MSSQL server 2005 Express edition

nirveshverma -1 Light Poster

hi


to all i have a lot of interest in c# but i don't how to and where to start since my mathematical portion is very weak but i want to overcome this and i want to learn c# perfectly

please tell me best resource please don't mention about MSDN i am talking about books, video tutorials ,etc.


thanks

nirveshverma -1 Light Poster

ummmm i think i can solve your problem following is the code
try it

<%-- The Web Form with the EncType property set to Multipart/Form-Data --%>
<form Method="Post" EncType="Multipart/Form-Data" RunAt="Server">

   <%-- The File upload Html control --%>
   Choose Your File  To Upload <BR>
   <Input ID="MyFile" Type="File" RunAt="Server">
   <BR>

   <%-- A button - when clicked the form is submitted and the
            Upload_Click event handler is fired... --%>
   <Input Type="Submit" Value="Upload" 
             OnServerClick="Upload_Click" RunAt="Server">

   ...
</form>

The different attributes of HtmlInputFile control could be as follows:

<Input
   Type="File"
   RunAt="Server"
   ID="Specify an ID"
   Accept="Specify MIMEencodings"
   MaxLength="Specify maximum length of file path"
   Size="Specify width of textbox of the control" >

 
   
   Sub Upload_Click(Sender as Object, e as EventArgs)

  ' Display properties of the uploaded file
  FileName.InnerHtml = MyFile.PostedFile.FileName
  FileContent.InnerHtml = MyFile.PostedFile.ContentType 
  FileSize.InnerHtml = MyFile.PostedFile.ContentLength
  UploadDetails.visible = True

  'Grab the file name from its fully qualified path at client 
  Dim strFileName as string = MyFile.PostedFile.FileName
 
  ' only the attched file name not its path
  Dim c as string = System.IO.Path.GetFileName(strFileName)

  'Save uploaded file to server at C:\ServerFolder\
  Try 
    MyFile.PostedFile.SaveAs("C:\ServerFolder\" + c)
    Span1.InnerHtml = "Your File Uploaded Sucessfully at server as: " & _
                      "C:\ServerFolder\" & c
  Catch Exp as exception
    Span1.InnerHtml = "An Error occured. Please check the attached  file"
    UploadDetails.visible = false
    Span2.visible=false
  End Try
End Sub
nirveshverma -1 Light Poster

hi to all of guy's
i recently have a idea in my mind to start a new video sharing website like youtube but i don't have any idea that where to start.
meanwhile i hava solid knowledge about CSS,HTML.
And working on ASP.net .
so please give your valuable idea please please please please,
it's heartly request to you
I wan't full structure from beggining to a level.
So start from now to submit your ideas

nirveshverma -1 Light Poster

hi
i think it can help you:Data Structure using c & c++
M. Tenenbaum.

and i have list of data structure books as follow:

Data Structure And Algorithms In C++ 2nd ed - Adam Drozdek
Data Structure And Algorithms In Java - Mitchel Waite
Data Structure For Game Programers - Ron Penton
Data Structures & Algorithms in Java - Robert Lafore
Data Structures and Algorithm Analysis in C - Mark Allen Weiss
Data Structures and Algorithms - Alfred V. Aho
Data Structures and Algorithms 3 Multi-dimensional Searching and Computational Geometry - Kurt Mehlhorn
Data Structures and Algorithms in Java - Peter Drake
Data Structures and Algorithms in Java - Robert Lafore
DATA STRUCTURES AND ALGORITHMS USING VISUAL BASIC.NET - MICHAEL MCMILLAN
Data Structures and Algorithms with Object-Oriented Design Patterns in CPlusPlus - Bruno R. Preiss
Data Structures and Algorithms with Object-Oriented Design Patterns in CSharp - Bruno R. Preiss
Data Structures and Algorithms with Object-Oriented Design Patterns in Java - Bruno R. Preiss
Data Structures and Algorithms with Object-Oriented Design Patterns in Python - Bruno R. Preiss
Data Structures And Problem Solving Using C++ 2nd ed - Mark Weiss
Data Structures and Program Design in C++ - Robert L. Kruse
Data Structures Demystified - Jim Keogh
DATA STRUCTURES IN JAVA A Laboratory Course - Sandra Andersen
Data Structures, Algorithms and Program Style Using C - James F. …

Rashakil Fol commented: Spamming a million names of books does not help at all. -1
nirveshverma -1 Light Poster

It's very sad to hearing such problem but why why you go with boomerang ,you have option such as acronois and norton ghost.

nirveshverma -1 Light Poster

If you are tired of the plain-Jane look that Google so proudly sports and would prefer something with the pizzazz of Bing, here’s your chance to make it happen. A new contest has just kicked off that asks you to redesign the world’s most popular search engine, with the winner getting to walk away with a brand new MacBook Air.

The contest is being organised by search collator/aggregator WebMynd, which specialises in customizing your Google search options to include better results. Ramping up their ambitions, the company has now launched the RedesignGoogle contest with a post on their official blog:

“ RedesignGoogle lets you completely customize the look of Google Search by installing user-submitted designs from an online gallery. A stripped-down version of the WebMynd add-on applies your installed stylesheet whenever you’re on a Google search results page. (You can enable WebMynd’s other features if you like, but they’re turned off by default.) Currently, RedesignGoogle is available for Firefox, and we’ll be releasing versions of the add-on for other browsers soon.

"If you’re a designer, this is your chance to revamp the most widely used service on the web. Anything that can be manipulating using CSS can be changed with RedesignGoogle. We offer a Web-based CSS editor for creating and previewing your designs, but you’re free to use your preferred tools — just paste your stylesheet into the editor when you’re ready to apply it to your own searches and publish it to the gallery.”

Entries …

nirveshverma -1 Light Poster

hi enjoy it and give feedback

nirveshverma -1 Light Poster

HI friends her my code i want to correct this code please help me
thanks and i want to connect or read multiple client at a time

using System;
using System.IO;
using System.Net.Sockets;
using System.Text;
namespace SocketConsoleclient

{
     class Program
     {
        static void Main()
        {
        byte[] receivedBytes = newbyte[1024];
        IPHostEntry ipHost = Dns.Resolve("127.0.01");
        IPAddress ipaddress = ipHost.AddressList[0];
        IPEndpoint ipEndPoint = new IPEndPoint(ipAddress, 2112);
        Console.Writeline("Starting: Creating Socket Object");

        Socket sender = new socket (AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
        sender.connect(ipEndPoint);
        Console.Writeline("SucessFully connected to {0}",
        sender.RemoteEndPoint);
        stringsendingMessage  ="Hello World Socket Test";
        Console.Writeline("Creating Message : Hello world Socket Test");
        byte[] forwardMessage = Encoding.ASCII.GetBytes(sendingMessage + "[FINAL]");
        sender.send(forwardMessage);
        int totalBytesReceived = sender.Receive(receivedBytes);
        Console.Writeline("Message provide from server: {0},Encoding.ASCII.Get.String(receivedBytes,0, totalBytesReceived)");
        sender.Shutdown(SocketShutdown.Both);
        sender.close();
        Console.Readline();
        }
        }
        }
nirveshverma -1 Light Poster

my tack is
i have to send some command to tcp/ip reader ,then i have to get resopnse,next i have to send one more command to tcp/ip,and i should get response,but iam not able to get response,
for the first send command iam able to get response,after send command,iam not able to get,without closing the socket,i have to send and receive,and send and receive,like that i have to do,so please help me

pleae give some fast response
thanks

nirveshverma -1 Light Poster

keep reply and feedback

nirveshverma -1 Light Poster

oh really sorry for this and thanks for indicating my fault and i have said that mistakes are probable.

nirveshverma -1 Light Poster

hey buddies:)
here is login page for begining purpose in asp.net
i hope you will enjoy it
and it is expected there is some mistakes also
so please feedback it.
Thanks

nirveshverma -1 Light Poster

thanks for your comment

nirveshverma -1 Light Poster

HEy:)
Buddies in early morning i want to calculate that exchange during download & you very well known that it is shown in byte so just i am g with c++ and play a game for writing this.
thanks
enjoy it.
It's very easy and handy with simple logic.