|
GetThumbnail will work perfectly with images which have thumbnails embedded. But I always prefer to use Graphics and Bitmap classes as it gives full handle to resize the image.
|
|
|
|
|
Hai,
What are the benefits of using IEnumerator over other Loops??
Thanks in Advance,
Sunil Nair
|
|
|
|
|
Suryanairg wrote: What are the benefits of using IEnumerator over other Loops??
It provides way to iterate through the collection using a foreach.
|
|
|
|
|
Hi all,
Can you please let me know a data bound control in ASP that can bind to a result from a stored procedure and refreshes the result by itself?
I think i may need a code in Javascrpit for refreshing data by itself?
More detailed :
I want an asp page which displays all the orders from a sql server table.
I want to be able to refresh this page automatically whenever a new order
is inserted into the SQl server table.
Please advice
Thank you
modified on Thursday, January 24, 2008 6:38:07 AM
|
|
|
|
|
write code in one function call that function every time after u done of modifcation.....
example:
public sub binddata()
'below is ur code
.................
............
grdview1.Datasource=ds
grdview1.Databind()
..............
............
end sub
call this bindata() function after your modications(add , update.......)
please send feed back to : sk.haneef@gmail.com whether it is usefull or not to improve my services to codeproject.com
This is haneef.............................................................
|
|
|
|
|
Thank you very much.
Let me explain what i exactly need :
Is there a way to automatically refresh a control on the page without the user generating an event? For example, can I refresh a datagrid on a page every 5 seconds?
Thank you very much for your help.
|
|
|
|
|
if u want to refresh for every second use this code
if u want to refresh for every
5 min use this code and it will redirected to this url http://www.lowefamily.us/
<META HTTP-EQUIV="refresh"
content="1;URL=http://www.lowefamily.us/">
place this code head tag in ur aspx page
example:
This is haneef.............................................................
|
|
|
|
|
in a gridview i have dropdown and a button in each row.
on RowCommand event i have passed the id of the row as CommandArgument and getting it. How will
i get which option the user has selected in dropdownlist. i had populated the dropdownlist in the pageload event. How to get the selected dropdownlist on click of the button on individual rows.
Please can anyone help me
|
|
|
|
|
Dim i As New Integer
For i = 0 To griview1.items.count - 1
'below line find your dropdownlist in grid line by line
Dim dropdown As DropDownList = CType(griview1.items(i).Findcontrol("dropdownlist"), DropDownList)
Dim lstDrp As String = dropdown.SelectedItem.Value
Next
litdrp give u each line dropdown selected value write accoding your requirement
please send feed back to : sk.haneef@gmail.com whether it is usefull or not to improve my services to codeproject.com
This is haneef. send feed back to sk.haneef@gmail.com
|
|
|
|
|
hi fileupload html control i need only select option..,
In that enduser cant type instead of browse file...,
How to do that
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
Why? Some users will be happier typing.
|
|
|
|
|
That's how HTML upload control works. But AFAIK, if you type instead of selecting, it won't post the form. Have you checked it ?
|
|
|
|
|
Hi Friends,
I have one doubt,in datagrid i having four columns name,phone,email and designation,in email column i m entering number of email ids so the grid getting extend ,it should not extend how to wrap it.Kindly tell me please how to do.
Thank You
Take Care
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Hi,
In datagrid go to propertybuilder. Goto Format Tag and under columns, select the email column and under email column go to items and you'll find the wraptext check box on the rightside of the pane. check that check box then the text gets wrapped.
Bhanu
|
|
|
|
|
Regular Expression to validate description
allowing multi line.
thanks #
You get the best out of others when you give the best of yourself.
|
|
|
|
|
|
I want to give server side validation.
when I enter Description about Restaurant
It should be allowed new line also.
like-
description:
this is my dream.
fine restaur.
nice one.
and should not be allowed special characters like - #@$%...
thanks to reply
please help me.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
\A[a-zA-Z0-9.\n\s]*$ Use this expression.
|
|
|
|
|
|
what do you know about serach engines by asp or other
try to find out and give with the uniserver then I will apreciate you..!!!!!!
|
|
|
|
|
girmay wrote: what do you know about serach engines by asp or other
try to find out and give with the uniserver then I will apreciate you..!!!!!!
|
|
|
|
|
hi all,
got a nasty one. Trying to get the selecteditem that a user clicks in an gridview, however the gridview is in an update panel. At first i thought the problem was with the session state - but what actually happens is the update panel does a postback sends everything back to the server but the server only sends back whats in the update panels.
The main problem is when a user clicks the button, this causes an asynchronous postback the event fire in a different order to normal so i detected the button that was pressed after the page load event has fired and therefore miss capturing from session.
Has anyone solved this?
Here is my code: -
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
<br />
Dim selectedItemID As Integer = CType(Session("SelectedItemID"), Integer)<br />
<br />
End Sub
Protected Sub itemsGridView_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles itemsGridView.RowCommand<br />
<br />
Try<br />
<br />
Dim selectedItemID As Integer = CType(Session("SelectedItemID"), Integer)<br />
'Check for custom CommandName Argument<br />
If e.CommandName = "SelectItem" Then<br />
<br />
' Convert the row index stored in the CommandArgument<br />
' property to an Integer.<br />
Dim index As Integer = Convert.ToInt32(e.CommandArgument)<br />
<br />
' Retrieve the row that contains the ImageButton clicked<br />
' by the user from the Rows collection.<br />
Dim row As GridViewRow = itemsGridView.Rows(index)<br />
<br />
' Get a handle on ImageButton clicked<br />
Dim imgbtnItem As ImageButton<br />
imgbtnItem = row.Cells(13).Controls(0)<br />
<br />
<br />
selectedItemID = row.Cells(0).Text<br />
<br />
'Session("SelectedItemID") = selectedItemID<br />
<br />
End If<br />
Catch ex As Exception<br />
MsgBox(ex.Message.ToString, MsgBoxStyle.Information, "ItemsGridView RowCommand Error!")<br />
End Try<br />
<br />
<br />
End Sub
|
|
|
|
|
i have a girdview inside a panel, i have include css
.TblHeaderFixed
{ position:relative;
top:expression(this.offsetParent.scrollTop-2);
}
in GridView i have inclued as shown
HeaderStyle-CssClass="TblHeaderFixed"
i find the header fixed but it creeps out of the div or panel in which the grid is placed. The DataRow of the grid however remains within the div. but only the header is out.
Note this same concept works in .net 2003 but header creeps out in .net 2005. please help.......
|
|
|
|
|
I have a project which consist of updatepanel. In that panel i have a popup
Inside popup I have text boxex which are validated using required field validator. In the same popup I have save button.
Actually I those validator doesnt work.
When I click save button with one text box empty I post the page and save the balnk data of that popup.
Actually I need to remain in same popup in any text box is empty.
I have browse the page in IE and firefox but It doesn't work.
please tell me what the problem and Its solution.
BUT In my friends computer It works well.
|
|
|
|
|
Hi all
I am developing function upload file by asp.net
But have problem when i choose file > 5MB after that click submit
My IE or Firefox have error:
Firefox:
The connection to the server was reset while the page was loading.
* The site could be temporarily unavailable or too busy. Try again in a few
moments.
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
IE :
Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.
Diagnose Connection Problems
|
|
|
|