|
i retreive the data from the database in binary format and render in ashx handle.
so i dont know how to generate that particular page
if it is possible its solves my problem
|
|
|
|
|
hi
there will be both public and private keys in a strong name
how private key in a .snk file can be easily compromised.
Can u please explain me the exact approach for this?
|
|
|
|
|
How to Add Handlers for dynamically created web controls in ASP.net ?
I have tried below code but..event is not getting fired..Can anyone help it out..?
<pre>For iCounterVar As Integer = 0 To sAnswers.Length - 1
Dim t As New TextBox
tblCell = New TableCell
tblRow = New TableRow
t.Text = sAnswers(iCounterVar).ToString
AddHandler t.TextChanged, AddressOf MyTextChangedEvent
tblCell.Controls.Add(t)
tblRow.Controls.Add(tblCell)
tblQuestion.Controls.Add(tblRow)
Next
Protected Sub MyTextChangedEvent(ByVal sender As Object, ByVal e As System.EventArgs)
lblMessage = New Label
lblMessage.Text = "Cuaght TextChanged :" & DirectCast(sender, TextBox).Text & " In " ' & DirectCast(sender, TextBox).Parent.ID.ToString)
PlaceHolder1.Controls.Add(lblMessage)
End Sub</pre>
|
|
|
|
|
Are you assigning handler to Dynamic Control On Page Load Event (ie- On Every Postback) ??/
|
|
|
|
|
No i am not assigning any handler in page load,
in page load i am just calling the method to create these controls, evrything is in the method itself and that code i have alredy pasted.
Thanks for your quick reply on this.
|
|
|
|
|
If you are calling a method in Page_Load it automatically means you are in Page_Load.
|
|
|
|
|
Read this :
http://www.youcanlearnseries.com/programming%20tips/csharp/SetEvents.aspx
As far as I suggest, add eventhandler in Pre_Init than Page_Load
|
|
|
|
|
|
Spamming again in forum.....
|
|
|
|
|
Kindly stop posting these messages. If people want your solutions they can look on your web site.
modified on Thursday, November 5, 2009 7:22 AM
|
|
|
|
|
Hey,.... I have a better solution than your link.. .
DbNull.Value.ToString returns empty string.
|
|
|
|
|
Your (so-called) tips sucks. Get lost from here you dumb.
|
|
|
|
|
Hi Experts
I Have used stringBuilder To Fetch Data.....i want to bind that data to any of my html control which is on .htm page....Please Help
In Short i want to just Find a Control on my html page and Bind the data to that control
Please Help.........
modified on Thursday, November 5, 2009 4:28 AM
|
|
|
|
|
Please elaborate in detail what exactly you're trying to do.
|
|
|
|
|
I want to generate HTML Report....
i.e when a button is clicked on .aspx page , i want to open a html page and display the fetched data from the database....
Thanks in adv..
|
|
|
|
|
Rohit,
Which type of html control u have on ur page?
Why r u not using SQL Server to fetch the data.

|
|
|
|
|
Hi Deepak
I have to just display data on any control on HTML page
m using Sql 2005
|
|
|
|
|
Rohit,
First clear me that what page u r using .html or .aspx
If U r using .aspx page,then data can be bound to dropdown list from db by using SqlDataSource.
Is it so?

|
|
|
|
|
m using .aspx page and on the button click of .aspx page i want to display the html page , and on that html page display the data...
http://www.codeproject.com/script/Forums/Images/smiley_cry.gif
|
|
|
|
|
Do like as...
On btn click use Response.redirect("name of page to redirect to") method.
U will go to .html page. In this method u can use Query string of related data to fire query on html page to fill the data to the control on this page.
Is there any control on .htm page which support data binding property?

|
|
|
|
|
then why are you using stringbuilder use data source like datatable, fill it with the data and bind it to the controls' source.
|
|
|
|
|
i want to bind that data to an html control which is on another html page,and my html control is not on aspx page....then how should i bind ???
|
|
|
|
|
How are u managing the call to the Page?
U need to pass the data/parameter from calling page to your called page and u can handle it on the page as per your need.
|
|
|
|
|
m calling response.redirect(index.htm)
ya i need to pass data/parameter....but could not do so.....
|
|
|
|
|
are you getting any error?
|
|
|
|