|
Ours is an asp.net1.1 internet application. We are referring to IBM Surfaid javascript file which is hosted in that website. We are calling a javascript function defined in that file. We are using page.render method to register a javascript which will call the javascript function defined in that function on every page load. On first time load, it is happening file. On postbacks, we are getting a Warning 'The page is accessing information outside the network. Do you want to continue? Yes or No'. We used to click on yes. Is there any solution to avoid this warning? Is that due to that external js file reference(other domain) or something else? We need to refer to that file web usage tracking. Please suggest something
|
|
|
|
|
How Can I add new record to database using DataGrid control in ASP.NET.
|
|
|
|
|
|
Hello,
I created a class named Scripts with a function (Add) and a property
(List). I compiled it into a dll.
Basically, when I do:
Dim MyClass As Scripts
MyClass.List = "Script1, Script2"
MyClass.Add
It adds the scripts to the page.
My problem is that inside my class I have:
Page.ClientScript.RegisterClientScriptInclude ...
And I get an error saying:
"Name Page is not declared"
How can I solve this?
Thanks,
Miguel
|
|
|
|
|
You can :
1. create a member of type Page in the class, then use that for the code.
2. create a parameter of type Page in the class.
(untried)
You can also try to get the parent of the control, and cast it as page.
|
|
|
|
|
I have Datagrid in which i m using Autogenerated Columns to show data.
Now i want to adjust Columns Width accordingly....
Any help will be greatly appreciated....
|
|
|
|
|
You can iterate through the columns property, and change it there.
|
|
|
|
|
Can u explain with some example.....I cannot u
|
|
|
|
|
use the Columns property of the datagrid. Iterate through them, then set their width.
|
|
|
|
|
Hi,
Sorry if this is the incorrect forum.
Was wondering if any one can point me in the right direction with a query I have.
If a person has a website that refers a customer to another website (eg Fred's Jeans), and then that customer purchases a pair of Fred's Jeans - Is there a way to count how many people do this (not just traffic but actually finalise a sale).
If so can any one offer any advice etc.
Cheers
Dan.
|
|
|
|
|
When you send the person to Fred's Jeans, there should be a query string value with a unique identifier for your site (the referrer) like www.fredsjeans.com/?refid=12. Fred's Jeans must then store the refid value in Session (or keep it in the QS the whole time by changing links). Then when a user buys something the site checks the Session for a refid and if it finds it the referrer is credited with the referral.
|
|
|
|
|
Thanks for the speedy response.
So this means that if Fred's Jeans didnt have a site set up to deal with referals then the code of that page would need changing too, so that it can send me back a msg saying some one has bought some of my fine jeans?
Thanks
Dan.
|
|
|
|
|
Hi
When I use DetailsView in VS2005 and set it in defultMode to insert and then when I need to get the new values so in the DetailsView_ItemUpdating event the following code alwayes give me null exception
<br />
String Field1Values;<br />
Field1Values = e.NewValues["xyz"].ToString();<br />
Also I set set ConvertEmptyStringToNull="False"
But still I get null exception !!! any one help me
so
I want to get updated values back from the
DetailsView and then handle my updating manually.
-- modified at 12:08 Friday 3rd November, 2006
|
|
|
|
|
Am working in .net 2005 asp.net and using sql server 2005 as an back hand . I wat to store the browsed file to my data base .
So please help me
saurabh saraf
|
|
|
|
|
how can we upload a file thru ftp
|
|
|
|
|
You can have a look at this[^] .
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hello,
can someone please tell me how can I read the ETAG header insire Application.Context.Response field inside an HTTPModule??
I've seen that there's a method HttpCachePolicy.SetETag, but it's a setter...
any suggestion?
Bests
Paolo
|
|
|
|
|
hi
please tell me how to set cookies for perticular urls i am tryied but it is not reflecting properly see the code
c = new Cookie("chasezip","zipcode=40201&state=KY&county=Jefferson", "/", ".chase.com");
c2 = new Cookie("marketlist", "68|70|73|79|80|90|116|138", "/", ".chase.com");
//c.Domain = ".chase.com";
myHttpWebRequest.CookieContainer = new CookieContainer();
myHttpWebRequest.CookieContainer.Add(siteUri, c);
myHttpWebRequest.CookieContainer.Add(siteUri, c2);
response = (HttpWebResponse)myHttpWebRequest.GetResponse();
resStream = response.GetResponseStream();
it is not working properly
|
|
|
|
|
how to insert text balloons(CallOuts) to a textdocument in web applications in .net
|
|
|
|
|
Hi All,
I Rajesh Very New For ASp.net...I neeed A code for Login Page..In C#..I know Asp Very Well But need help In asp.net.
I can Give My Database Infomation..
Database name : RajeshDB
Used table : TblLogin having(id,username,password)
Page name : login.aspx
U can Give me ur connection string ..i can manage it..
I need Both login.aspx n login.aspx.cs
Thanks In Advance..
Life is not easy ,let's make it.
|
|
|
|
|
I don't think so anybody will write the complete code for you. It will be better if you try it with yourself and then come with the specific doubt you will get which development.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Ok Thankz Sir ..I'll Do that ....
Life is not easy ,let's make it.
|
|
|
|
|
Hi asprajesh, life is not Easy, You can make it easy, we can help, we cant do all the job for you...
At login html page, add one Login Control (named whatever you want, Logeo is this case)
login code behind
at aunthenticate Function
<code>
protected void Logeo_Authenticate(object sender, AuthenticateEventArgs e)
{
try
{
string id_user = Logeo.UserName.Trim();
string pass_user = Logeo.Password.Trim();
string sql = "SELECT coduser, nomuser FROM users WHERE iduser = '" + id_user + "' AND passuser = '" + pass_user + "'";
//This is an connection Example
public SqlConnection conexionExpress = new SqlConnection("server='localhost\\SQLExpress';Integrated Security=true;Initial Catalog=college;User Instance=false");
SqlCommand comandoSql = new SqlCommand(sql, conexionExpress);
string cod_user = "";
string nom_user = "";
//Open database connection
conexionExpress.Open();
SqlDataReader dr = comandoSql.ExecuteReader();
while (dr.Read())
{
cod_user = dr.GetValue(0).ToString();
nom_user = dr.GetValue(1).ToString();
}
conexionExpress.Close();
if (cod_user != "") //The user exist onto database
{
/*Create the session vars
Session["coduser"] = cod_user;
Session["nomuser"] = nom_user;
e.Authenticated = true; //Grant the access
}
}
catch(Exception)//On Login Error
{
e.Authenticated = false;//Confirm that you are out
}
}
<code>
Its almost all the solution, you can based your solution on this
keep Learning and you never will be out of date...
|
|
|
|
|
Hi,
I have developed a WebForm using Datagrid. Firrst column is a bound column ( 5 names )..retrieved from database. remaining columns are item template columns.( 7 week days )
I have used check boxes for the item template columns.So i have 35 Check boxes in the grid, each cell of the grid is having a check box. ( 5*7). I am using a button also.
Now my question is
If I click on that button, It should display the check boxes which are selected under which week days with respective names.
it should be like this
Names Weeks
(if suppose Mon, Fri check boxes are selected related to adcd row under respective week days )
abcd Mon, Fri
xyz Sat, Sun
..... .........
Please help me out.
Thanks in advance,
Libran
|
|
|
|
|
hi again
See i am sending you the sample code but u have to convert it for your requirement.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim j As Integer = 0
Dim gvr As GridViewRow
For Each gvr In DocumentListGV.Rows
Dim chk As New CheckBox
chk = CType(gvr.FindControl("CheckBoxName"), CheckBox)
If chk.Checked = True Then
j = j + 1
End If
Next
MsgBox(j)
End Sub
by this code you can know how many rows are selected i mean check box are checked?? ok??
make changes and then u can find out solution ok??
Regards,
DJ Rock
|
|
|
|