|
Add something like:
<link rel="STYLESHEET" type="text/css" href="../Styles/mohi.css" />
To the html of your page inside the <header> section
The code above assumes you have a subfolder in your web project called styles.
Hope that helps.
Ben
|
|
|
|
|
apart from mere linking the sheet, u may also want to define classes to various controls..
check for the CssClass property in the properties..
Kunal
|
|
|
|
|
in a scenario i have an application to be developed few parts(web pages) using .net 1.1 and few parts(web pages)using .net 2.0.
so what and where will be the setting.
can anybody guide me by sending code if possible.
thanks a lot
|
|
|
|
|
A single we site can not have mixed pages. You will have to have two web sites. One that runs on .net 1.1 and another that runs on .net 2.0. I would think seriously of switching the web site to one .net version. Otherwise I think you are asking for problems.
Hope that helps.
Ben
|
|
|
|
|
Hello all,
How we get The Value of Dynamic created TextBox in asp.net? i have a web form and in which i want to create textbox dynamically by click on Button ...Now,on another button click I want to retrieve the value of dynamically created textbox.
Please help me.If possible,try to explain me with example.
Thanks,
aekta
|
|
|
|
|
You need to know the name of the textbox so that you can do a findcontrol to retreive the textbox. Unless you are doing this in javascript in which case you need to know the textbox.ClientId.
Hope that helps.
Ben
|
|
|
|
|
to create dynamic textbox use html input type=text because i think u can't create asp.net control at runtime.
i create dynamic textbox but i m not able to retrive the value of that. to create dynamic text box.
<br />
string strHTML = "";<br />
strHTML += "<table cellpadding=\"10\" align=left><tr><td><input type=\"text\" id=\"hhgg\" runat=\"server\" value=\"" + dr[0].ToString() + "\" width=\"100\"/></td></tr></table>";<br />
tdimage.InnerHtml = strHTML;<br />
for create more text box use loop.
in HTML
<table><tr><td id="tdimage" runat="server"></td></tr></table>
if u r able to retrive the value of these text box on button click then reply me
<
anujsharma
|
|
|
|
|
u can do this
dim text1 as Textbox
text1 = ctype(me.findcontrol(IDofTextbox),textbox)
dim str as string
str = text1.text
Thanks,
Sun Rays
|
|
|
|
|
Thanks for ur help.it's really useful.
|
|
|
|
|
Hello,
I need for help in how to use the gridview to insert,update and delete from a database by using code.
How can I enable user to edit?
thanks.
Dad
|
|
|
|
|
Drag and drop the Gridview control onto the work area. Now click on the quick tasks menu which is on the top right of the control. Here you get some options. Click the option New datasource and follow the instructions from there on to configure the Datasource.
After finally configuring the datasource. Your Gridview should work just fine for displaying the data. But if you also want to update or delete the data, you just have to open the quick tasks menu again and check the appropriate options like edit and delete.
You can't insert new values using Gridview. But if you want to do that you can use FormView control instead.
You don't have to be AFRAID!
|
|
|
|
|
I need this one for my student project. I am going to give you a scenario. Please suggest a solution.
You don`t need to get into a lot of details, just tell me what to do and I will find a way to do it.
Here it goes(Don`t laugh ):
I am creating a website where I want to create a possibility for each customer to have a multiple mailing lists.
Mailing lists must me stored in a database (sql server express). How do I access data in a database based on the customers
user name? How to distinguish mailing lists of one user from the mailing lists of another. I am using ASP.NET built in authentification.
For each mailing list entry there is a name, surname, email, gender.
Thanks a lot in advance!!!
Dragan
|
|
|
|
|
Can we use Nested Datalists.If we can then tell me how to do this.
I have Four datalist. one is master datalist and rest of the three are going to come under this.I want to Insert three datalist inside this master datalist. And i bind these datalists separately.very urgent
Mohinder Singh
|
|
|
|
|
yes u can do it.
for that in teplate field u have to put datalist.
and as u want 3 datalist use different column and add datalist to everyone.
then in datarow bound event of master datalist u can find all three datalist and bind data to them.
Thanks,
Sun Rays
|
|
|
|
|
can u send me the code for this.Thanks in advance.
Mohinder Singh
|
|
|
|
|
i am working on ASP.NET 2003 1.1
Mohinder Singh
|
|
|
|
|
Hi,
I have a link in my web page which should redirect me to the login page. The problem is the link is within an iFrame and when i use Response.Redirect it opens the login page within the iFrames. And when I use javascript - window.parent.open, it opens a new window. And i want my login page to be opened in my current window itself.
Could someone help me out pls?
Thanks.
Thanks,
Sathya Subramanian
|
|
|
|
|
u can set target of IFRAME = parent
Thanks,
Sun Rays
|
|
|
|
|
Thanks for ur reply. The problem is i have two links. On clicking one link i want my response to be redirected to the parent window and for the other, i want it to be within the iFrame. One more important thing here is, i have the iFrame defined in a different aspx page and this current page is opened within that iFrame.
Any suggestion to achieve this.
Thanks,
Sathya Subramanian
|
|
|
|
|
hello,
I have one doubt regarding view state.in our asp.net pages how we can keep view state value in a securely way like nobody else can access the site because view state value can be accessible to anybody ..can anybody help me..
regards
alex.
|
|
|
|
|
before storing value in viewstate you can encode it and then at the time of retrieving value u can decode it.
for that u can use any algorithm.
Thanks,
Sun Rays
|
|
|
|
|
Hi,
Thanks for your reply...but i have a doubt..usually we don't wanted to do anything for storing value in the view state ,it will managed by .net itself...
how we can store the value forcefully...
alex.
|
|
|
|
|
You can secure your viewstate values by encryption (or) tamper proofing
To achieve this you need to include the following in your pages/application:
<%@Page EnableViewStateMAC=true %> ->this is tamper proofing
Gautham
|
|
|
|
|
Hi,thanks for your reply..
But i want to know how it help to secure ..usualy view state value is stored in base64 encoding and anybody can decode it also..using this proofing how it differ from the usual method....please explain a bit..
regards
alex.
|
|
|
|
|