|
filecontrol.value property.
Parwej Ahamad
|
|
|
|
|
Thanks.
But I'm using FileUpload Control and there is no any propery like value.
Pls tell the solution.
Thanking You again in advance....
|
|
|
|
|
first u make filecontrol runat server
right click on control and selectect run at serer.
if u feel more trouble then pls send me your code and description on my id
Past in message body don't attach.
g_parwez@rediffmail.com
parwej ahamad
|
|
|
|
|
how can we bind DataReader() results to a table in asp.net WebForm (in dynamic format)(without using DataAdapter())?? Please help me.... its urgent....
|
|
|
|
|
execute query from command object
like command.executereader and
dim Rd as datareader=commnad.executeread
and then bind the grid
Softy Boy
|
|
|
|
|
i would like to bind it dynamically(prefferably html table) not in a grid...is there any options??please help
|
|
|
|
|
Perhaps if you explain what it is that you want to accomplish.
An html table has no data binding capabilities.
---
b { font-weight: normal; }
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
I want to delete a record from database with link in web.when the link was clicked display a yes/no question for delete.
Any info would be much appreciated,
|
|
|
|
|
On the link you can call a javascript function like :
<a href="javascript:Validate_content();">Delete</a>
and define this javascript function to see Yes/No confirmation box.....
<script language="Javascript1.2">
<!--
function Validate_content()
{
var answer = confirm("Are you sure you want to Delete ?");
if(answer)
{
document.contentform.submit();
}
else
{
return;
}
}
//-->
</script>
Please remember, you need to manage c# code for a particular Id or whatever...
Suman Singh
|
|
|
|
|
Hi,
I am using a multiple dropdownlist and want to select more than one items coming from database..
Let say, the multiple dropdown has following items :
1
2
3
4
5
and from database an array with values 2 and 5 is coming.
string[] val = {2, 5};
I want to select 2 and 5 in the dropdownlist.
Please help.
Suman Singh
|
|
|
|
|
You can't use a DropDownList for multiple selections. This is a limitation of the resulting HTML, not ASP .NET. You have to use a ListBox instead if you want to select multiple items.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Does anyone know if the asp.net adrotator control supports flash banners.
If so, how does the XML file look with a flash banner in it. I am trying to
get a .swf flash file to work with the adrotator and it doesn't seem to be
displaying. I just not sure what needs to done.
Any info would be much appreciated,
|
|
|
|
|
Can you show us the code for your XML file?
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky
|
|
|
|
|
Hi there
In VS2003 whenever I wanted something done in the PreRender phase, I'd select the Page class from the control dropdown, select the events (on the lightning icon) and then double click on PreRender.
Where do I access the same functionality in VS2005...?
I know I could just hook up to the event in the Page_Load method, but I wanted to do it "right" :->
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
I need some steps to follow to:
1.Link a microsoft access database to asp.net
2.Write some line of code to make it run and open another page on a button click.
thanks
|
|
|
|
|
According to my perception
1.Link a microsoft access database to asp.net
you need a connection string to connect to database ..
string constring= "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\projects\data\thetre.mdb;User Id=admin;Password=;";
OleDbConnection mycon= new OleDbConnection(constring);
2.Write some line of code to make it run and open another page on a button click.
Please clarify "to make it run"....
Do you want to fetch records by a sql ?
if yes try this function:
You need to use 2 namespaces :
using System.Data;
using System.Data.OleDb;
public DataTable fetch_data(string sql)
{
string constring= ConfigurationSettings.AppSettings["con"];
OleDbConnection mycon= new OleDbConnection(constring);
OleDbDataAdapter dap= new OleDbDataAdapter (sql, mycon);
DataSet stds= new DataSet();
dap.Fill(stds);
DataTable dt=stds.Tables[0];
mycon.Close();
return dt;
}
On button_click event
write this code : Response.Redirect("Page2.aspx");
Suman Singh
|
|
|
|
|
Here are some ASP .NET 2.0 video tutorials--one of which shows how to create a membership (login) application: http://weblogs.asp.net/scottgu/archive/2006/02/26/439088.aspx[^]
Look for the "Membership and Roles" link.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
hi
i have problem for which i have been struggling fro last two days
i hope u can slove this
consider a scenario
1> user login using his userid and password
2> he get his required page
3> user copy the url
4> user logout
5> he paste the url
6> he is getting page without any validations
i am using formsauthetication.signout
session.abdoan
session.clear
i have written validation code on page_init event
which does not fire
when u copy and paste url
i think i am able to explain my problem
please help me its urgent
thanks
|
|
|
|
|
a very simple solution may be
1. create a session let say, user
2. when you are checking the username and password from database and if you find the record,
Assign value of userid to the session
3. On each restricted page or on the master page place this code:
if(Session["user"].ToString() == "")
{
Response.Redirect("default.aspx");
}
4. On logout assign blank to this session and remove it...
Hopefully it will solve your problem.
Suman Singh
|
|
|
|
|
I think it may help u.
write the below code in default page in pageload
Session.Remove(Session.SessionID);
FormsAuthentication.SignOut();
Context.User = null;
Response.Redirect("./.../Login.aspx");
definitely it will help u...already i checked this...
rgds,
cnr369.
|
|
|
|
|
hi
thanks for replying
i already done validation on page-init event
using session and userid
my problem is in given scenario
form_init event doesn't fire
thanks
|
|
|
|
|
Hi there
I am ready to throw my inhibitions overboard and dive into the 2.0 version of Asp.Net.
I've got VS2005 installed, along with MSSQL2005 but I keep bumping into things that are done in another way or just isn't working like it used to.
Can anyone point me to books or online tutorials that are especially built for someone like me, who is intimate with the workings of ASP.NET 1.1 - but not with 2.0...?
MODIFIED:: Hm... found this http://www.codeproject.com/aspnet/ComparisonASP1xASP20.asp[^] And that's very much what I'd like, just with more details
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
|
Hi Mike
Thanks a lot - that's a great start!
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|