|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
hi,
when using placeholder we can inject a contol to a page wich the control is instantiated.pretend that a user has built a page wich is asp.net page (with asp.net controls and maybe asp scripts)but it is not saved as asp.net page or usercontrol on the server so it is in the sql and every time the user requests his page we want to load his page and render all of the asp.net controls in the page,like what it is in the cms applications,i want to know how can i do this ?
|
|
|
|
|
You can use the Page.ParseControl method to parse a string into a control, then add it to a placeholder.
---
b { font-weight: normal; }
|
|
|
|
|
hi there,
the point is what if i want to parse a complete asp page,is there any way to do this?
|
|
|
|
|
why? Change your design.
you might as well save it as an html page and just display it
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Actually, maybe look into web parts and build sections of the page
There would be no need to chache the page into the database.
If you need to then you would need to serialize all control states on the page. And really that doesn't make any sense to do it that way.
Change your design to save the values you need into a serialized object or the database.
That would be a much better decision.
Your not thinking an object oriented way.
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi,
in my asp.net 1.1 application, i am sending request to another site, getting response from there.
my code is
strUrl =" http://www.xyz.com/xyz.html";<br />
WebRequest request = WebRequest.Create(strUrl);<br />
request.Credentials = CredentialCache.DefaultCredentials;<br />
HttpWebResponse response = (HttpWebResponse)request.GetResponse();<br />
if(response.StatusDescription == "OK") {<br />
my problem is instead of Default Credentials, i want to give proxy userid, password to it. (because without proxy credentials i am unable to access the xyz.com)
anybody give me solution for this?
regards
GV Ramana
|
|
|
|
|
Hi buddy,
add the following code to supply ur username and password
WebProxy myproxy=new WebProxy("proxy server IP",port);
myproxy.Credentials=new NetworkCredential("user name","password","domain");
request.Proxy=myproxy;
regards,
abhishek:->
"If u believe in psychokinesis then raise my hand."
|
|
|
|
|
Hi everyone. I want to create a radio for my website. Can anyone please advice me how i go about creating one.
Thanks
|
|
|
|
|
What do you mean by Radio. Are you talking about radio button?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi there,
I'm creating my own blog...
how can I make permalinks on my site... so the url will be
http://www.somewhere.com/04/29/this_blog_rox.aspx instead of http://www.somewhere.com/readpost.aspx?id=11
any ideas?
thanks
Christian
|
|
|
|
|
Hello,
I have a Page that invoke a call to a WebService using C#.
I want to access some of the Profile properties in the WebService.
I tried to use "Context.Profile." .... (I don't know how to continue from here)
I will appriciate any help
Thanks,
Yossi
|
|
|
|
|
Hi,
I and displaying a form with some dynamic details to user.
I am also showing two buttons namely : Print , Save.
So, on the click of Save button i want to create the current page in PDF and send it to client side for save.
How can this be achived.
Thanks in advance.
Deepak Surana
|
|
|
|
|
You can use sharpPdf class lib its open source and you can dowload it from sourceforg web site. However it dint hav any fi=unctionality to convrt HTML - to- PDF but you can make same layout using its Table, Row column like property
Nobody is perfect i'm Nobody
|
|
|
|
|
Hi!
I have an array of custom classes. When I try to set a variable with one of the array item, I get this error:
Microsoft VBScript runtime error '800a01a8'
Object required: '[undefined]'
I guess I'm not far off but I must be missing something. Here's my code ( Important lines are in bold ):
class CReviews
private m_IDProd
private m_aReviews
public sub GetReviews(IDProd)
i = 1
m_IDProd = IDProd
mySQL = "SELECT * FROM ProductReviews WHERE IDProd = " & IDProd & ";"
set rs = conn.execute(mySQL)
if not rs.eof then
m_aReviews = Array( i )
rs.movefirst
do while not rs.eof
ReDim m_aReviews( i )
Set review = New CReview
review.GetReview( rs("ID") )
Set m_aReviews( i ) = review
i = i + 1
rs.movenext
loop
end if
end sub
public function GetReviewCount()
GetReviewCount = UBound( m_aReviews )
end function
public function GetReview(nIndex)
if nIndex > 0 AND nIndex <= GetReviewCount() then
GetReview = m_aReviews( nIndex )
else
GetReview = nothing
end if
end function
end class
class CReview
private m_ID
private m_ReviewEn
public sub GetReview(ID)
'do stuff
end sub
public property Get ReviewEn()
ReviewEn = m_ReviewEn
end property
end class
sub GetReview(IDProd)
Set reviews = New CReviews
reviews.GetReviews( IDProd )
response.Write( reviews.GetReviewCount() )
'This line generates the error
Set review = reviews.GetReview( 1 )
if review <> nothing then
response.Write( review.ReviewEn() )
end if
end sub
Thanks!
Luc
-- modified at 13:21 Saturday 29th July, 2006
|
|
|
|
|
if( not review )
-- then error ----
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
???
|
|
|
|
|
sorry i dont do VB
if( review is nothing ) then
-- do some error code ---
end if
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
No, the problem is that I can't retreive the object from the array. The returned object is always null. So I don't know if I'm storing the objects correctly in the array or if I retreive the object correctly...
Thanks!
|
|
|
|
|
LukeV wrote: Set review = New CReview review.GetReview( rs("ID") ) Set m_aReviews( i ) = review
Try this:
Set m_aReviews( i ) = review.GetReview( rs("ID") )
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi everybody
I’ve developed a web application project by VS.2005 and .Net FrameWork 2.0. And its database is MS Access 2003.
I use just AccessDataSource component for database tasks. And now I have a problem. The database has password. But there is no such property with AccessDataSource component or at least I didn’t find any way.
I didn’t use any oledbconnection component or such to set the database password. Just I used AccessDataSource component.
What should I do?
Thanks a lot.
Thanks
Rastgar
-- modified at 7:14 Sunday 30th July, 2006
|
|
|
|
|
Hi there,
If you do a simple research on MSDN, you can easily find the answer saying that the AccessDataSource does not support working with an Access database which is protected by a password. In this case, you should use the SqlDataSource control instead which is also able to work with Access, and allows you to set the connection string.
In addition, there are a couple of off-topic thoughts that come to mind when I was reading your two posts above:
+ Sometimes, people don't answer your question, it's just because it's simple enough, and it can be answered within a second on MSDN or Google, they assume you are able to do this simple research.
+ From the time you posted your question, I guess that it's Saturday, and you may probably know that people mainly spend this time for thier families after a hard working week, they rarely hang out on the forum, so you can wait until Monday when they come back. If it's really urgent for you, you can seek for help from the Microsoft support service with a reasonable fee.
+ I also think that you don't want to be rude in the eyes of other CP members , do you? So you should not abuse the forum as you still have many more alternatives for example other forums on the internet, MSDN .....
Just a couple of humble opinions.
|
|
|
|
|
Hi,
I am creating a dynamic image in my page and getting the image in Bytes.
Now how do i show those bytes to the Image control as it only takes ImageURL.
Thanks in advance.
Deepak Surana
-- modified at 9:23 Saturday 29th July, 2006
|
|
|
|
|
Hi there,
IMO, you just set the Imageurl to an aspx page and in this page you just write the image's data as binary stream....
<< >>
|
|
|
|
|
Hi,
Thanks..
But can you please give some snippet in C# to do the same.
|
|
|
|