|
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.
|
|
|
|
|
Hi
below is the snippet of code you can put in the code-behind to read the imgea...
string physicalImagePath = Server.MapPath("imagePathHere");<br />
Response.ContentType = "image/gif";<br />
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(physicalImagePath);<br />
bmp.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Gif); <br />
bmp.Dispose();
<< >>
|
|
|
|
|
|
hai
can any body help me in creating different shped buttons for a web form in asp.net
|
|
|
|
|
You can use asp:imagebutton.
<asp:imagebutton id="iBtn" runat="server" imageurl="img.jpg">
|
|
|
|
|
I am Developing a Web Application with ASP.NET 1.1
I have one project Folder which is virtual directory of IIS.
In this directory, I have one Folder named Photos in which I used to Store Photos. On my Web Page, I have a button named delete which I used to delete photo in the folder.
But when I click the button and apply the logic to delete the file, it raises an Exception that the access to the file is denied. I am using following code to delete the file. Please give me any suggestion.
FileInfo objectFile = new FileInfo(strFilePath); objectFile.Delete();
//This throws an Exception that Access to the file is denied on line objectFile.Delete()
Thanks,
Sandeep S. Sekhon
|
|
|
|
|
meybe You're IIs havn't Access To wwwroot Folder
make a property from wwwroot folder in the security tab Add IIs user And Get delete Access to IIs_WpG User
MHF
|
|
|
|
|
For me, you might grant access right to that folder for asp.net account....
<< >>
|
|
|
|
|
how can I grant Access right for the folder for the asp.net account.
Thanks,
Sandeep S. Sekhon
|
|
|
|