|
I have a table row tag with three td blocks, and below a tr with two td blocks.
On the second tr, I want the td blocks to run all the way across the screen, but it stops level with the end of the end of the second td block in the preceeding tr.
?
Am I being dim?
------------------------------------
<b>I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel.</b> Dalek Dave
|
|
|
|
|
<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="2"></td>
</tr>
</table>
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote:
That's it!
I just couldn't remember, as I say it was very late at the time.
Cheers.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
what is the newer version for this?
It is compiling but bitching in the Error List.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
CssClass. If you aren't using CSS then shame on you!
|
|
|
|
|
Shame on me.
I will remedy it with gusto and aplomb!
Thanks.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Hy,
i have to open a page and remove its tool bar at runtime.is there any way i can do it while using response.redirect as i cannot ue window.open
|
|
|
|
|
You can always set the visibility of a control, either from the code-behind or via javascript. Response.Redirect has nothing to do with it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thnks for the reply...but can u tell me how to make the tool bar visbilty false in code behind
|
|
|
|
|
No
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
you need to use JavaScript and it will only work for a popup window. - else you cant do it "Security Issues".
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
It is not possible to programmatically hide the menubar or toolbar on a window that is already open. I found similar JS from the net but it is for Netscape:
function showmenu()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
window.menubar.visible=true;
window.directories.visible=true;
window.statusbar.visible=true;
...
and I do not know if it works. (who's using Netscape anyway? Official support for Netscape ended on March 1st, 2008.)
Remember, your work is not yours alone. Somewhere, there are some codes written by others amongst us that depends on your work. By failing to see that you are part of their ecosystem, you are bound to break their code. *http://dotnetrandz.blogspot.com*
modified on Friday, March 26, 2010 4:00 AM
|
|
|
|
|
I am using the asp.net mvc framework and like it so far, however there are times that I need to use a code behind page. mainly for my gridview events and such. MVC does not use or recommend using code behind pages. So my question is, how would I put the events for my gridview, or any code that is in my code behine, in my usercontrol and aspx pages?
Would it be as simple as this:
UserControl sample:
<br />
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ai_dcs_isets.Models.dcs_users>" ><br><br />
<%@ Register Src="PopUpBox.ascx" TagName="PopUpBox" TagPrefix="uc1" ><Br><br />
<uc1:PopUpBox ID="PopUpBox" runat="server" ShowCloseButton="true" /><br><br />
<br />
<script language="C#" runat="server"><br><br />
void page_load(Object sender, EventArgs args)<br><br />
{<br />
<br />
<br />
}<br />
<br />
</script><br />
if so, what is going to keep these events in order if my user control is apart of a page that has it's own page_load or other events? Would my gridview events be a mere copy and paste from code behind to the script area?
Sorry if this is a basic question, web development has never really been my main development.
Thanks for the help.
|
|
|
|
|
MVC does not include code-behind for a good reason; asking to use it violates the concepts and principles of the pattern.
What events are you trying to use?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I agree, which is why I need to put what code I was going to use in code behind, in my usercontrol and aspx pages.
The code right now that I need to use:
<br />
void Page_Load(object sender, EventArgs e)<br />
{<br />
<br />
}<br />
<br />
void GridView1_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
<br />
}<br />
<br />
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)<br />
{<br />
<br />
}<br />
<br />
And possibly RowCreated event.<br />
Right now it is just this. Some of my code I could move to the Controller and also most can be handled in the Model itself, but events like this I am not sure what to do with.
Thanks for the time.
|
|
|
|
|
There is essential no need to handle these events with code-behind, or code-in front
RowCreated is already being done as the view is being rendered
The other events can be handled with JavaScript or by the controller. SelectedIndexChanged I can see being handled with JavaScript.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I understand rowcreated is already being created for me, but there are a few columns that I need to check the value of each time it is created and modify it if needed. RowCreated is generally where this would be done.
I will look for some grid events that can be handled by javascript. I wasn't aware this could be done.
Thanks again for the time and help.
|
|
|
|
|
I would evaluate the need for using a GridView control. These [^]links may provide some guidance.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Great idea, thank you for the link - seems like something I can use.
|
|
|
|
|
I want to open Pdf file from iframe. i have used this code where i am taking path from my application.
string strOutPutPath = "../MPMA/MPMA Inventory/" + Session["Filename"].ToString() + ".pdf";
ifrm1.Attributes.Add("src", strOutPutPath);
Inside MPMA Inventory all pdf files are there.
Session giving my filename.
But this is perfectally working if i am taking path from my application.
But if i want to take path from server what should i do?Like i want server path instead of "../MPMA/MPMA Inventory/".
|
|
|
|
|
raghvendrapanda wrote: i want server path
What do you mean?
Server.MapPath ??
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
The main problem is i am able to acess a pdf file in iframe only when itz saved in my project..i want to knw how to get the file and show it whn itz not saved in the project.
|
|
|
|
|
What do you mean not saved in the project? Are you trying to display a PDF from memory? Or is it located at a physical location? If the latter, then get the path and display it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
The files do not have to be in 'my project' but they do have to be in an internet share that have the proper permsissions set.
IIS and aspnet do not have full run of the OS and can not directly access server paths as you mentioned without punching some big holes in security.
So. Create a share, set permissions and you are good to go.
|
|
|
|
|
HI All,
I am testing my application on IE8 which was made in IE6 environment.While giving print preview on one page,it missed some text from text box on IE8.The text box is multi-line.can some one help me on how to solve that and render complete text on print preview.
Hurry..!!!!
|
|
|
|