|
button1_click() is a event.
abc() is just a normal function being called in this event.
event handlers can be found in your initialize component of your code behind page of your webform.
gauthee
|
|
|
|
|
hi all
i want to display in the address bar even after navigating to next page
i.e.
dd.com/login.aspx
dd.com/dd.aspx
i want to show only dd.com
where ever they navigate
how to do it ..
thanks
in adavance
|
|
|
|
|
You can add the login page to the documents list in IIS. So that typing dd.com will actually show dd.com/login.aspx to hide other pages i assume there is no way.
Laddie
|
|
|
|
|
|
They call it like 'URLCloaking ' right? You can load a default.aspx in the root, which contains frameset. Top frame is 0% and Next Frame is 100%. Your app should load in the bottom frame.
|
|
|
|
|
ok
thanks for it i will look in to that
bye
|
|
|
|
|
Or frames or IFRAME, million ways to do it.
Another way is using Server.Transfer.
|
|
|
|
|
I prefer an XMLHttp and filling a DIV.
|
|
|
|
|
Just a pity most approaches breaks the browser's Back button
|
|
|
|
|
|
hi all,
I have a problem in diplaying an memory bar or status bar for particular user for example,...
i yahoo mail or gmail their will be bar showing the memory usage smilar to that hast obe done in asp.net 2.0 using C#
thank u
santosh
|
|
|
|
|
santoshkumarB wrote: I have a problem in diplaying an memory bar or status bar for particular user for example,...
And that problem would be ......???
|
|
|
|
|
Dear all,
i am facing a problem in searching by using a user control with three conditons they are
Selecting the criteria,
Selecting the State,
Selecting the City
in each and every page i want to place the user control.
i want to search the criteria based upon the state and city and display the content in a grid.
please help me in this regard
Thanks and Regards
sai krishna
|
|
|
|
|
Hi sai,
Please post more details of your issue. What is the issue u r facing any error messages and above all what exactly you are trying to do.
Thank you
Laddie
|
|
|
|
|
Hi Laddie,
My problem is i am having two dropdownlists of selecting the criteria ,select a state and the other one is city.
if i select the criteria like video and state like Newjersey it should display the videos belong to Newyork State and if i enter the city also then search should based upon all the conditions.
Hope u understand
if any misspelt
please send me reply
thanks and regards
sai krishna
|
|
|
|
|
Let us start from the assumption that the data which need to be filtered is there in a data table named myDataTable.
Now
DataView dataView = new DataView(myDataTable);
dataView.RowFilter = "Type ="+DropDownList1.SelectedText+" City="+DropDownLlist2.SelectedText;
DataGridView1.DataSource = dataView;
DataGridView1.DataBind();
Let me know if it helps.
Laddie
|
|
|
|
|
An ofcouse twist the rowfilter logic to suit your needs
|
|
|
|
|
Thanks laddie,
For ur concern. but i am fetching the data from database
not using any datatable i am simply fetching the count of the state avialable or not is it right procedure or not.
or else i can explain it more breifly like
criteria - dropdownlist
state - dropdownlist
city - text
i'll select criteria first and then state, if i want to know city wise then i enter city. these are the conditions
so please help me
thanks and regards
sai krishna
|
|
|
|
|
hi there,
i have a problem that how can check the value of datagridview is null ??
if i write
if (DataGridView1[5, a].Value.ToString() == null)
or
if (DataGridView1[5, a].Value.ToString().Contains (null))
or
if (DataGridView1[5, a].Value.Equals(null))
all gives the same error
Object reference not set to an instance of an object.
for temporary i did
string aaa = DataGridView1[5, a].Value + "D";
if (aaa.Trim )== "D")
its working but i dont like this way
some know any other good and short way ??
Becoming Programmer...
|
|
|
|
|
Hello,
Have you tried:
if (DataGridView1[5, a].Value != null)
{
//Go on
}
All the best,
Martin
|
|
|
|
|
damn..!! why i dont think it before anyway thank you guys below and above this post
Becoming Programmer...
|
|
|
|
|
Did you try this?
DataGridView1[5, a].Value == DBNull.Value
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
Hi,
According to the exception it is quite clear that CLR bumped into a null value while evaluating
"DataGridView1[5, a].Value"
what means "DataGridView1[5, a].Value.toString()" if "DataGridView1[5, a].Value" is null ??
You might not assume DataGridView1!=null nor a!=null nor DataGridView1[5, a].Value!=null
though the following test should solve your problem :
if (DataGridView1[5, a]==null or DataGridView1[5, a].Value==null)
{
///
}
Hope it helps
|
|
|
|
|
if (DataGridView1[5, a] == null)
|
|
|
|
|
Hello,
Vasudevan Deepak Kumar wrote: if (DataGridView1[5, a] == null)
I guess this will not help,
if this is true:
for temporary i did
string aaa = DataGridView1[5, a].Value + "D"; if (aaa.Trim )== "D")
its working but i dont like this way
All the best,
Martin
|
|
|
|