|
Hello,
In my first web application I have the problem with my dataset.
In the Page_Load I fill my dataset and I see the information in the Datagrid.
Next I click the button and want to do something with the information. But I don't see it. DataView.count returns 0. What should I do?
Thanks for help
Tan
|
|
|
|
|
Are you messing up with the dataset on every Page_Load call? You should just fill the dataset if the page isn't being refresh:
if (!IsPostBack)
{
// load in here your dataset
}
|
|
|
|
|
No I load my dataset inside the block !IsPostBack.
|
|
|
|
|
Set a break point in your Page_Load event. You should find that your datagrid is being loaded during the initial event int the !IsPostback block. However, when you click a button on the page it is causing a postback, which will cause this block of code to not execute.
To solve, in your case, move the code where you bind the datagrid to a datasource out of the !IsPostback block.
only two letters away from being an asset
|
|
|
|
|
Hi ,
I want to run a powerpoint slide show in a ASPX with some buttons like auto,next forward and so on.
Is is possible that we can show the slide show on the asp.net page so that the user cannot download the presentation, and can only view it online.
Thanks.
Deepak Surana
|
|
|
|
|
No - you'd have to write your own pages to show still images which you then feed yourself to the user. You're not going to get any animations, unless you write them with flash or SVG or something.
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 everyone,
i have one field in my table of database like "display" it is varchar data type.
it contains only true or false value.
now
in my webform, I m using 2005 C#
in repeater control
i have put this code,
<asp:image runat="server" id="imgdis" imageurl="~/images/attachment.png">
like this it doesnt work, it gives error like "String was not recognized as a valid Boolean."
same code works perfectly in .NET 2003
please help me
regards,
ASIF
|
|
|
|
|
What if you make your tag call a method in the code behind, pasing in the dataitem, so you can do the cast in C# code ? Then you can also see the data, to confirm that it's only ever true/false ( I doubt it is, this should work )
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 )
|
|
|
|
|
Hy.
In my first App. I hab a DataView where i concat a string for the Rowfilter. After that I returned the DataView
I exicuted it and it worked.
Now I have to sent the result via a Webservice.
The first Prob was that the WebService doesn´t know the DataView so I changed it into a DataTable.
Now I have the problem that I return a DataTable, and the changes from the filter are not in it.
data.RowFilter = filter;<br />
<br />
return data.Table;
where data is a normal DataView and filter is just a String.
So here is my question:
How do I get the result of the rowFilter() ???
Thx Cheers
Sorry! Sorry!
Just did it! After one hour work!
If someone is interested in this here is the code:
data.RowFilter = filter;<br />
<br />
System.Data.DataTable table = new System.Data.DataTable();<br />
table= data.ToTable();<br />
return table;
It isn´t nice I know, nut what the hack
Cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
|
Don't Repost.
Regards,
Satips.
|
|
|
|
|
Hi Satips,
if u know the solution of this please help me out
Thanks-
Supraja
|
|
|
|
|
hello friends I m using following javascript for opening a new window
"<script language='javascript'>"+ "window.open(' " + sPath + " ','myWindow','location=0,status=0,scrollbars=0, width=580,height=470,top=150,left=250');</script>;";
this code is working fine in mozilla but creating an error in Internet explorer
error is popup window blocked.
I m working in asp.net2.0 with c#
Regards,
Rahul
rahul saini
|
|
|
|
|
Just De-activate the Pop-ip Blocker and try it in IE.
Or just double click on the Image tehn it will not pop up.
Regards,
Satips.
|
|
|
|
|
Hello Satips,
Thanks for your help.
But is their any other way that ie does't block our java script
because how can we change every body ie settings.
Regards,
Rahul
rahul saini
|
|
|
|
|
Hi Friends,
I am using asp.net with c#.I am new to designing cretaion and verifying digital certificates.i need to verify client certificate with root certificate .in that i was struck with verifing the publickey.i am able to dispaly the Thumbprint and publickey of the certificates but i am unable to verify that Thumbprint and publickey.
It is greatful to give an example which is help to me
Cheers,
Happy Coding
|
|
|
|
|
hi all,
I need to access the web service which is been deployed global web service.
OR
How can i deploy my web service as globa resource so that anybody in this world ca access it
if anyone knows give the steps or examples to achieve it.
thank you all in advance
With regards
Senthilraj K
|
|
|
|
|
I thought if you deploy the webservice in a public webserver, anyone can use the web service.
|
|
|
|
|
Hi,
I am unable to clear TextBoxes in panel. Generally I am using the following code to reset controls in webpage.
private void Reset()
{
foreach (Control control in Page.Controls)
foreach (Control childControl in control.Controls)
{
if (childControl is TextBox)
((TextBox)childControl).Text = string.Empty;
if (childControl is RadioButton)
((RadioButton)childControl).Checked = false;
if (childControl is CheckBox)
((CheckBox)childControl).Checked = false;
}
}
In it i have changed Page.Controls to Panel1.Controls, but its not working.
Please let me know how to reset all controls in Panel.
Regards,
JJ
|
|
|
|
|
can any tell which control is used to display posted messages in codeproject forum?
|
|
|
|
|
|
while binding the data with gridview with the values of array the result comes in a single line.how i give coloumn names for the grid?
-- modified at 8:04 Monday 18th June, 2007
|
|
|
|
|
hi!
dear i want a textbox that always type Capital Words i.e ABCDE. even CapsLock would be on or off. plz help me
|
|
|
|
|
Maybe if you get the typed string and say .toUpperCase(), or how it is called and set it to the box. But I can´t think of how you can do this in real time.
cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
javascript
=========
function UPPER()
{
var text = document.getElementById("textBoxId").value
document.getElementById("textBoxId").value = text.toUpper()
}
call this function in onchange event of textbox in client side
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|