sakhi kul 0 Junior Poster in Training

Most important person of your life is "YOU"

sakhi kul 0 Junior Poster in Training

Sandip khare song- Namanjur

sakhi kul 0 Junior Poster in Training

Hi all,

I am trying for facebook app.
I have done it but my next problem is to integrate it into our website.
so my basic need to login into facebook without login with facebook login. I want to store username and password in file and pass that
for facebook login method. is it possible?
just i need to hide that login window. I want to do that internally.

sakhi kul 0 Junior Poster in Training

hi all,

I am creating my own project template, now I want user should face my own wizard to choose
filename etc.
I want to ask user about database that he want to connect in project
so i want to put my own wizard.

is it possible..?

plz help me?

sakhi kul 0 Junior Poster in Training

hi all,

I am using TOSHIBA satelite 200 and I have windows XP.
few days ago my fully charged battery discharged in 5-10 mins.
now when I started my laptop beep sound comes continuasly, then after some time the XP logo appear and then the screen look like "raining" . nothing will display nicely then i have to rebbot my system ...
meanwhile when any new window will open the beep sound comes it will stops when I deleted temp files.
now I reinstall xp but the beeping still comes.

i can't find is the problem of hardware or software..?


plz help!!!!!!!!!!!!!!!!!!!!!

sakhi kul 0 Junior Poster in Training

Hi ,

I am trying to authonticate user (e-directroy) in c#
but got an exception

plz help

sakhi kul 0 Junior Poster in Training

Hi ,

can anybody tell me any valid link to download Ldap libraries for c#
I am trying many links but It takes much time to respond and error occured as session timed out.

sakhi kul 0 Junior Poster in Training

hi melton16,

you need to write your selectlist again in

public ActionResult EventTime(EventTimeEntry entry) {
}


Lets see an example I want to add user

public ActionResult UserRegistration()
        {
          
            ViewData["txtUserCity"] = new SelectList(_db.City.ToList(), "CityName", "CityName");
            ViewData["txtUserState"] = new SelectList(_db.State.ToList(), "StateName", "StateName");
            return View();
        }
        //User Registration After form submission
        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult UserRegistration(string txtUserCity, string txtUserState,[Bind(Exclude ="UserId")] User u)
        {

            ViewData["txtUserCity"] = new SelectList(_db.City.ToList(), "CityName", "CityName");
            ViewData["txtUserState"] = new SelectList(_db.State.ToList(), "StateName", "StateName");
                       }

here I am populating dropdownlist txtUserCity and txtUserState.

In next ActionResult of UserRegistartion (when form submitted)
the item which you hae selected will came into string txtUserCity , no need to generate session for that.


try it! it may help you!
If any error occured please ask!

sakhi kul 0 Junior Poster in Training

I done it by using handler.
I called webservice into that and converting data into json string ant it will running fine.

but I want to do it without handler and without using webservice.

is it not possible to send data from aspx page by response.write();

I am trying to do that one also but error occured when I am retriving data

Error: Permission denied for http://localhost:4352 to get property XMLHttpRequest.channel

