|
we can use in HTML...but am trying to do that in code behind......hw to do it there....
in a button click am trying to do that...
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = DateTime.Now & " feedback was sent from an ASP.NET " & vbCrLf & "Wheeler's Accident Investigation Form"
End Sub
|
|
|
|
|
Hi,
i have got the answer....thanku.....
|
|
|
|
|
I have the following section in my web.config file:
<location path="members" allowoverride="false">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
I thought that ALL files and folders inside the specified path were affected by this entry. In other words, access is denied to anyone not logged in to the site. It does work for *files* inside the "members" sub-folder, but in subfolders within members (like "members/xyz", files can be viewed by typing the whole path ("http://www.mysite.com/members/xyz/mypage.php").
I tried adding this (so I have both location path entries in the web.config):
<location path="members/xyz" allowoverride="false">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
but that doesn't appear to have any affect.
Does anyone know what I'm doing wrong?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Wednesday, January 23, 2008 6:53:59 AM
|
|
|
|
|
Can't see your angly bracket stuff.
|
|
|
|
|
Fixed
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: can be viewed by typing the whole path ("http://www.mysite.com/members/xyz/mypage.php").
AFAIK, ASP.NET will execute the request, if extension type is mapped to aspnet_isapi.dll in IIS. Usually PHP extension won't be mapped, which will ignore the settings written in web.config. This might be the problem.
|
|
|
|
|
I'm not using IIS...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: I'm not using IIS...
Then how come your ASP.NET pages are served ?
|
|
|
|
|
I'm using Apache. Don't you read the Lounge here?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: Don't you read the Lounge here?
Usually I won't. Now I read and understood your scenario, but I don't have any idea on this
|
|
|
|
|
John Simmons / outlaw programmer wrote: I'm not using IIS...
Which is your webserver? In any case, if the request can be mapped to aspnet_isapi.dll (which ultimately processes web.config), your objective can be achieved.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
It's one I wrote myself, and I have it running on a Nokia cell phone.
Actually, it's Apache.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi all,
I need to open a third part site (external page), with a post call, in a page (page A) with my logo on top of the page (Frame A).
first step: I've used frames (page A) to do it, and it works without problems.
Second step: i need to call that external page with a post call, throwing params as hidden fields. There's no problem! I create a page (Page B) that do this, and i call this page in the frame (Frame B) Instead of the first one (external page). I use this call to make an auto-login into the second site. For make this i need to throw the info of the user calls the page.
The problem is this: In a frame page (page A) i cannot persist my session cookie into the frame (Frame B), i think. If i work without frames, calling directly the Page B, the post call works. In the frame no.
Someone can help me to resolve this problem? I wrong something or is a limit of frameset?
There are other ways to have my page A (with my logo and the external page) without frames?
Thank you
Ellis
|
|
|
|
|
AFAIK, Session and Frames are not related. If you are creating a session in PageA, you won't get access to this session inside your frame(pageB) until you refresh the pageB frame or the page that contains entire frameset.
|
|
|
|
|
Is it possible to edit different rows of a grid at the same time i mean give single edit and update buttons for all the rows?
|
|
|
|
|
|
Thank you Vasudevan. Thats what i wanted.
|
|
|
|
|
I want to transfer data present in Access database to sqlserver i have written this code but its not working cant understand y
Plz help
private void button1_Click(object sender, System.EventArgs e)
{
OdbcConnection myconn = new OdbcConnection("DSN=test");
SqlConnection conn = new SqlConnection("server=.;database=techpaymaster;uid=sa;password=;Pooling=false;Connect Timeout=55;");
OdbcCommand da = new OdbcCommand("select * from tinfo",myconn);
myconn.Open();
OdbcDataReader dr=da.ExecuteReader();
while(dr.Read())
{
string i =(string)dr["Name"];
int j =(int)dr["Age"];
conn.Open();
SqlCommand cmd = new SqlCommand("insert into sadd(Namee,Agee)values('" + i + "'," + j + ")",conn);
cmd.ExecuteNonQuery();
}
|
|
|
|
|
What error you are getting ?
|
|
|
|
|
This is the error i am getting
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll
Additional information: System error.
|
|
|
|
|
Cuckoo wrote: SqlException
SqlException can happen when your query is not well formed. Use parameterized queries or assign your query to a string and print it before you pass it to SQLCommand . This will help you to identify the problem.
|
|
|
|
|
Hi all,
I am using arraylist,it contains suppose 100 elements.Here i need to sum the first 15 elements and second 15 elements vice versa.
now second 15 elements should be first 15 + sencond 15 elements sum should come.
Can any body can help
thanks in advance,
eswar
|
|
|
|
|
Hi all,
Is there a way that I can set the Calender control to display only the month and year and not the days of the month?
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
I am not sure, but have you tried inheriting calendar control and overriding Render() ?
|
|
|
|
|
Nope, guess I have some reading up to do
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|