|
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
|
|
|
|
|
hi all
I am passing value in response.redirect
but i forgot how to get that value when that page is loading??
response.redirect("default.aspx?Id="&value)
Please help me if any one knows it
|
|
|
|
|
string str = Request.QueryString["Id"].ToString()
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hey Thanks man
;);)
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I want to know how to generate an Atlas postback?
I build controls dynamically on a page, and need a DOUBLE postback for the event handlers to work properly.
So after ie. i changed a dropdown selection, it does partial postback, and then I want to generate another partial postback.
How do i do that?
??OR??
is it possible to call an invisible button's click event inside the update panel through javascript or something?
Plz help
Regards,
Tintin
|
|
|
|
|
e.Item.Cells(3).Controls(0)
in above Controls(0) is Text Box.
what integer will be used for dropdownlist I mean
e.Item.Cells(3).Controls(?)
|
|
|
|
|
|
Hi I am in MCA final sem can any one give a Project code
in asp.net
Lakshman
|
|
|
|
|
Why will anybody give you the complete project which he/she has developed. Inspite you try to develop something to your own and then ask here if you are stuck somewhere. Also it will be beneficial for you as you will get some exposure on development of the applications.
Best Regards,
Apurva Kaushal
|
|
|
|
|
if u need any help or code /project then u can contact me t.gulab@gmail.com or call me on the 09371972329
bye............. friend
|
|
|
|