|
Hi,
do you have a products.aspx in your root-folder?
|
|
|
|
|
Thanks for your time...
When i create products.aspx in your root-folder... it redirect to product.aspx page.. I want to redirect to Books.aspx page when i give
http://localhost:1890/Urlredirect1/products.aspx?category=books
Plz guid me where I am going wrong
Thanks in advance
Ramkumar
|
|
|
|
|
Well, than I guess you have to change your rewriting-configuration. If the client enters product.aspx you want to redirect to books.aspx. So it must be
<rewrite url="~/products.aspx?category=books" to="~/products/books.aspx" />
Regards
Sebastian
|
|
|
|
|
Hi....
I m using asp.net 2.0
I have datalist control and one button and a text box inside itemtemplate.
I want to hide textbox once the user clicks button in itemtemplate...but through javascript...
can u help me out...
thanks...
By:
Hemant Thaker
|
|
|
|
|
In ItemDataBound of datalist find the button and add attribute for the button like,
btnName.Attributes.Add("onclick","return EnableControl('" + txtName.ClientID + "');");
then write javascript method EnableControl and do as per your requirement.
|
|
|
|
|
funcation HideTextbox(obj)
{
obj.visibility:hidden;
}
in the itemdatabound event
button b1=(button) e.findcontrol(<buttonid>);
b1.Attributes.Add("onclick","return HideTextbox(this);");
|
|
|
|
|
Hi... thanks...
I m leaving for home , I may get this dont tonight...
It seems like u r from Gujarat...
As I know one of my friends..."Dabhi"...
Anyway...object button b1 is not created any how....means its not able to find respective control
see u
By:
Hemant Thaker
|
|
|
|
|
public void populatepage()
{
string s = Page.User.Identity.Name;
string str = "Select * From Company Where(Owner='s')";
SqlCommand cmd = new SqlCommand(str, conn);
SqlDataReader dr = null;
conn.Open();
dr = cmd.ExecuteReader();
while (dr.Read())
{
txtcompname.Text = dr["CompanyName"].ToString();
txtcompaddress.Text = dr["CompanyAddress"].ToString();
txtmail.Text = dr["Email"].ToString();
txtphoneno.Text = dr["PhoneNo"].ToString();
txtpincode.Text = dr["PinCode"].ToString();
Button1.Visible = false;
Label1.Visible = true;
Label1.Text = "You have already created your company";
txtcompaddress.ReadOnly = true;
txtcompid.ReadOnly = true;
txtcompname.ReadOnly = true;
txtmail.ReadOnly = true;
txtphoneno.ReadOnly = true;
txtpincode.ReadOnly = true;
}
conn.Close();
}
i have written this code to poulate a form but it doesnt works.
all textbox are still empty.there is one row in database but it does not go in while loop....plz guide..
|
|
|
|
|
mylogics wrote: string str = "Select * From Company Where(Owner='s')";
Change it to
string str = "Select * From Company Where Owner='" + s + "'";
HTH
|
|
|
|
|
thnks...it worked
that means that string shud alwas b takn in double quotes n numeric values in single quotes.m i right...
|
|
|
|
|
Just watch the value of "str" in both scenarios (your's & above person's)while debugging the appl'n.
U'll come to know where u make mistake.
|
|
|
|
|
|
Hi
Did you get any clue on how to get this type of chart for asp.net? I am in need of a similar solution but could not get anything out from Google so far. Please share if you have got any (senthiljapss1 at gmail com)
|
|
|
|
|
i have a dropdownlist which has a name of students and two textboxs which has upper and lower limit of date of births.
i want to make a datasource for a gridview which
is
select * from Student where name=@name OR birthday BETWEEN (@lower) AND (@upper)
it doesnot work help
|
|
|
|
|
Why do you say it does not Work. Do you get some sort of Error
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
hey guys
i have a site thats show pictures.
i would like to focus on the picture with points that i will post...
is it possible ?
i tried to find some info about it and i couldnt find something...
can someone help me out ?
|
|
|
|
|
|
I serched a lot on net but i did not find free Download software for data Application Block which will be supported to asp.net 3.5.
|
|
|
|
|
You use Dll for that Name of Dll is Microsoft.ApplicationBlocks.Data.dll
you can easily get data access from database using this DLL refrence
|
|
|
|
|
hello dabhi naresh,
Thank you for the Reply.
regard,
vaishali Terse.
|
|
|
|
|
Can you send me the exact Link for this Microsoft.ApplicationBlocks.Data.dll. & plz Tell me whether it is working perfectly fine.
|
|
|
|
|
|
Hello all,
I have used panel around GridView in my application so as to display scrollbars in GridView.
Problem is when my GridView has few records, it doesn't need those scrollbars but they are still displayed.
What can i do so that scrollbars don't display when GridView don't have many records?
Thanks,
Nagendra.
|
|
|
|
|
try setting ScrollBars="Auto" for Panel.
|
|
|
|
|
Hey thanks man, that was so dumb of me.
|
|
|
|