|
Can you plz specify the code for it
Bye
|
|
|
|
|
In ItemDataBound event:
Dim img As System.Web.UI.WebControls.Image
img = CType(e.Item.FindControl("ImageName"), System.Web.UI.WebControls.Image)
img.ImageUrl = "Image/Check1.ico"
http://www.programmingknowledge.com/[^]
|
|
|
|
|
Hi everyone,
I'm having trouble with a datagrid that is supposed to insert data. But one row has to insert data in the data base using Radio button. So I created two buttons one of Bad Mood then the other one is Good mood. when one is selected, the data is to be inserted into the database. this is working well. But the problem comes when it comes to images, thes images are smilies. When good mood is selected I want a smiley to be inserted into the database too. So I created the smilies but when and made them invisible so I wrote this code to be able save them in the database but I'm getting two errors. Where could I be wrong?
document.getElementById("imggm").style.visibility = "hidden";
function ChangeSmile()
{
if (document.getElementById("rblmood_0"))
{
document.getElementById("imggm").style.visibility = "none";
document.getElementById("imggm").src = "laughing.gif";
}
else
{
document.getElementById("imgbm").style.visibility = "visible";
document.getElementById("imgbm").src = "sad.gif";
}
}
The errors are:
Invalid token '(' in class, struct, or interface member declaration
Invalid token '=' in class, struct, or interface member declaration
(This error appears on the line: document.getElementById("imggm").style.visibility = "hidden";)
Thanks.
|
|
|
|
|
Quit cross posting, dont you do this everytime you post?
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
By the looks of those errors your trying to compile and run this client-side Javascript server-side.....
|
|
|
|
|
Hi,
I want to know how do we use Digital signature to login into a website. I want something simliar to what is provided in the website www.irctc.co.in
Kindly open this site in IE and click on Agent Login. Here a pop asks for a certificate. This certificate is usually provided by a security device like a USB.
How do we create such an application.
Rohan
|
|
|
|
|
|
Hi All,
I am working with the tree view control for a secure site , which has numerous nodes.
But i get an error when i click on a node to expand it.I can see this only attimes(I guess it happens only when i don't give time for a node to expand and click on some other node to expand).
The error is like:-
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page
Can anyone tell me how to prevent it from happening
Thanks & regards,
Jeeva
|
|
|
|
|
For whatever reason, when EnableEventValidation="true" you have to wait for the page to finish loading before you click on a control in the page. Otherwise you get an errror. In your page directive you could set EnableEventValidation="false".
|
|
|
|
|
Hi Friends,
After inserting the datas into the database the string should be cleared. but in my application for every refreshing it gets inputted again the previous value. pls how to clear those variables once the data has been inputted... pls help me
|
|
|
|
|
<br />
if (!ispostback)<br />
{<br />
}<br />
|
|
|
|
|
You will need to redirect the user to a page after submitting even if it is the same page. Also you will need to have some type of key that you can verify against to prevent this. If a user is on Page A and submits it goes to the DB, if they are returned to Page A or hit the button more than once it is going to be inserted over and over unless the Primary Key or Composite Key prevents this.
Also if you redirect them to Page B and they hit back in their browser and submit again, well there is another potential insert.
Google Search[^]
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
I'm using a ValidationSummary with ShowMessageBox set to "True". It's
working fine with internet explorer but when it comes to Mozilla
Firefox it's not the same. No window is opened.
What can I do to make it work properly?Is there a way to do it?
Regards.
Tasleem Arif
|
|
|
|
|
I wasted hours trying to use the .net valdiator controls but they always gave me more trouble then they were worth. I suggest taking the time do write your own validation. Validating data with server side code is so much easier to write then client scripting. It also gives you so many more options to display information about the data to the user.
|
|
|
|
|
thanks for suggestion,but this site part of large site and that site uses that method i mean display message in Message Box using asp:summaryvalidator control, it works fine for IE but problem is with FireFox.
Regards.
Tasleem Arif
|
|
|
|
|
There are some options out there to edit the JavaScript that Microsoft uses for it's validations. You will probably need to look into that and edit it to use different options when it detects non IE browsers.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Hi there
I want to move between two pages without using the response redirect option pared with the eg. ?variable=0 . I dont want the variable to be displayed in the ULR menu. What would be the best way of doing this?
Thanks.
|
|
|
|
|
Use the Session object. On page 1:
Session["variable"] = 0;
Response.Redirect("~/Page2.aspx");
Then on page 2:
int variable = (int)Session["variable"];
|
|
|
|
|
Is there another way of doing it without using Session variables?
|
|
|
|
|
http://www.developer.com/net/asp/article.php/3299641[^]
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Thanks man, that really help, it was exactly what i was looking for!
|
|
|
|
|
Hi Laxmikant Lad, please tell how to compare the value by using code...its urgent please reply to me
|
|
|
|
|
Why couldn't you reply on your previous thread?
|
|
|
|
|
What code? Which language? What kind of value?
if (value1 == value2)
{
}
??
|
|
|
|
|
private void Page_Load(object sender, System.EventArgs e)
{
if (this.IsPostBack == false) {
ddlChooseAlgo.Items.Add("");
ddlChooseAlgo.SelectedValue = "";
}
}
private void cmdEncryptValue_Click(object sender, System.EventArgs e)
{
txtShowValue.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(txtGetValue.Text, ddlChooseAlgo.SelectedValue);
}
Here's the coding for encrypt the data,please anyone tell me how to decrypt the encrypted data
|
|
|
|