|
Thanks friends i have done
Piyush Vardhan Singh
|
|
|
|
|
we are creating stocks oriented application.we have retrieve the data from database for every 2 minutes
|
|
|
|
|
Basheer wrote: we are creating stocks oriented application.we have retrieve the data from database for every 2 minutes
Basheer wrote: urgent,please help us
You don't know how to post a question. Read the guidelines first.
|
|
|
|
|
--> Add a Meta tag in page
Here content describe a second(as you want to retrieve the da
|
|
|
|
|
Ajax Timer Control Should be better for that.
if we use this meta tag It will Refresh the whole page . and If some one Click on "Refresh" button manually then what will happend ???
Thats whay Ajax Timer Control is the best option !!!
|
|
|
|
|
Ya,It is depend on that which thing you use.
|
|
|
|
|
i m try to design stocks application now i need retrieve data from database for every one minutes
sg
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
ramesh_imayam wrote: i need retrieve data from database for every one minutes
Use Update panel that comes with AJAX toolkit. Use a timer to update the contents at the specified interval.
|
|
|
|
|
protected void Gdv_Dept_List_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex >= 0)
{
e.Row.Cells[2].Attributes.Add("onclick", "javascript:m(this);");
}
}
I have a grid.If i select a row in grid then the add button(it is an input button) will be disabled .That means only modify button will be view when selecting the row.But due to postback occurs in the grid selection the disabled controls will be see after the postback.How i overcome it.The disabling code is a javascript and it is given in rowdatabound event of the grid.Please help me.
|
|
|
|
|
Hi,
that will occurs because on every postback you are not firing this event of datagrid row databound.
You have to call this event on every postback.
Then you can overcome with this problem.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
I checked this code like
if(IsPostBack==true)
{
codes given
}
but it will not disable the button
|
|
|
|
|
Hi,
then there must be some another problem.
Try to figure out your code again ?
In which case its working and in which not..
Try this...
in page load just call function to fillGrid...
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
I will bind the grid in the page load itself.But in rowcommand of grid code is written to bind the grid row into the fields avialble.But when i selct the row the add button wil be disabled .thats my query
|
|
|
|
|
Hi,
so now you have to get one viewstate or session variable in that you have to get value that you have clicked delete or add button. on rowcommand set below code.
Like on delete click --- session["click"] = "delete"
on add click --- set session["click"] = "add"
Now check in datarowbound..
if session["click"] == "delete" then disable add button and visevesa...
Hope it will help you...
Bind grid in page load.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Dear Friend,
Your gridview your Add button is templatefield and given name is "btAdd". you are executing javascript while click on this button which run ok. Now if you want to disable while selecting row you can write bellow code::
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Button bt=(Button)e.Row.Cells[2].FindControl("btAdd");
bt.Enabled = false;
}
}
now let say while editing raw you want to enable Add button than write this code::
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
bindDataList();
Button bt = (Button)GridView1.Rows[e.NewEditIndex].Cells[2].FindControl("btAdd");
bt.Enabled = true;
}
I hope this will help you.
Thanks
"Good Thing Goes With Good People..."
|
|
|
|
|
i want to disable minimize button from a popup window.
am using ,
var win=window.open("Index.aspx","_blank","toolbar=no, location=no, titlebar=no,minimize=no,linkbar=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes, width=1024, height=768, copyhistory=no")
for displaying popup window.
i dont want to disable maximize window.
Plz help.....
i dont want to use showModalDialog
|
|
|
|
|
Hi,
try this Link[^]
And another link is this[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Sorry sir i didnt get u..
can u just show an exampl
|
|
|
|
|
Check the second link. Try to use that concept.
|
|
|
|
|
Actually i need to disable that button..
i tried on both links..
the first one ive tried earlier..
the second works only on button click also that is for minimising window on button click.
also ive googled a lot ..
is ther any other soln...
thanks nd regards...
|
|
|
|
|
use window.showModalDialog
This will show a popup window without Maximize and Minimize button
Read This link
showModalDialog Method
[^]
and Check the Last Example [ in bottom of the page ] . This will realy help you.
|
|
|
|
|
Hi,
try this links...
Link1[^]
Link2[^]
Or you can do one thing.
Just pop up plain window and then put one image like maximize button and onclick of that Maximize the window using javascript...
Hope it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Suppose, if user logged in using login page, then his credentials are checked in database and he is valid user then sessions are created for this user like session[user] = 'john'
we can use in any page to verify
if(session[user]!=null){}
But in Forms Authentication, we can do this in login page. Verify is the method to check the credentials in data base.
if (Verify (txtUserName.Text, txtPassword.Text))
{
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False);
else
lblMessage.Text = "Invalid login name orpassword specified...";
}
Once cookie is created here, then how can i use in all the pages
i used session in all pages starting -- if(session[user]!=null){}
using formsauth how can i do the above statement
G. Satish
|
|
|
|
|
i'm insert data and image into table for sql 2ooo now i need to using webform the image load particular time period then automatically change next image from retrieve database so give sourcecode for c#
|
|
|
|