|
i am using vs2005 to develop a web application, however the stylesheets do not load when i open it in vs but loads fine when i use dream weaver or when i run the application. does anyone know y???
many thanks
|
|
|
|
|
I am trying to use the gridview control to display data on page, however the data is not displayed. I am not getting any build error but its just not displaying the data. Any ideas??
<asp:gridview id="GridView1" runat="server" ><br="" mode="hold"> <asp:accessdatasource id="AccessDataSource1" runat="server" datafile="~/glaxodata.mdb">
SelectCommand="SELECT [ID], [OrderCode] FROM [glaxoAll5032007OrderDetail]">
Can anyone spot what i may have done wrong???
Many Thanks in advance.
|
|
|
|
|
You need to set DataSourceID on the GridView:
<asp:GridView ID="GridView1" runat="server" DataSourceID="AccessDataSource1"></asp:GridView>
|
|
|
|
|
Many thanks!! that worked.
|
|
|
|
|
Hey friends.
I want to create image from html string.
I tried alots but I did not get any solution yet.
Can any body know how to create image from html string.
Thanks in advance
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: I want to create image from html string.
I am not getting what you are trying to do. How you can create image from a HTML string ?
|
|
|
|
|
N a v a n e e t h wrote: I am not getting what you are trying to do. How you can create image from a HTML string ?
Graphics has DrawString method to draw image from string.
But in my case I have string in html format.
You can better understand by this Link
I am working on image editor.In this page I need to put one Button to view image.So I want to create Image from innerHTML of main div Tag.
Please visit above link.
please don't forget to vote on the post that helped you.
|
|
|
|
|
I don't think that DrawString() can parse HTML tags and draw the output. If you just want to draw plain text, remove HTML tags and draw. If you want rendered output of that HTML, then you need to use other GDI methods to create that and draw it.
|
|
|
|
|
Hey.Thanks for replay.
I have done it using Winnovative dll.
Thanks again
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi
I am using a GirdView under one colume is hyperlink. I want that when i click the hyperlink then display msgbox. "Do you want to Open the --- page" Yes Or No. if Yes then goto another page.
Please help me.
|
|
|
|
|
Here is a simple piece of javascript which prompts before redirecting:
<script type="text/javascript">
function go(pageTitle, pageUrl){
if (confirm("Do you want to Open the " + pageTitle + " page?")) {
window.location = pageUrl;
}
}
</script>
<a href="javascript:go('Cool', 'cool.aspx');">Go to New Page</a>
You should be able to integrate this into your GridView hyperlinks.
|
|
|
|
|
This function is take a two argument OK or Cancel but i want YES or NO
|
|
|
|
|
The confirm box is part of the browser so you have limited control over it from javascript.
If your know that your target audience is exclusively IE then you can check out this solution[^].
For a more browser independent approach you can implement your own popup, here is an example[^].
The disadvantage with this approach is that popup blockers will block it.
You can also use the ModalPopup[^] control which is part of the ASP.NET AJAX framework.
|
|
|
|
|
what is the maximum character length of an hidden field it can take
|
|
|
|
|
A normal HTML input text can hold 2147483647 values. So I guess hidden field can also hold that
|
|
|
|
|
Hello All
i have an asp.net page.i have saved all the page data in a text file like
__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTE5MDA2OTYyMQ9kFgI
CAw9kFhICAw8PFgIeBFRleHRlZGQCBw8PFgIfAAUJMS8xMC8yMDA4ZGQCCw8PFgIfAAUFTm9v
MTFkZAIPDxBkEBU...
now i want to display this data (__VIEWSTATE) when the page run for the 2nd time.
Actually my requirement is user will save the data.when 2nd time user will come to that page user will see his previous saved data.
plz help me in this regards.
thanks in advance.
Sujit
|
|
|
|
|
Sujit Mandal. wrote: have an asp.net page.i have saved all the page data in a text file like
__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTE5MDA2OTYyMQ9kFgI
CAw9kFhICAw8PFgIeBFRleHRlZGQCBw8PFgIfAAUJMS8xMC8yMDA4ZGQCCw8PFgIfAAUFTm9v
MTFkZAIPDxBkEBU...
now i want to display this data (__VIEWSTATE) when the page run for the 2nd time.
Actually my requirement is user will save the data.when 2nd time user will come to that page user will see his previous saved data.
You can't load viewstate data from a string. If you want to show it again when user visits, store the values in database/session, and reload it.
|
|
|
|
|
Hi, i have a requirement that i need a text like submit, click etc on
Image button. How can i do this in asp.net...
G. Satish
|
|
|
|
|
Create image which contains the required text and set to image button.
|
|
|
|
|
But, i need to give the text dynamically, rather creating many buttons.
Is there any way to create the Image buttons with text dynamically
G. Satish
|
|
|
|
|
Satish - Developer wrote: But, i need to give the text dynamically
Use classes in GDI to draw text over the image.
|
|
|
|
|
You can use a LinkButton control to display both text and an image:
<asp:LinkButton ID="LinkButton1" runat="server" Text="<img src='images/submit.gif' alt='' />Submit"></asp:LinkButton> You can also specify a CssClass if you want to set a background image.
|
|
|
|
|
Thank you for your response..
But it is giving the text on side of the image...
I need text on the image...
Can u say any other method for this??
G. Satish
|
|
|
|
|
Satish - Developer wrote: Can u say any other method for this??
As I stated in my previous post, you can also specify a CssClass if you want to set a background image.
|
|
|
|
|
yes, i tried by using CSSClass by specifying background image but it not getting clarity.
G. Satish
|
|
|
|