|
no problem - just add the following:
<a href="www.google.com">Bloody Muppet</a>
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
HI friends,
Kindly help me to lock the View Source tab from the Web page. That is when we right click the web page and select View Source or when we select the view tab from the tool bar and the select Source it should say Sorry You Cannot View The Source.Hope u people got my query. If any one knows the code for it do send it.
Thank you,
Vipin
|
|
|
|
|
|
i agree with u. but only who have a very good knowledge in computer will know to disable the script. rest of who just go through do know how to disable it. so it would be of great help if u tell me how to do it.
I am sure it can be done because i have see it some sites. but i dont know how to do it
thank u for ur response.
Vipin
|
|
|
|
|
I would venture a guess that anyone who cares to look at your source and can understand it, would know to disable javascript.
|
|
|
|
|
Why would you even need to do this? You are providing something into the public domain (the internet) - anyone who really wants to see the source of the page will be able to, and anyone not savvy enough will not even bother wanting to!
Either way you cant stop people viewing the html source of any page you put online. As was stated in the linked post above, anything you dont want the public to see you shouldnt put online. That is the only guaranteed way of stopping people viewing the source!
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
i create a report in crystal report and i want set the color of row gran but not all of the row
i want one row be withe and one row be gran
can i do this work?
plz help me...
|
|
|
|
|
Hi,
I am creating an application on ASP.NET like sound system, in which songs will be uploaded & particular song will be selected to play..
The song which will be uploaded will also be saved in database server (SQL SERVER 2000)
I dont know how to upload & add these music file like .Mp3 or midi files using ASP.NET( VB.NET )on database server
Any one over here can help me with this....
ITS URGENT
FAISAL KHATRI
|
|
|
|
|
|
Hi
I am having some problem while I try to retrieve an email address from the active directory
The scenario is that
I am having a login name and with that I want to get corresponding email address from active directory.
Then I have to send an email to the email address through code..
--------------------------------------------------
while directory search it is giving me an exception
DirectoryEntry objDEntry = new DirectoryEntry("LDAP://domain/DC=domain,DC=co,DC=in");
DirectorySearcher objDSearch = new DirectorySearcher(objDEntry);
string username = Session ["Name"].ToString ();
MsgBox3.alert(username);
objDSearch.Filter="(&(objectClass=user)(l=" + username + "))";
//string email;
//SearchResult sResultSet=null;
objDSearch.PropertiesToLoad.Add("cn");
MailMessage objEmail = new MailMessage();
MsgBox3.alert("good");
SearchResult sResultSet=objDSearch.FindOne(); [here is where the exception comes]
-------
System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindOne()
----------
Kindly help me out regarding this
Smith
-- modified at 4:49 Thursday 6th July, 2006
|
|
|
|
|
Does the ASPNET worker process have the appropriate permissions to access the directory?
|
|
|
|
|
Im new in asp.net 2. I had created a sample web site. I want to make it as a local web site.
So how can I do this to a new web server.
Thanks
|
|
|
|
|
Please tell me the exact difference between server.transfer and response.redirect.
|
|
|
|
|
http://www.google.co.in/search?hl=en&q=server.transfer+response.redirect+&btnG=Google+Search&meta=
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Using Querystring
Querystring is a day old mechanism to pass values across pages. The main advantage of this method is it is very simple. However, disadvantages are the values are visible in the browser address bar and you can not pass objects this way. This method is best suited when you want to pass small number of values that need not be secured from others. In order to implement this method you will follow these steps:
§ Create the web form with controls
§ Provide some button or link button that posts the form back
§ In the click event of the button create a string that holds URL for another
§ Add control values to this URL as querystring parameters
§ Response.Redirect to another form with this URL
Following code snippet shows how it works:
Source Web Form
private void Button1_Click
(object sender, System.EventArgs e)
{
string url;
url="anotherwebform.aspx?name=" +
TextBox1.Text + "&email=" +
TextBox2.Text;
Response.Redirect(url);
}
Destination Web Form
private void Page_Load
(object sender, System.EventArgs e)
{
Label1.Text=Request.QueryString["name"];
Label2.Text=Request.QueryString["email"];
}
Server.Transfer
This is yet another way to pass values across pages. Here you store control values in session variables and access them in another web form. However, as you know storing too much data in session can be an overhead on the server. So, you should use this method with care. Also, it requires some kind of clean up action from your side so that unwanted session variables are removed. The typical sequence of steps will be as follows:
§ Create the web form with controls
§ Provide some button or link button that posts the form back
§ In the click event of the button add session variables and set them to control values
§ Response.Redirect to another form
§ In that form access Session variables and remove them if necessary
Following code shows this in action:
Source Web Form
private void Button1_Click
(object sender, System.EventArgs e)
{
//textbox1 and textbox2 are webform
//controls
Session["name"]=TextBox1.Text;
Session["email"]=TextBox2.Text;
Server.Transfer("anotherwebform.aspx");
}
Destination Web Form
private void Page_Load
(object sender, System.EventArgs e)
{
Label1.Text=Session["name"].ToString();
Label2.Text=Session["email"].ToString();
Session.Remove("name");
Session.Remove("email");
}
|
|
|
|
|
I found out we could bind datareader to grid, dropdown list etc. but can we bind datareader to textboxes? if it is possible how to do it?
|
|
|
|
|
hi,
yes you can bind textboxes to a datareader. A textbox can be bounded with one record of a datareader object like that.....
Connection.Open();<br />
reader=SqlCommand.ExecuteReader();<br />
reader.Read();<br />
TextBox1.Text =reader.GetString(1);
Tirtha
Live life to the fullest
|
|
|
|
|
i dont think so you can bind to textbox. you can set the value from reader to textbox.
Nav.
|
|
|
|
|
hi nav,
yes you are partially right. actually the problem arises when the datareader has null values.Isnt it? Other wise do u think that the following code is incorrect.
txtName.text=reader("Name")
whats ur opinion?
Tirtha
Live life to the fullest
|
|
|
|
|
completley agree with you its ok if we not getting any null values. and we can set a check for null as wel. but if we look at the question its not binding its jus a way to getting and setting a value to textbox.
regards
Nav.
|
|
|
|
|
hi nav,
Ok Ok.agree with u. now its settled.
Tirtha
The best prophet of the future is the past
Live life to the fullest
|
|
|
|
|
thats like a good boy.
take care
Nav.
|
|
|
|
|
I want to use DataViewManager to bind data to a datagrid in Asp.Net. How is this possible?
|
|
|
|
|
first create a datatable
DataTable dt = new DataTable("TestDT");<br />
dt.Columns.Add("ID");<br />
dt.Columns.Add("NAME");<br />
for(int n=1; n<3; n++)<br />
{<br />
DataRow dr = dt.NewRow();<br />
dr["ID"] = n.ToString();<br />
dr["NAME"] = n.ToString() + n.ToString();<br />
dt.Rows.Add(dr);<br />
}
then add datatable to Dataset
DataSet ds = new DataSet("TestDS");<br />
ds.Tables.Add(dt);
Create dataviewmanager
DataViewManager dvm = new DataViewManager(ds);
bind it to datagrid
dataGrid1.DataSource = dvm;
and finish
Nav.
|
|
|
|