|
Have made the ascx file?
Create the object of Usercontrol at runtime and give the id at same time.
You can have one public property that will be set at the runtime according to ID by your function.You can put it in custructor or pageload.
Cheers!!
Brij
|
|
|
|
|
Ravi_21 wrote: i want to create a user control which are create dynamically
You want to create User Control (.ascx ) Dynamically or Want Add User Control Dynamically ?
Have a look on this[^]
Hope this will helps you.
|
|
|
|
|
Hello Friends,
I'm using FileUpload control for uploading the image in edit command for updating the existing image. And it's working fine but as i put the code inside the UpdatePanel it doesn't work and throws an error "Object reference not to an instance".
So how can i use the FileUpload control of a DataList in UpdatePanel.....
|
|
|
|
|
AFIK , you can't use file upload control inside update panel.
|
|
|
|
|
It can be used. There is something called PostBackTrigger . Check this[^]
|
|
|
|
|
Hey Navaneeth, Thanks for information . I was not aware of that.
Thanks Again !!!
|
|
|
|
|
Glad to know it helped
|
|
|
|
|
Thanks Navaneeth, But it's doing postback so where is AJAX. We can also do it without UpdatePanel and whats its advantage over simple code(without UpdatePanel)....
|
|
|
|
|
.NET- India wrote: But it's doing postback so where is AJAX
By postback do you mean the page is refreshing? Fileupload control can't work using AJAX. So it needs a postback to send the data.
|
|
|
|
|
Dear All,
I am trying to display records of text data and some image in repeater but requirement is if the record is without image then text should align on left site,
But if the image is in record then first image should display on left side i mean left alignment and text should display beside with image but on he right side of image.
Now i need some help how to display these records in repeater item tag with if condition.
if image if true in image class then first image display on left then text display on right if no image in record then simple text display on left
kindly tell me what should i do.
Sajjad Ali
|
|
|
|
|
|
Look into System.Net.WebClient class. Work with DownloadString[^] method and save the string with .xml extension.
|
|
|
|
|
Hi I am using ASP.Net 1.1,I am not finding this namespace.Please suggest.
|
|
|
|
|
Thanks You It is working.
|
|
|
|
|
in my application i want to open a database cursor.can you plz help me out.
thanx in advance
|
|
|
|
|
A database cursor is in the database, not asp.net. I suspect you are actually looking for the DATAREADER.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
SQLServer database cursor? AFAIK, you can't do that. If your database is oracle, you can do this. BTW, you are in wrong forum.
|
|
|
|
|
hi i have to make a vate rating system
like
there are 1,2 3,4 5 point out of 5 point that a user can vote
in my DB a table that have field TotalVote, Rating
so any one will help me how i calculate rate
the answer should like this ( 3.6 / 5) total 14 votes
|
|
|
|
|
Sum up the total vote and divide by the number of votes, i.e. take the average. I assume the 5 is the maximum you can allocate.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
This is nothing but simply average calculation.
|
|
|
|
|
As the others have said, you just add up the vote scores and divide by the number of votes. You do know how to compute an average, don't you?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
This is plain astounding.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I m done a web page in that 6 para and 4 picture is there. that one done asp.net. Know Load the picture first then after completed picture then text will wt I do plzzz help on this.
|
|
|
|
|
I read your post many times. Honestly, I couldn't get what you are saying. Could you rephrase your question so that we understand.
|
|
|
|
|
I created one web page.
that web page contains 4 picture <asp:Image> and 6 para <p>.
when page loading or at time of refreshing. The Images are come first and para like that can i make it.
Like sequence manner.
|
|
|
|