|
hi
I want in button_click create a text box and add to placeholder.
in fact, I want by each click add a textbox to my page.
how?
thanks
|
|
|
|
|
Use Javascript.. If you dont have any serverside code to run.
Create a textbox using Javascript :
function createTextBox()
{
var tb = document.createElement('input');
tb.id = new Date().getTime().toString().substr(5) + Math.floor(Math.random() * 100).toString() + '_dyntextbox';
tb.type = 'text';
document.appendChild(tb);
}
This will create a textbox dynamically in the document.
|
|
|
|
|
I have taken one datagrid to display the information of an employee(emp_ID,emp_name,emp_age,emp_add,emp_sal).suppose 10 record display in the datagrid.when i click on 5 record in datagrid then all particular record of tht datagrid will selecten in different textbox.i can click on any field employee.
|
|
|
|
|
amitamit099 wrote: when i click on 5 record in datagrid then all particular record of tht datagrid will selecten in different textbox
Question you are asking is not very clear . What you want to ask please make more clear to help you...
Let us know what exactly the problem you are facing.
|
|
|
|
|
hi,
I'm using web control : I have the rjs popcalendar control in a multiview control within an update panel
and it works correctly in some web pages and not correctly in other pages
despite of all pages that contain popcalendar are the same
why?how to solve this problem?
modified on Sunday, October 25, 2009 9:52 AM
|
|
|
|
|
If it works in some pages and not in others... there must be a reason for this. Check why it is not working... Inspect HTML to find out why it isnt working.
It is very hard to tell without actually using it... why it is not working. Also check if any javascript is missing in the page ...
|
|
|
|
|
I check javascript for pages, the pages are the same.what i can do?
what may cause this problem?there is any idea to solve the problem
|
|
|
|
|
i have a survey form, and anonymous can fill the form. i want one peapole can fill the form one time not more, with checking ip or other thing,
does any people have other idea?plz guid me
|
|
|
|
|
First of all, for every form fillup, store the IP of the client to the database. If the user comes again, it will be prompted the message "You have already filled up the Form"
But in that case, there is some problem... There are many organizations which uses common gateway server to connect to internet. If you outright stop it only using IP, you might loose other users using the same network in that organisation. So I would recommend, you should also place a browser cookie to the client which will determine that the user that filled up the form is in the same computer. (Provided your priority is to fill up most of the forms)
|
|
|
|
|
|
Hi all
I can only set theme at content page but at master page can not set the theme.
Thank you.
|
|
|
|
|
Do you mean you are trying to add the theme property to the masterpage directive? Then no, this is not supported. You can set the theme in the pre_init for any page, including a masterpage.
only two letters away from being an asset
|
|
|
|
|
Actually masterpage cant be called without content page. It is just a wrapper of every content page.
If this is ur requirement, you need to do this programmatically. Best is to create separate basepages(A class that is derived from Page) for your page. Just apply your theme on the Pre_Init of the page.
|
|
|
|
|
Hello Every body,
I need Asp.net templates for website contianing blog in it. I want to create a website in Asp.net.
Help Appreciated...
|
|
|
|
|
You've made many mistakes here. First, you tell us it's urgent. It's only urgent for you, not us. Second, your subject line is meaningless. Everyone who posts here wants ASP.NET help. Third, you don't want ASP.NET help at all, you just want someone to give you source code. Fourth, you seem to think that if someone gave you source code, you'd be creating a website in ASP.NET. Fifth, you think that we're all standing by, waiting to do all your work for you.
There's a jobs section on this site, you can pay for an ad to find someone to work for you. Otherwise, you have to work for yourself and ask specific questions when you get stuck in your work.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
In my page, I am usign a treeview. For some purpose i need to enabled and disable the treenodes. While disabling the treenode, I use the following code to change the text:
treenode.ChildNodes[i].Text = "<font color = Gray>" + treenode.ChildNodes[i].Text + "</font>";
while enableing, I put Black instead of Gray.
However, while viewing the page, it was Gray always. When I debugged, it is assigning both the color as follows:
treenode.ChildNodes[i].Text = "<font color = Black><font color = Gray>" + treenode.ChildNodes[i].Text + "</font></font>";
How to remove the grey colour while assigning the black color? Please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
I think there is no option for this in the Treeview Control. You need to extend the Treeview control and then override the RenderPreText to apply color.
|
|
|
|
|
|
Hi all i need a small help regarding gridview.
I will show some information on loading a page. When ever a user clicks on Edit or delete it should redirect to a login page. Only the login user can edit or delete the data. How can i do this.
|
|
|
|
|
By checking whether user is logged in or not on edit & delete click.
|
|
|
|
|
Can i have the sample code
|
|
|
|
|
Sure, but first tell me, what are you doing for Login functionality?
|
|
|
|
|
Just a basic login like this
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection Con = new SqlConnection(ConfigurationManager.AppSettings["sqlcon"]);
SqlCommand cmd = new SqlCommand();
cmd.Connection = Con;
string sql;
sql = "Select *from login where uname='" + TextBox1.Text + "' and pwd='" + TextBox2.Text + "'";
cmd.CommandText = sql;
Con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
Response.Redirect("Default.aspx");
}
}
|
|
|
|
|
This is not a proper Login.
You need to use either Session Variables or FormsAuthentication Class.
For more details, please use Google.
|
|
|
|
|
OH Great..!
First Try to read a good book..!
Did You Know abt forms authentication..!First try to read abt forms authentication..!
check the
protected void ConfirmDataGrid_ItemCommand(object sender, DataGridCommandEventArgs e)
{
if (e.CommandName ="edit")
{
}
}
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|