can anybody tell me how to do that one?:(

sakhi kul 0 Junior Poster in Training

hi to all,

I written a web method ListTask() which returns array ob object of class TaskList which give me result in xml form
I want to bind that result to table in asp.net 3.5 aspx page by calling that webMethod in jQuery ajax call.


I have tried many ways one of them is -

$.ajax({
                    type: "GET",
                    url: webmethod,
                    data: param,
                    dataType: "xml",
                    complete: function processResult(xData) {
                        alert(xData);
                        $(xData).find("TaskList").each(function() {
                            alert($(this).attr("TaskName"));
                            //                                               $("#data").append($(this).attr("TaskName") + "<br/>");
                        });
                    }
                });

It gives me error.
If I parse results by changing datatype json and parsing it by parsetojson method then it returns 'undefined'.


please help me out.

sakhi kul 0 Junior Poster in Training

hi ,

I want to ajaxify my asp.net pages by using jQuery.
I have downloaded ajaxify.js files and jQuey files also.
but how to select contentplaceholder using jQuery?

help me out!:(

sakhi kul 0 Junior Poster in Training

will you tell me or guide me what is that so far.. uses...?

sakhi kul 0 Junior Poster in Training

I got the same problem,
simply 'off' your trust level in web.config file

sakhi kul 0 Junior Poster in Training

hi to all,

I want to ask about GUID. what is the main use of GUID in our database.
I have seen that many developers uses GUID in user table(contains username and password)
and they update GUID of that user each time when user login.
In asp.net I have created GUID using System.GUID.newGUID().

sakhi kul 0 Junior Poster in Training

Hello,

Sir I tried a lot.
I have Yahoo API ID to access Yahoo map in my page, but i haven't got any maping control on net like virtual earth or bing map.
i viewed some projects but when i am trying in my page that giving me error.
I have tried very very simple code to dispaly map in my page-

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="YahooMP._Default" %>

<!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">
    <script type="text/javascript" src="http://local.yahooapis.com/MapsService/V1/geocode?appid="(I wrote my api ID)">
        </script>
    <style type="text/css">  
#map{   
  height: 75%;   
  width: 100%;   
}   
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="map">
    
    </div>
    </form>
</body>
</html>

here the problem is they told to include Yahoo!map AJAX API library.
I searched a lot but I havent found it.

again I tried another example using geocode-
given on following link-
http://magmainteractive.net/tutorials/post/Yahoo-Geocode2c-SQL-Server-2008-and-ASPNET-AJAX.aspx

in this code Virtual earth library giving error.

I am trying but I think somewhere I am missing to do .

please help!!!

(firstly I am trying to do in simple asp.net not in MVC)

sakhi kul 0 Junior Poster in Training

Thank you sir,
Actually Sir I want to add Spatial data type "geography and geometry" .
I read that they are user defined types.
to define it Adv work is needed na?

sakhi kul 0 Junior Poster in Training

thank you sir,

I am trying various ways to implement yahoo map in my page,
Sir but finally i want to do it using MVC architecture.

is it possible?
because MVC is little bit confusing.
kindly tell me , the way to implement mapping in MVC:'(

sakhi kul 0 Junior Poster in Training

Hi ,

I want to create user defined data types in MS SQL 2008,
So when I start MS SQL Server Management Studio -> Database
here 'Adventure Work' is not appearing.
( I am referring this -http://www.mssqltips.com/tip.asp?tip=1628)
how to enable that?:?:

or is their any another way to declare user defined data types.
I want to add Spatial data types into my Sql Server.

sakhi kul 0 Junior Poster in Training

Thanks for reply!!

I want to develop web application for real estate agent (Admin) who will edit map and set deatil information of flat like rent, charges, address, owner name etc.

when user want to search flat in particular area ,by clicking on that area the information will appear in popup.

with this functionality, I want to show yahoo map of that area.
Is it possible? (I want to do all this stuff in asp.net MVC 2.0)

sakhi kul 0 Junior Poster in Training

hey, It is possible using jQuery-
write in <script> tag

a[href^=http:\\]

it will gives you all links from that page. It is just a regular expression.' ^' means starting of any link from http:\\. you can also access any type of link like PDF files etc.

a[href$=.pdf]

to use jQuery , you need to download script file and reference it within your application .
you will find out more details here-

www.jquery.com

Hope this will help!!:)

sakhi kul 0 Junior Poster in Training

Thank you for reply!
I go through many articles related to this , one question in my mind , is shape files are necessary to import ? means how to set longitude , latitude on map?
I am new in this area so little bit confused:-O

will you tell me steps to draw map. because I want to add/ edit map to show further deatils.

please help!

sakhi kul 0 Junior Poster in Training

Hi,

how to import/include Spatial Data format (Geometry and Geography) in Sql Server 2008 ?

sakhi kul 0 Junior Poster in Training

Hi,

I am trying to validate a simple form using jQuery.

So,I created database company and in that my table manager.
here I am trying to add manager record.
the code is here-
AddManager.aspx file

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Formvalidation.Models.manager>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AddManager
</asp:Content>
<asp:Content ContentPlaceHolderID ="HeadContent" runat ="server" >

    
    
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript" src="../../Scripts/jquery.js">
$.validator.addMethod('m_number', function (value) {  
    return /(^9[0-9]{9})$/.test(value);  
}, 'Please enter a valid US or Canadian postal code.'); 

$(document ).ready(function(){
$("form").validate({
rules:
 {   
           rules:{
                                           m_id:{
                                                               required:true,
                                                               minlength:2,
                                                               number:true
                                           },
                                           m_name:{
                                                               required:true,
                                                               minLength:5
                                           },
                                           m_email:{
                                                               required:true,
                                                              email:true
                                                              
                                           },
                                           m_number:{
                                                               required:true,
                                                               number:true,
                                                               regex:"^9[0-9]{9}"
                                           },
                                           m_bdate:{
                                                               required:true,
                                                              date:true 
                                           }
                                           
                            },
                            messages:{
                                          m_id:{
                                                               required:"Please enter a Id",
                                                               minLength:"your Id must be 2 digit long"
                                           },
                                           m_name:{
                                                               required:"Please provide a name"                                                             
                                                      
                                           },
                                           m_email:{
                                                               required:"Please provide a valid e_mail id",
                                                                                                     },
                                          m_number: "Please enter a valid contact number",
                                          m_bdate: "Please enter valid date"
                            }
});   
     });   
     

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>AddManager</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="m_id">m_id:</label>
                <%= Html.TextBox("m_id") %>
                <%= Html.ValidationMessage("m_id", "*") %>
            </p>
            <p>
                <label for="m_name">m_name:</label>
                <%= Html.TextBox("m_name") %>
                <%= Html.ValidationMessage("m_name", "*") %>
            </p>
            <p>
                <label for="m_email">m_email:</label>
                <%= Html.TextBox("m_email") %>
                <%= Html.ValidationMessage("m_email", "*") %>
            </p>
            <p>
                <label for="m_number">m_number:</label>
                <%= Html.TextBox("m_number") %>
                <%= Html.ValidationMessage("m_number", "*") %>
            </p>
            <p>
                <label for="m_bdate">m_bdate:</label>
                <%= Html.TextBox("m_bdate") %>
                <%= Html.ValidationMessage("m_bdate", "*") %>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", …
sakhi kul 0 Junior Poster in Training

if your image size is larger or you want to display more images then use generic handler, pass Image id to it.

sakhi kul 0 Junior Poster in Training

I think you are giving wrong path,
if you given extra '/' after your folder name, it will create another folder.
So check it first..

sakhi kul 0 Junior Poster in Training

hi to all,

I am trying to use MVC.
I am using simple Login view.
I just want to implement login form for my users.
firstly I created database User and in that table 'login' with fields id, name, pass. I add values inn that.
I create controller Search==>

public ActionResult search(FormCollection form)
        {
           //to check out I am checking with id field
            var id = Int32.Parse(form["name"]);
            ViewData.Model = u.login.First(m => m.id == id);

            return View();
        }

then i create view
==>

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	search
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2></h2>
    <% using (Html.BeginForm()) {%>

        
            
            <p>
                <label for="name">First Name:</label>
                <%= Html.TextBox("name") %>
                
            </p>
                     
        <input type="submit" value ="submit" />
        

    <% } %>

</asp:Content>

when I run it It gives me error that
"value can not be null , parameter name String"
at

var id = Int32.Parse(form["name"]);

this statement.

what is going wrong here..?
plz help.

and with this I want to ask, "how to prevent SQL injections or is it occur while working with LINQ?"

sakhi kul 0 Junior Poster in Training

hi to all,

I want to develop site like GIS system(geographical information system), how to crate it using c#???
plz help!!!

sakhi kul 0 Junior Poster in Training

hi to all,

I cant start my pc when i was working on it, suddenly my CPU were drop down and hanged. after I am trying to restart it or start it but it cant started yet n giving only msg that
press F1 to re-boot, press F5 to start preboot system testing.
for testing it takes long time.

plz anybody solve this problem...
It's urgent...!

i am using windows 7

sakhi kul 0 Junior Poster in Training

hi to all,

anybody know MVC mens what and how to use it in asp.net..?

sakhi kul 0 Junior Poster in Training

Hi to all,

I want to show image in gridview, So generic handler is needed, but when I am adding it using add New Item dialog,
It doesn't show generic handler .
If I create my own using simple page it gives me error.
I am using Visual Web Developer Express edition 2005. may I add this component ??? how to do that?
plz reply!!! It's urgent!

sakhi kul 0 Junior Poster in Training

Hi to all,

I have table student in which I inserting first name,middle name, last name in 3 different columns. but when i want to show it in gridview I want to join three columns into only one heading "Name".
Is it possible...?
or any other way to show it..?

sakhi kul 0 Junior Poster in Training

Hi to all,

I am using dataset to retrieve value from dataset but I can't do it, control automatically goes to next sentence without retrieving any value..

Dim scd As Integer = ds.Tables("collage_detail").Rows(x)("sc")
                                    Dim cd As Integer = ds.Tables("collage_detail").Rows(x)("c_id")

collage_detail is my table name .

sakhi kul 0 Junior Poster in Training

Thanks

sakhi kul 0 Junior Poster in Training

Hi to all,

I am developing asp.net website using VB.
In my website user registerd to access facilities but I want to give that authority for 1 month only. after 1 month user has to renew his account.
I am inserting date when he registerd in our site.
But the problem is how to find one month later date..?
let us consider one user is registerd on 12/8/2009 & I want to give message that your status will be inactive on 12/9/2009.

How to do that..?
Plz help!

sakhi kul 0 Junior Poster in Training

Hi to all,
I want to execute same query atleast 5 times with different options.
so I execute datareader in while loop.
let considetr opt1 is my variable name passing to command.
when while loop in second iteration then it gives me error that

"The variable name '@opt1' has already been declared. Variable names must be unique within a query batch or stored procedure."

what is solution?

or may I write any code that gives me same result..?
I just want to fetch a column value for 5 different options given by user. In short 5 SELECT statement in single statement"

please reply!

sakhi kul 0 Junior Poster in Training

hi to all
I am developing website in ASP.NET 2.0 using VB. I want to use AJAX controls in my website so I download AJAX control tool kit from official AJAX site but I don't know how to use it.
Plz explain...

sakhi kul 0 Junior Poster in Training

Hi , I am developing a Centralized Admission System in which Students fill their entrance form & collages will provide theirs information about all reservations seats etc.
After entrance result will declared & allotments based on these merit list & merit number. Student fill option form in which he/she gives 5 options of collages where he/she want to take admission.

The error comes in this allotment process...

I have following tables
1.collage_detail( I mainly deal with sc,open,vj.. seats)
2.student_deatail( In this process cast is imp. , s_id is primary key)
3. option list(opt1,opt2,opt3,op4,op5 : collage id student opt for..)
4.result(mainly mertinumber is imp)


So firstly i retrieve all information regarding allotment like student cast, & I want to check weather this cast seats are available in particular collages for which student opt,
I write code in while loop which run 5 times( If student get allotted in first option then loop will break)

when I run above code 2 time the error occurred at datareader
I am using same command object & connection object.Is this the reason of error..?

cmd.commandtext="SELECT * FROM collage_detail WHERE c_id=@opt1"

 While i < 5
                    Dim ot As Integer = op(i)
                    cmd.Parameters.AddWithValue("@opt1", op(i))

                    ' cmd.Parameters.Add("@cid", SqlDbType.Int).Value = ot

                    'cmd.Parameters.AddWithValue("@sid", sid)
                    Dim readcounter As SqlDataReader = cmd.ExecuteReader()
                    readcounter.Read()

                    Dim avseat As Integer = readcounter(0)
                    If avseat > 0 Then
                        Dim adcon As String = "INSERT INTO allotement(s_id,c_id) VALUES(@sid1,@c_id)"
                        cmd.CommandText = adcon
                        Dim con3 …
sakhi kul 0 Junior Poster in Training

Thanks Ramesh S. ! I delete whole compilers tab & then I can run my website. Thanks !

sakhi kul 0 Junior Poster in Training

Hi to all ,
I am developing website in asp.net2.0 using VB.
I wrote sored procedure,

ALTER PROCEDURE SELECTSC
	
	(
	@cid INT
	)
	
AS
BEGIN
SELECT sc FROM collage_detail WHERE c_id=@cid
END
	/* SET NOCOUNT ON */ 
	RETURN

and in vb I wrote on button click,

cmd.CommandType = CommandType.StoredProcedure
                    cmd.CommandText = "SELECTSC"
'ot contains integer value
Dim ot As Integer = op(i)
                cmd.Parameters.Add("@cid", SqlDbType.Int).Value = ot

while running application it gives me error that Function or procedure SELECTSC too many arguments specified.

In collage_detail table I want value in sc column as per the c_id(collage id) . I will provide collage Id from array in while loop.
because I want to check for 5 different collages.

please give me any solution...!

sakhi kul 0 Junior Poster in Training

Hi to all,

I format my laptop and installed VS2008 .
after running my webpage it gives me error that "compiler executable file csc.exe not found" (It is for previously build website)
and if I create new website and run then It gives error that vbc.exe not found"
why this is so? plz give me solution...?

sakhi kul 0 Junior Poster in Training

Thanks for reply,
but I need code using VB.
I am converting String value using Ctype but it gives me error that you cannot convert String to Datetime...

can anybody know same code using VB...?

sakhi kul 0 Junior Poster in Training

Hi,
Thanks for your suggestion but I am using VB as . So I have tried conversion using Ctype, but it gives me error that String can not be converted to DateTime .

sakhi kul 0 Junior Poster in Training

Hi,
Actually i set calender on another form & retrive date via querystring . It appears in textbox but It converts into string. I want to again convert it into Date , so how to check that. b'coz further i want to check data for validation..

plz help me !

sakhi kul 0 Junior Poster in Training

Hi To All,
I want to show popup calender control in my website. How to do that?
Plz help

sakhi kul 0 Junior Poster in Training

Thanks! It works!

sakhi kul 0 Junior Poster in Training

Hi to all,

I am using custom validator for validate 10 digit mobile number starts with 9.
I simply put custom validator in my form & I wrote "^9[0-9]{9}$"
but if i put correct mobile number then only it gives me error message.
can anybody tell me what is correct procedure..?

sakhi kul 0 Junior Poster in Training

Hi to All,

I am accessing text box value and error is operator '-' cannot be applied to operands of type System.web.UI.WebControls.TextBox and int

sakhi kul 0 Junior Poster in Training

hi to All,

I wanted to show alerts as per admin decide schedule & only that pages should be displayes which are comes under that schedule.
how to manage this? how to check dates?

sakhi kul 0 Junior Poster in Training

Hi All,
I want to show user registration information which he fill up in registration form & he can edit it. So I use details view. but I want to hide some fields like user_id(Primary key) etc. & some fields that he can't edit.
How can I manage it..?

sakhi kul 0 Junior Poster in Training

Hi to all,
Hi I am developing entrance4u.com in which I want to generate exam number for each student. Let us take an example, It will like EFU001
. So for that I calculate total number of students, then I create String "EFU" , then I find out how many digit number I need to generate , suppose It's 3.(means SUM(Student) converted to string & calculate length)
Now my problem is How to Start with initial value 001 & not only 1
because I want my first number should be EFU001 & then EFU002,003...EFU100.

How to do that?