|
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.
|
|
|
|
|
|
I AM working in asp.net 2.0 and using javascripting to validate the pages.
i am getting javascripting error invalid arguments how to solve this .
thanks in advance
urgent.
|
|
|
|
|
May be you are not passing enough number of arguments when calling the javascript function!
If possible post the javascript function you have written along with how you are calling that function from your application.
Gautham
|
|
|
|
|
how do we display a imagebutton in asp.net.it does show a small box with a cross on it but doesnt display the image of the button.though the functionality behind the button wrks just fine.
bia ali
|
|
|
|
|
hi,
for that u have to set property of image button.
give image url to imagebutton..
Thanks,
Sun Rays
|
|
|
|
|
the path that it allows me for picking the pick url is the folder in which the project is lying and even if the image is pasted in that folder still it doent show that image in pick url window for me to select it and if i write it myself then it gives me an error: image not found
bia ali
|
|
|
|