|
Hi guys I tried applying graphics through skin using the way presented in this site http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx
It worked with asp .net 3.5 but with 4.0 I didn't work. When I viewed the page source I get
for asp.net 3.5
and i get
for asp.net 4.0
It seems asp.net 4.0 doesn't replace ImageUrl attribute with src when rendering
My question is: do I have problem with asp.net 4.0 that I need to repair/reinstall or is it something else?
|
|
|
|
|
Hi,
Are you missing runat="server" attribute in img tag?
<img id="image" runat="server" src="~/App_Themes/test/Contoso.gif" style="border-width:0px;">
ImageUrl is the property of asp:Image (Image control). So, you could also write like:
<asp:Image id="MainContent_Image1" runat="server" ImagerUrl="~/images/Contoso.gif" />
Hope this will help.
|
|
|
|
|
no i am not missing anything i tried it with asp.net 3.5 and worked but i dint work with asp.net 4.0
does it work with you when using 4.0?
|
|
|
|
|
thanx for the help i managed to solve it.
i dunno what was my real problem ... but i started from scratch and it worked this time :S
|
|
|
|
|
hi
i face following problem in publishing the website.
Error 97 The type 'IqSiteWeb.CustomControls.DonationAgencyList' exists in both 'c:\Users\dell\AppData\Local\Temp\Temporary ASP.NET Files\iqsiteweb\5dc5d18b\b10a84ef\App_Web_jhddkwxc.dll' and 'c:\Users\dell\AppData\Local\Temp\Temporary ASP.NET Files\iqsiteweb\5dc5d18b\b10a84ef\App_Web_utdgqfe5.dll' C:\ProjectList\Kei Versions\KEI-WebSite\IqSiteWeb\Donation\DonationView.aspx 33
i tried a lot to surf the net and get the solution but i dint get any solid solution......
|
|
|
|
|
This sometimes occurs, especially in a development environment where multiple deployments may have occurred.
Delete the temporary internet files.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Check your solution . This is happen because of naming convension. Check that you have given different name for Class file and Page Name.
|
|
|
|
|
Hi all, I am trying to group regular buttons like we can do radiobuttons. is there any way we can group regular buttons like radio buttons.
thanks,
|
|
|
|
|
Group them how? You can place the buttons in a div, a table, a repeater, or any number of ways. Please be a little more specific.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Sorry I forgot to mention that I am truely new to web app. I don't know which one is the best approch, but the way I have is I have a table and put a button in a cell. For example, in a row I have two cell and both the cell have a button called "back" and "next" when I run the app these two buttons are little far from each other. even though I align them to right.
what I want is to put the buttons side by side.
<tr>
<td align="right" colspan="3">
<asp:Button ID="pageThreeBackButton" runat="server"
style=" height: 30px; width: 50px"
Text="Back" onclick="pageThreeBackButton_Click"/>;
</td>
<td align="right">
<asp:Button ID="pageThreeSubmitButton" runat="server"
style=" height: 30px; width: 50px"
Text="Submit" onclick="pageThreeSubmitButton_Click" />
</td>
</tr>
|
|
|
|
|
So you are not really concerned with grouping buttons as much as positioning them.
Table layouts should not be used for positioning nor should inline styles be used. Use CSS in an external file for positioning and applying other styles. This way you can apply the style to an entire class, button, and have it apply to all, not set each button individually. The CSS class are also reusable across your project.
If you are unfamiliar with this then you need to step back and do some research before diving into the technology.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thaks for your feedback. I will try my best to learn ASAP.
|
|
|
|
|
If you google something like "blueprint css" there is a site that has developed a .css framework that I found quite useful when initially figuring out layouts by divs rather than tables. It has for download various .css files and example pages that are a good way for the uninitiated to examine various layouts by use of divs and css etc. May be worth a look. The css files are a useful basis, with a bit of modification, for a lot of what I typically want to do.
|
|
|
|
|
davidnz wrote: If you google something like "blueprint css" there is a site...
Good information but would it have hurt you to do this http://www.blueprintcss.org/[^] ?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Trust me, if I bother coming on this site again I wouldn't bother saying anything instead.
|
|
|
|
|
I agree with Mark, more information is needed. What are you trying to achieve with grouping buttons?
Are you just trying to group for looks or are you trying to achieve some sort of functionality with the grouping?
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
Create a DIV and place them in there using CSS, that way you can manipulate as you see fit, and have it repeatable on many pages.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Hi,
I have written in web.config for SessionTimeOut, but it is not working. It is always taking previous session even if after logout.
Thanks in Advance
|
|
|
|
|
|
Try clearing the session while logging out.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Elena2006 wrote: . It is always taking previous session even if after logout.
What code have you written during Log out. Try Session.Abandon() during logout. and in page load, you need to check the session value for null or not.
If you are using Browser back / forward button to navigate you have to clear the cache from there.
|
|
|
|
|
Use Session.Abandon() method to clear session.
write below code on your logout button's click method :
Session.Abandon();<br />
Response.Redirect("default.aspx",false);<br />
|
|
|
|
|
Session.Abandon();
Response.Redirect("Default.Aspx");
This can workj for you.
|
|
|
|
|
use Session.Abandon();
// ♫ 99 little bugs in the code,
// 99 bugs in the code
// We fix a bug, compile it again
// 101 little bugs in the code ♫
|
|
|
|
|
|
Dear All,
In my Asp.net MVC website, im showing a list of users in a html table.
Now how can i make each row clickable? Ofter clicking on a row i want to pass the id of that user to another view to show all deatils of the selected user.
Thanks in advance.
|
|
|
|