How to get the value of a hidden server control on client side.
I mean i have a
I m setting its value on the page_load event of my web page.
How to do that.
My code is
If the HiddenControl is part of some usercontrol i mean am ascx then you need to get it ClientID.This is because ASP.NET change the ID of control that have a
runat="server" . you can see the ID of your control by viewing the Source of the page.check that the ID of your Hidden control in page source is "ChkNewEdit" or
some thing like "ctl_100_serer_xxx" .
2 you r calling the function on page load. but at that time the control that you r accessing in the function have not been created yet. you should register your script tag at the end
instead of writing function just paste your function source code in script tag
don't call the function at page load . it will call automatically when the page is rendered.
try this it will work
i have problem in asp.net application i.e, i taken one drop down in that taken languages like english,spanish,portchugal like that and also taken text area ,application is when i select one language,that language can written in text area
I want to create a table using java script, The user should enter the number of rows to be created in the txtTable when the user clicks, create table button, the it should create the table on the form(using java script)or any language.
I am using crystal report in ASP.NET 2.0 and I want to show a report which has many columns and it doesn't fit in one report,so I need to use sub report.Can anyone please tell me how do I start??Do I have to create 2 reports one is main and other sub???
Hi am using DetailsView and ObjectDataSource to insert records in database.
detailsview contains dropdown,texbox and Listbox controls.. I selected multiple items from Listbox and now if I click on Insert button multiple records has to be inserted in database. Is this possible...? can u send me the code how can I approach? pls see the following code..
while trying to put code for listbox it is inserting last record only...
// Code behind file
protected void DVDoctorActivity_ItemInserting(object sender, DetailsViewInsertEventArgs e)
string strDoctor = ((DropDownList)((DetailsView)sender).FindControl("ddlInsDoctor")).SelectedValue;
e.Values["DoctorId"] = strDoctor;
e.Cancel = false;
foreach (ListItem listitem in ((ListBox)((DetailsView)sender).FindControl("lbProducts")).Items) // it is inserting only one record.. (last selected item)
string strProductId = ((DropDownList)((DetailsView)sender).FindControl("ddlInsDoctor")).SelectedValue;
e.Values["ProductId"] = Convert.ToInt32(strDoctorId);
i use form authentification as below
<forms name=".EHR_COOKIE" loginUrl="/EHR.WebUI/LoginForm.aspx" protection="All" timeout="180" path="/"/>
so no one can get through my system without login through LoginForm.aspx.
let's say A person logged in through the LoginForm.aspx and then there is a menu on the top that will popup another browser so that A person can log in with different account.(we need this function because the client required) But as you know if A open a window from the logged in page, it will share sessions even though it looks like A has two different accounts with two diffent browses. The sessions will mix.
Does anybody know how can i separate the two accounts?
I know that it will be totally simple if A person log in and if he wants to log in with different account just click on iexplore icon and log in again. i mean this can be another solution if i can have two form authentification. <-- but i couldn't find the way.
This error means that you have ' somewhere in the middle of a column you are trying to save. Like if you are saving the person's name and their name is "o'neil" that would blow up. So you might need to check your strings for ' and either remove them or replace them with a " or something like that.
i have one issue that i couldn't solve it, maybe anyone can help me:
i use disconnect datset to work with my data source.
i have 2 tables, one is visitors and another one is orders, the relation between these tables is an id field which is an increment field.
visitor can enter to the website, fill his details and order something.
first step i fill his details in a new row in the database.
now i want to fill a row of his order in orders table, there i have to set his id but i dont know the id because i have just update the visitors table and his id is automaticlly assigned, what can i do...