|
One thing is you can try is on the page init set the event of the button in your user control on each postback.
I didn't get any requirements for the signature
|
|
|
|
|
Hello,
I've a div and a link. And i want to show the div if the it's not visible and hide the div if it's shown. It's working fine in Normal web page but not working in Content Page of Master Page
Throwing a "Object Required" Error
modified on Friday, June 6, 2008 7:00 AM
|
|
|
|
|
i am having dropdown column in my gridview.when i am freezing the header it is going up i am using z-index property in my css class but i am not able to apply this to dropdown .pls anyone can help me
modified on Friday, June 6, 2008 6:46 AM
|
|
|
|
|
How many values are in the dropdown?
There could be so many it slows your system down
We are not a Code Charity
|
|
|
|
|
|
do u have solution for this problem
|
|
|
|
|
hi,
I m working in asp.net 2005 with c# language. in that i hv used gridview . i hv 3 dropdownlist and 4 checkbox and textbox in edit mode.when i edit gridview the text box value shows proper database value where as dropdownlist doesnt bind the database value. in the same way checkbox value is stored as 1 or 0 in database. if the value is 1 ten the checkbox of gridview shud be checked.this is also not firing..
so pls help me to do these things
thanking you,
k.priya
|
|
|
|
|
What is the best way to retrieve data from SQL Server 2005 for a performance hungry web site? I was thinking of using sqlconnection+datareader+stored procedures but I'm not keen on the idea of writing sqlconnection every time. I like using typed datasets but I really need the maximum performance for the site and I don't know about it's performance. What do you think? Should I go for my own DAL? Or are there good DAL components that I'm not aware of that I could use? Any opinion is appreciated.
|
|
|
|
|
Just declare one connection string at the top of the page
Then use stored procedures
We are not a Code Charity
|
|
|
|
|
Your best bet is to use a sqlconnection and datareader. You biggest bottleneck will often be your sql queries. So if you have data that doesn't change very often use System.Web.Caching...
Do not use typed datasets, they are a performance killer. If you want you can use class objects to represent your data and use generic lists instead of typed datasets.
Also, you can call one stored procedure to get all of your data. Just return multiple result sets and use reader.next
I didn't get any requirements for the signature
|
|
|
|
|
Hi
I have a datatable having 10 records. I want to insert the 10 records to a table in a database using stroed procedure from my front end C#. How to do? can any one help me please?
Thanks in advance
kesavan
kesavan
|
|
|
|
|
Can you explain a bit more:
Are the values to be entered through a form
if so just create a loop and loop the insert for each new entry
We are not a Code Charity
|
|
|
|
|
put the code to insert one record in a loop (upto records count)
|
|
|
|
|
i have a requirement in asp.net
i bind the data to gridview and by using command field template i added delete option to each row
of gridview control.
my requirement is ...when i click on delete to delete the record from gridview...one message box has to
come with delete and cancel options and should ask me (are you sure you want to delete the
record).after i click on delete then the record has to delete.
i have tried to delete the record as i said above.but problems comes here.
when i click delete or cancel buttons in message box.the record is deleting.only when i click on delete
the record has to delete.
please anybody reply me
|
|
|
|
|
What are you using as the confirm message box? A javascript bit of code?
We are not a Code Charity
|
|
|
|
|
<asp:templatefield headertext="Delete">
<itemtemplate>
<asp:linkbutton id="lnkB" runat="Server" text="Delete" commandname="Delete">
Try this ......
|
|
|
|
|
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<span onclick="return confirm('Are you sure to Delete the record?')">
<asp:LinkButton ID="lnkB" runat="Server" Text="Delete" CommandName="Delete"></asp:LinkButton>
</span>
</ItemTemplate>
</asp:TemplateField>
Try this ......
|
|
|
|
|
i have this below problem while executing a transaction.
I am trying to insert into two different tables with differnt values on the same btn_click event.It is taking the second table value not the first table
I am posting my code here-----
Dim mycommand As New SqlCommand
Dim myTrans As SqlTransaction
myTrans = myconnection.BeginTransaction()
mycommand.Connection = myconnection
mycommand.Transaction = myTrans
Try
mycommand.CommandText = "insert into tbl_student(st_cd)values(1)"
mycommand.CommandText = "insert into mst_year([Year],Start_Date,End_Date,year1)values('2002-2003','4/1/2002','4/12/2002','2005')"
mycommand.ExecuteNonQuery()
myTrans.Commit()
Catch ex As Exception
myTrans.Rollback()
Response.Write(ex.Message)
Finally
myconnection.Close()
End Try
In the above code values are insertig in mst_year table only,not in tbl_student.
I want to save in both tables.how it can be done?
kissy
|
|
|
|
|
Surely this
Kissy16 wrote: mycommand.CommandText = "insert into tbl_student(st_cd)values(1)"
is causing your problem...
We are not a Code Charity
|
|
|
|
|
thanks for ur response.
so what to do to solve my problem.suggest me with some example so that i can use transaction to insert values into differnt tables.
plzz help me out.
thanks in advance.
kissy
|
|
|
|
|
How can i get a snapshot image from a video file programatically? e.g. get the first frame of the video file.
Is there any free library i can import? in .net with c#
|
|
|
|
|
|
still putting question as their subject
We are not a Code Charity
|
|
|
|
|
namespace for following this one? using .net with c#
mPlayerWrapper mPlayerInstance = new mPlayerWrapper();
|
|
|
|
|
Still putting question as a subject
We are not a Code Charity
|
|
|
|