|
Hello ;
I added grid view in my web project
and added buttun feild and covert it to template feild
and every thing works ok
protected void Grid1_Command(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e)
{
String z = (String)e.CommandArgument;
int indexGrid = Convert.ToInt16(z);
String CommandNamew = e.CommandName.ToString();
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["colliersUAEConnectionString"].ConnectionString.ToString());
switch (CommandNamew)
{
//-------------------------------------------
case "CmdUp":
{
.....
.........
gridView1.DateBind();
}
the command excute and page post back to the browser and make change in database but on gridView dont appear data be same excpet u make refresh to the browser
...
I added gridView1.DateBind(); in the end of command above ^
and also tried to add page.Bind on page load event but nothing change
plz any sugestion
aj123
|
|
|
|
|
I don't know how you populate your datasource for you gridview, but there is a good chance that you didn't re-select the data from the database, so when you databind, you are binding to the old data. If you happen to be using caching you might be using cached data. Still the base problem is you need to get the data again from the db and then do the databind.
Hope that helps.
Ben
|
|
|
|
|
Hello all,
When I place an enum in the App_Code directory, it breaks intellisense for all other pages in my project. There seems to be no reason for it. I've tried renaming the enum and everything. Still, no intellisense. If I remove the enum, it returns. Has anybody got a workaround?
|
|
|
|
|
Did you try to rebuilt the project. I have noticed that sometimes Visual Studio's intellisense does not work when there are build errors.
|
|
|
|
|
I'm not real sure what's going on. It suddenly started working though... Hope it doesn't die on me later....
|
|
|
|
|
how to traverse in tree
vijaya
|
|
|
|
|
|
kvijayajyothy wrote: how to traverse in tree
By swinging on vines?
Sorry, couldn't resist.
Scott
|
|
|
|
|
hi
can i use the Java Screen Capture functionaly in mypage.aspx?
can i call the dll or not?
I need to capture the screen in mypage.aspx
will you please help me?
tamil
|
|
|
|
|
Hope the Article by Holzhauer Screen Capture[^] in CP will help you.
Regards,
Satips.
|
|
|
|
|
LOL - how will that help ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Didn't I answer this ? You cannot capture the screen with javascript. If a java applet can capture the screen then you can write one, that would no longer be an ASP.NET question.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi.
I want to show the content of a Datagrid in marquee mode ...
I mean the datagrid's content should cross over and repeats ...
what should I do ?
I tried putting datagrid in <marquee> code but it doesnt work.it just shows the complete datagrid. but not a marquee
for example I have some "News" in my datagrid. I want to show the title of them in a marquee...how can I do it?
the news are in datagrid and its correct but how to show the title of them in marquee??
do u know about it?
please help me
|
|
|
|
|
please help me
|
|
|
|
|
Hi i have two times...,
dim intime as datetime=09:15
dim outtime as datetime =16:00
How to compare the two times???,
The above one outtime is greater than intime...,
how to check that one, outtime is greater than intime like?,
and suppose
dim intime as datetime=20:45
dim outtime as datetime =16:00
This one intime is greater than outtime...,
how to check that intime is greater than outtime like?,
Plz anyone help me....,
Magi
|
|
|
|
|
Suprisingly with the operators '<' or '>'
|
|
|
|
|
Hi in my table i have intime and outtime...,
the format is:
intime will look 09:13 and
outtime will be 20:56 like..,
with the help of string datatype i stored this time in my table...,
now i want to compare the two times...,
which one will be greater than another like...,
means its 24:00 hrs format...,
so in mycase i want to consider 24:00 is the highest time and 00:00 is the lowest time like...,
Plz how to compare the two times...,
hlp me...,
Magi
|
|
|
|
|
if 16 > 9, then it's greater. If they are the same, then if 15 > 0, it's greater.
Or you can create two DateTimes, with the same date and your times, subtract one from the other and see if the DateSpan you get back is positive.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
ya i assigned the two string values in my datetime method
dim intime as datetime=09:00
dim outtime as datetime=20:00
now how u will check?
Magi
|
|
|
|
|
Not sure if this will work, you've not assigned a date, check in the debugger what happens. But, now you just subtract one from the other.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
No actually i checked like this format...,
For Each Maingrd As DataGridItem In dgrdmain1.Items
Dim intime As DateTime = Maingrd.Cells(3).Text 'InTime
Dim outtime As DateTime = Maingrd.Cells(4).Text 'OuTime
If intime < outtime Then
lblmsg.Text = "Day"
ElseIf outtime.AddHours(24) > intime Then
lblmsg.Text = "Night"
End If
Next
Exit Sub
but i am getting error msg like:
cast from string "24:00" to type 'date' is not valid like...,
Magi
|
|
|
|
|
Thanks lot...,
I got the output...,
Keep in touch........,
Magi
|
|
|
|
|
i have this button on my asp.net page, all i wanr with the button is to call a javascript function which is on a separate script.
how can i called a function on the script called ValidateControl from clicking a button
Thanks you vry much
|
|
|
|
|
Nothing different...
Like you are calling an inline java script function..
in page load give
Butten1.Attributes.Add("onclick","javascript:ValidateControl()")
thats all
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Thank you very much, it works fine
What you stand for, Put your life on
|
|
|
|