|
In your content page put your textbox and button inside an ASP:Panel. The ASP:Panel has a default button property. When set it is the button click that will fire when the enter key is pressed.
I didn't get any requirements for the signature
|
|
|
|
|
Hi All,
I am using the Ajax Auto Completer Text Box.But I am facing a problem,which is I want to pass the userid as a paremeter in my webservice,so it is possible through UseContexKey and ContextKey.
But I am not finding the properties as above in my AutoCompleteExtender. So what is the exact problem having this.Please suggest me!
Thanks and regards
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
in web service u can use DynamicContextKey.
and in autocomplete generally textbox's text is used for filtering.
|
|
|
|
|
Hi friends, I use a grid view for paging I write the coding like this.
form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" BorderWidth="2px" BackColor="White"
GridLines="None" CellPadding="3"
CellSpacing="1" BorderStyle="Ridge" BorderColor="White">
</asp:GridView>
</div>
</form>
try
{
con.Open();
com=new SqlCommand("SELECT [ProductName], [UnitPrice],[UnitsInStock], [QuantityPerUnit] FROM [Products] order by [ProductName]",con);
SqlDataAdapter da = new SqlDataAdapter(com);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
ds.Dispose();
da.Dispose();
con.Close();
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
The datas are displayed. But when i click on the 2nd number, it shows a error
The GridView 'GridView1' fired event PageIndexChanging which wasn't handled
Can anyone say where to handle this event?
|
|
|
|
|
Just do it
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi,
U need to implement "PageIndexChanging" event of GridView.
like:
GridView1.PageIndex =e.NewPageIndex
Regards
Anil Pal
|
|
|
|
|
Can you search on google?![^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
see this
Paging without a wizard (SqldataSource control)
[^][^]
Hope it Helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
code for login and password recovery control in asp.net
thank you in advance
|
|
|
|
|
Microsoft has done that for you. ASP.NET Login Controls Overview[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
grkrishna wrote: code for login and password recovery control in asp.net
Where is the code?
|
|
|
|
|
hi,
i dont think this questions needs to be posted here.
u can have such codes already available on web.
|
|
|
|
|
where these code is available plz give me link
|
|
|
|
|
grkrishna wrote: code for login and password recovery control in asp.net
Here is the code
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
nice code abhijit
|
|
|
|
|
hi .... i am using stored procedure to bind the crystal report, can any one help in adding parameters to stored procedure when binding it to crystal report.
|
|
|
|
|
Read the Report with Parameters section.
check this
This may helps you.
|
|
|
|
|
hi.
i have a website that contains a div with an iframe in it. the main window have tabs(buttons) by clicking them the iframe src is changed to a page of that tab. for example the "customers" tab is changing the src of the iframe to clients.aspx that contains a table of that customers and a few buttons for insert and delete that fires an ajax action and the table is updated via javascript.
the problem is when the user make actions in the iframe like deleting a customer , if he then clicks on the "back" button in the browser the iframe history is fired rather then the main window history. so if he deletes a customer and hit "back" than its like the last action is rolled back and the last record that had been deleted in js is showing up again.
|
|
|
|
|
use javascript to disable back button there.
|
|
|
|
|
The back button is loading from the browser cache. You can intercept the back button and force a refresh from the server. Another thing you can do is, turn browser caching off for the pages, then on back button it will be forces to reload from the server.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i have a web service , in it there are two beans customer and order,wen my web app calls the web service i create a customer object and and use it , but when i try to create an object of order it doesn't show in the list , what might be the problem both classes are public.
rservice is the refrence for the web service .
rservice.Customerbean customer = new rservice.Customerbean(); thhis works fine ,
|
|
|
|
|
Hi,
Just try to access the Order class member without creating the object.
bcz may it static class.
If problem still persist then try with remove the ref and add again.
Regards
Anil Pal
|
|
|
|
|
Hi,
I’ve a requirement to convert any type of file(.txt, .doc, .html etc) to pdf file.
I have a web page ConvertToPDF.aspx. It contains a text box and a button control on it.
I’ll type the full path of the file name(let it be C:\krushna.txt) in the text box and hit the button. Then it should convert to krushna.pdf and store in My Document folder automatically.
I’m using visual studio 2005. I’ve also Adobe PDF Printer installed in my system and set it as default printer. Also, in the PDF printer the default port is set to My Document\*.pdf
Can it be possible with iTextSharp or I need to go for some other method ?
Please guide me in this with detail code.
Thank you.
--Krushna Chandra Sahu
prfkrushna@gmail.com
|
|
|
|
|
yes u can use itextsharp.
u can also use crystal reports as there is a option to import the report in pdf format.
|
|
|
|
|
Hi,
I would like to know that which type of object would give better performance in case I want to work with sql server. Should it be OleDBConnection or SQLConnection?
Somewhere I read that SQLCOnnection can give better performance but I think at the sql server there is a SNAC (sql server native access client service) or a Net library which anyway consists of OLEDB and ODBC component. So instead if we use OLEDBConnection, wouldn't it be faster?
The next query I have is not related to original question but I request to clear my confusion by letting me know which one is better option to free these objects? Should these be freed by Marshal.ReleaseComObject or just closing the connection and then making them NULL?
thanks,
kMeena
|
|
|
|