|
HI
Don't know about drag and drop feature but ASP.NET 2.0
have inbuild FileUpload Control
<asp:fileupload runat="server" id="uploader">
void UploadButton_Click(object sender, EventArgs e)
{
// Specify the path on the server to save the uploaded file to
string savePath = @"c:\temp\uploads\";
if (FileUpload1.HasFile)
{
string fileName = FileUpload1.FileName;
savePath += fileName;
FileUpload1.SaveAs(savePath);
UploadStatusLabel.Text = "File saved as: " + savePath + "";
}
else
{
// Notify the user that a file was not uploaded
UploadStatusLabel.Text = "You did not specify a file to upload.";
}
}
make use of it
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i have added user defined module in dot net nuke portal that contains several web forms with extension .ascx the problem is linkbutton in these webforms doesnt work properly when i run the application. sometimes i had to click atleast 7 or 8 times to make it work and sometimes it just works with only one click .
can someone please help me in this regard
|
|
|
|
|
I have a doubt in using Atlas Website....
While using Atlas Website does the ajax performs in the particular Webforms or it can perform in other forms. If we use it in other forms how do we need to specify... Kindly help me out
Regards,
LEE
|
|
|
|
|
Your questions are a bit broad in nature. Perhaps you could narrow it down to a problem you are having.
only two letters away from being an asset
|
|
|
|
|
Ok.. In Atlas website. When I add second WebForm it doesn't specified with altas. To use it in second form, How to do it?
Regards,
LEE
|
|
|
|
|
Lee Ponratnam wrote: When I add second WebForm it doesn't specified with altas
What do you mean? It doesn't have a page directive with the Atlas library? Are you using the latest Atlas (now called ASP.NET AJAX Extensions)?
|
|
|
|
|
The settings for Atlas, or Web Extentsion, or whatever they are calling it now, are applied in the web.config so they apply to all pages in the site. Oviously the page directly must be on the page if necessary but if you drag and drop with from the toolbox it will be added automatically.
only two letters away from being an asset
|
|
|
|
|
Hi members of Code project, How r u? this is my first Question which i am asking to you,
i have created one array object and stored into session, so i can use it through out the session of that user.
and this mechanism works fine on my local server, but when i deploy it on remote server then it will work but session object will not give me a correct array object stored for that session...it gives unaccepted output...
Please help me to shoot out this trouble...
Chirag Patel
Chirag Patel
|
|
|
|
|
make the question more clear. what is the output you are getting ? what is the content in the array ?
sometimes we could help
|
|
|
|
|
sorry that i have not displayed enough information...anyway....now i am giving whole information scenario..
I have created one control for "Go back" which will navigate user to previously visited page.for that I am storing previous refferer url in session so I am maintaining Stack structure.
On local server, code works fine means it navigates user to correct previous page, but while I am testing on remote server then control works but it redirects user to page which has session data of other logged in user, I think there may be the session conflict...
bye, have a nice day...
Chirag Patel
|
|
|
|
|
hi
i want code for===
i am writing a code for login screen, in that form when 3 times i am entering wrong password that time my account is lock. i want this code in asp.net using c#.
Gayatri Patil
|
|
|
|
|
Hi
I think you can solve this using view states. When the login fails increase the number in viewstate. so checking the viewstate count is 3 then you can lock.
viewstate["loginCount"] = viewstate["loginCount"] + 1
it's a rough draft, you need to port it using correct syntax
|
|
|
|
|
it's urgent please -- I bet it is. Read the How to get answers post.
only two letters away from being an asset
|
|
|
|
|
hi all,
I have been using Rad controls for charts.but here i cannot able to get 3d charts.
how to get 3d charts in Asp.net ?
plz give ur suggestions.
Thanks in advance.
cheers
sangeet
|
|
|
|
|
|
|
using DataSet.Tables.Add() method
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
But my problem still exists i hav many datasets returning from class file(cs) and i have to pass all datasets to a single dataset in aspx.cs page
Regards,
puthu

|
|
|
|
|
DataSet containerdataset = new DataSet();
containerdataset.Tables.Add(ds1.Tables[0].Copy())
containerdataset.Tables.Add(ds2.Tables[0].Copy())
containerdataset.Tables.Add(ds3.Tables[0].Copy())
containerdataset.Tables.Add(ds4.Tables[0].Copy())
containerdataset.Tables.Add(ds5.Tables[0].Copy())
where ds1,ds2...ds5 are your dataset
and finally all the tables you will get it in containerdataset
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi
Iam beginner to asp.net, can any one explain me the coding for login page how it works with the sample coding
Iam really thankful to you
bye
joyalways
|
|
|
|
|
Specify us which version that you use for login page
Regards,
LEE
|
|
|
|
|
Thank You Lee for ur reply......
Iam using Asp.net 1.1.4322 version using visual studio net 2003
please let me know
regards
|
|
|
|
|
Hi Pls change connection string as per u r database then it will work
if u have any Quries then write a mail to pusnsuresh@yahoo.com...
imports system.data.sqlclient
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim dr As SqlDataReader
con=new sqlconnection("Data source=B4-2F-128-HTB2\SQLSVR; user id=sa; password=; Database=New_Cart")
con.Open()
Try
cmd = New SqlCommand("select Pwd from Login where UserName=" & "'" & Textbox1.Text & "'", con)
dr = cmd.ExecuteReader()
If dr.Read Then
If Textbox2.Text.Trim.Equals(dr(0)) Then
Response.Redirect("Home.aspx")
Else
Label1.Visible = True
Label1.Text = "Invalid Pasword"
End If
Else
Label1.Visible = True
Label1.Text = "Invalid UserName"
End If
Catch ex As Exception
Response.Write(ex.ToString())
End Try
|
|
|
|
|
How can i get values in between some tags. I have one pre tag and i want to get the value contained in the pre tag.
Eg :
<pre>I want this code<br>next line</pre>
any idea? can i use regular expressions ? how can i form a regular expression for this..
Cheers
Navaneeth!!
www.w3hearts.com
|
|
|
|
|
If your trying to do it server side you could set runat="server" on the tag and give it an ID. It will create an HtmlGenericControl that has the properties InnerHTML and InnerText
|
|
|
|