|
have u bind ur grid view on next button click event
|
|
|
|
|
Hi friends
I am working on ImageEditor Application.
I need to get hexacode of that image color on mouseover event in textbox.
like as color picker.
thanks in advance
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: I need to get hexacode of that image color on mouseover event in textbox.
I don't think that it is possible. A color picker works with hard coded hexa values. Corresponding values for the colors will be hard coded in an array and used when it is clicked. But getting the color of the mouse pointed area looks impossible to me using javascript.
|
|
|
|
|
Hi Guys,
i am using a "session" after the user is login in the page.The user is pressed (Ctrl + N) or goto File and open an new window after login , i want to remove the session in the opened window and redirect to login page. how can we remove the session,once the new window(same page) is loaded.
d.sengottuvelu
|
|
|
|
|
Usually it is controlled by browser, so we won't be able to change it.
|
|
|
|
|
Hi All,
I need to display Textbox on Combo, I mean I have to overlap the controls in ASP.NET. can any one tell me how to do this??
Thanks in advance...
|
|
|
|
|
ASP.NET 2.0 wrote: I need to display Textbox on Combo
Strange, have you tried using CSS positioning ? VS editor allows you to drag and place the controls wherever required, is it ?
|
|
|
|
|
Let me try, I have not tried this... Thanks for the reply...
|
|
|
|
|
Hi Navaneeth,
I did something like this but didnt manage to get the combo and Textbox id <td> tag
.text
{
position: absolute;
top: 213px;
left: 287px;
height: 15px;
width: 150px;
border: 1px;
}
.combo
{
position: relative;
height: 22px;
width: 180px;
top: 10px;
}
Is there something missing in this??
|
|
|
|
|
Hi,
I am using this combo and textbox with Ajax CascadingDropDown and its not getting enable because of it.
Please tell me how do I do this???
|
|
|
|
|
Check the Layout -> Position -> absolute option.
Hope this should solve ur problem
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
I need to show an confirmation message inside a button click event but only for a particular condition.
Not always it should show when the button is clicked. Inside the click event handler i will call a method and depending upon the return value of that method i need to show a confirmation message.
How should i do it???
Kindly provide me an idea???
Thanks,
Srikanth
|
|
|
|
|
Use this function
and call the string required.......
public void MsgBox(String str)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("");
sb.Append(@"alert( """ + str + @""" );");
sb.Append(@"");
HttpContext.Current.Response.Write(sb.ToString());
}
R A J A S E K H A R
|
|
|
|
|
if(condition==true)
{
this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "key", "alert('Condition is true')", true);
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
i dont want an alert message.
If the condition is true,say
private void button1_click(object s,EventArgs e)
{
if(Condition == true)
{
//show confirmation messagei.e with yes no option;
//If user click yes continue
// if user clicks no return from the event
}
}
Thanks,
Srikanth
|
|
|
|
|
Sri_3464 wrote: //If user click yes continue
// if user clicks no return from the event
I think this might not be possible. When user clicks ok button, page will be posted again AFAIK. Have you tried this ? Replace the alert with confirm
|
|
|
|
|
Try this:
public void MsgBox(String str)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<script language = 'javascript'>");
sb.Append(@"if(confirm('Are you sure you want to delete your selection(s)?'){ return true; } else{ return false; })");
sb.Append(@"</script>");
HttpContext.Current.Response.Write(sb.ToString());
}
|
|
|
|
|
so try this
if(condition==true)
{
this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "key", "return confirm('Condition is true')", true);
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
That is not possible.
The server code is executed on the server to create the response, then the response is sent to the browser. The server code in the page is executed completely, then the response is sent to the browser. If you put code in the resposne that shows a confirmation message, that will not be shown until after the code in the page has been run to completion on the server.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hello every body,
I am using sessions in my web-based application. After completion of all transactions i want to sign out. When i click sign out and copy the URL and paste it in browser. It is showing the contents of signed-in page.
Even I have used "Session.RemoveAll();" in global.asax file when the session ends
But If i click refresh and paste the URL it will not allow to show the contents of signed-in page.
How to refresh page once when i click sign-out
Can any body plz..help me...
|
|
|
|
|
srajasekhar wrote: I am using sessions in my web-based application. After completion of all transactions i want to sign out. When i click sign out and copy the URL and paste it in browser. It is showing the contents of signed-in page.
You are seeing a cached preview of the page by browser. But it won't allow you to proceed further since you are checking session on page_load .
srajasekhar wrote: How to refresh page once when i click sign-out
This is not possible. If you add refresh code in the page, all the time it will refresh, not only when signing out
|
|
|
|
|
I want to retrieves value in textboxes using SQLDataAdapter. whatever row i want to retrieves
i am using this command Select * from mytable where Name="+TextBox5.Text"
|
|
|
|
|
dikshant@p-dd.com wrote: Select * from mytable where Name="+TextBox5.Text"
SqlAdapater is having a Fill() method which fills a DataSet. Use this to fetch data from database.
|
|
|
|
|
I was trying to make my .aspx pages secure so I set access levels on the web.config
<authorization>
<deny users="?">
I have a login screen which uses a .css file but cannot access the .css file. What can I do?
|
|
|
|
|
hi,
how can i place the checkboxes inside the listbox and these checkbox values should come from Database..using asp.net
and if i select the multiple checkboxes ..those ids should be inserted in to the database..
how can do these things in asp.net
Ramesh
|
|
|
|