|
my situation is ,i have a user control(uc.ascx) consists of one label. i would like add more than one of same user control to aspx page (show.aspx) during runtime.
For example:
at show.aspx.vb file
for i as integer 0 to 3
....
1. declare user control
2.assign value to the label of user control, (let say the assign value is james,brian, kelly)
...
next
so this for loop will declare three user control and assign the different value to the label.
so, the output on the screen will be
james ( from user control 1)
brian ( from user control 2)
kelly ( from user control 3)
i have this concept , but i dun know how to code it , anybody can help me ? thanks !
Best regards,
Chee ken
|
|
|
|
|
What have you done so far? What part are you stuck on?
|
|
|
|
|
at user control file:
Public Function GetLabelText() As Label
Return Label1
End Function
at aspx.vb
Dim a As uc
a = New uc
a.GetLabelText.Text = "testing"
Panel1.Controls.Add(a)
then the page display this error message :
Object reference not set to an instance of an object.
Best regards,
Chee ken
|
|
|
|
|
Normally, you would just make the property text, there's no reason to show the entire label.
|
|
|
|
|
'Public Property GetLabel() As String
' Get
' Return Label1.Text
' End Get
' Set(ByVal value As String)
' label1.text = value
' End Set
'End Property
if i use this property set, also cause the same error page.
Best regards,
Chee ken
|
|
|
|
|
It seems like you didn't place this into the user control. Then add an accessor in the page.
|
|
|
|
|
i am the beginner for asp.net, can you show me the code ? thanks.
Best regards,
Chee ken
|
|
|
|
|
Once we placed web service related files in app_WebRefrences folder,what do we have to do at deploying time to use that web service ??
I have no problem when running the site in my local pc but when I deploy it it does not work Tell me required steps.
|
|
|
|
|
have you created the proxy?
WSDL http://myserver/directory/MyService.asmx?WSDL
|
|
|
|
|
I have placed these files in my app_WebReferences folder.(notice the extensions)
Eshop.disco
Eshop.wsdl
Reference.map
Reference.cs
and also placed "Reference.cs" in my app_code folder.
I dont know wether one of them is proxy file or not.
what should i do with the proxy file ?
|
|
|
|
|
Please Tel me the steps I need to take to use a web service in asp.net2 ???
|
|
|
|
|
I have a page in which I have added another page in a table's . I want to use a control of <iframe> page in that page. How can I do this. Please help me.
|
|
|
|
|
Don't post a question more than once. We're able to see it.
Create a page property that references that control. Then access that property from the other page.
|
|
|
|
|
Can any one tell me about AJAX and a simple program to Update a record using AJAX in ASP.Net 2003?
Advance Thanks and regards,
Jegastar
|
|
|
|
|
|
Hi All,
My problem is to find the size of an Image file using JavaScript. I have some codings for that. But because of ActiveX objects, my code is not working. How to enable ActiveX objects in ASP.net or Internet Explorer(?) Help me please...
Regards,
---Jegastar
|
|
|
|
|
http://support.microsoft.com/kb/317392
|
|
|
|
|
|
Hi Friends,
I am facing a very uncommon problem in my web application in asp.net (using vb.net). I am taking screen shot of screen using "BitBlt" Function of Library "GDI32", after getting screen shot this is stored in a Bitmap object and this object (after converting to Byte array) is stored in SQL Sqrver Database Image Field.
Now on another asp.net page i retrieve this Byte array and again store it on Bitmap object and then i write this object on the page using Response in this way:-
---------------------------------------------------------------
Dim ms As MemoryStream = New MemoryStream(imgbytes, 0, imgbytes.Length) 'imgbytes is the Byte array containing Bytes from database
Dim im As Bitmap = Bitmap.FromStream(ms)
Response.Clear()
Response.ContentType = "image/jpeg"
im.Save(Response.OutputStream, ImageFormat.Jpeg)
---------------------------------------------------------------
When i run my project on localhost everything work in perfect way.
Now my problem is that, when i upload this on my server and run this project a Black Image is displayed in place of saved image.
There is Link to this project.
http://www.tciconferences.com/OnlineBusinessCard/categories.aspx[^]
If any one has any idea how to capture screen of client computer.
Please help me.
Jitendra Kumar
Application Programmer
|
|
|
|
|
The screen shots are probably executing in the context of the IIS user.
I, for one, would be worried if this functionality actually worked. What's to stop a website from taking screenshots of everyone's desktop that visits their page?
|
|
|
|
|
Hi,
I'm trying to implement a WAP front end for a Website, but the website i am trying to wrap requires an active session for users to use it.
I've created the WAP pages on a seperate server and have the requests sent to a worker process that processes the live Webpages. However, using the WebRequest and WebResponse, i can't seem to maintain an active session (I'm re-creating a new instace for each request).
How would i go about retaining a session between multiple requests? OR, how can i use a single request object to make multiple consecutive request?
Any examples or articles would be appreciated.
Cheers
Tris
|
|
|
|
|
You must retrieve the CookieContainer of the first response (HttpWebRequest object) and retain the CookieContainer for the subsequent requests
|
|
|
|
|
If you are using HttpHandler, then you need to have IRequiresSessionState interface (marker interface) to be implemented.
Then the automatic WebRequests would pass through.
|
|
|
|
|
hi friends.........
can anybody help me
my page taking longtime to postback in the meantime i want to display an Hourglass(waiting cursor)..
pls give me some idea
thnx in advance
|
|
|
|
|
There are many posts for this exact question. This is obviously homework.
|
|
|
|