|
No. You'd need to open a new window with just that placeholder in it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
please help me more. i dont see anything that i need
|
|
|
|
|
i can creat a new html page but i dont know how can i send the values to another html page. can any body help me???
|
|
|
|
|
It seems to me that you don't know what you're doing and should buy a beginners book, just abandon the project you're on for now.
You would create a page that passes a value on the URL telling it how to query for the same data to populate the control you want to print.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hello
How can i set the login page as the default page in the browser. if the user writes the path for another page then he is redirected to the login page. how can i do that??
please help
Thank you
|
|
|
|
|
You have to write your own code about user athentification which checks user's login.
I Love T-SQL
|
|
|
|
|
You need to set the authentication mode variable in the web.config. Have a look at the msdn reference for these settings:
<authentication mode="Forms">
<forms name="MyApplication" loginurl="login.aspx" protection="All" timeout="120" />
</authentication>
Regards, Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
Hai,
In my asp.Net application, i am using javascript for some of the webforms. When i run the application in some browsers where javascript is disabled, my application may not execute for some of the users browser.
So how can i avoid this problem by cross checking the browsers , that too in the application during runtime.
If anyone knows the solution means can i get a piece of codes to solve this problem..
Is there any other way to solve this problem ,without altering my codes (javascript ) in my application.
VanithaVasu
|
|
|
|
|
Do you need to enable programatically javascript if it is disabled on browser?
I Love T-SQL
|
|
|
|
|
yes. First i want to check whether it is enabled or disabled and if it is disabled i have to enable the javascript.
VanithaVasu
|
|
|
|
|
VanithaVasu wrote: i have to enable the javascript.
You can not. At best, you can tell the user that your website has a requirement to use ActiveScripting to perform properly. To allow your website to use Scriptability or not is upto the discretion of the web surfer.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I have used Gridview to that will show a data from the Database, but in the configuration I specify that the WHERE Clause must be
SQL Expression Value
[Username] = @Username Session("Username")
Who can I put the Session value inside this statement (I want to use it hard coded, but I don't know what to write in the page.aspx.cs file?
Thanks a lot for your cooperation.
Best regards,
|
|
|
|
|
|
Where should I put it?
Because I have define it(I used static on for testing) inside
Page_Load(.....)
{
Session["Username"] = "lll";
}
But it does not show the Gridview.
|
|
|
|
|
Put it before you bind GridView.
Session["Username"]="lll";<br />
.<br />
.<br />
.<br />
GridView1.DataBind();
I Love T-SQL
|
|
|
|
|
If you want to hardcode the parameter in the query, dont use a session parameter, just switch to sourcemode in the form designer (Shift + F7) and find the sql query, and add the where clause
Or why are you using a sessionparameter?
Alexei Rodriguez
|
|
|
|
|
I have created a form using a panel. The form contains several textboxes and labels (name of the fields) and also three buttons (first one: Insert, second one: Reset, third one: Cancel). I have also added one RequiredFieldValidator on one of the textboxes which is the primary key. When I write something on the textboxes except required filed (that has RequiredFieldValidator) then I pressed Reset it gives shows me the message of RequiredFieldValidator or even when I pressed Cancel it gives me the same thing. How can I handle this (means when pressing Reset it will reset all the fields without showing the message and when pressing Cancel it will reset all the fields and make the panel invisible)?
Thanks in advance for your help.
Best regards,
|
|
|
|
|
For the cancel and Reset button u can set the cause validation property to false so that when u click these button the required field validator will not be checked.By default cause validation property for all buttons will be set to true. So we have to change it.
And for insert button the only way is you have to alternatively visible true or false, for the required field validator.
VanithaVasu
|
|
|
|
|
Hi All,
I have a gridview
it contains : Empid, Code, Status and status column is a item template and it bind data fom databse.
let say if my status is active if i click on it i wants to popup (confirm msg by java script)are u sure inactive this employee then after clicking yes , it should display it code in 2nd popup using java script.
My code given below:
==========For binding data in link button=================
<itemtemplate>
<asp:LinkButton ID="lnkDelete" runat="server" CommandArgument='<%# Eval("Action") %>'
CommandName="Select" onClientClick="ok()" Text='<%# Bind("Action") %>' >Action</asp:LinkButton>
</itemtemplate>
==============================
<script language="javascript" type="text/javascript">
function ok()
{
var action = "<grid action="" column="" value="">";
var code ="grid code column value";
if (confirm("Are you sure ?") == false)
{
window.event.returnValue = false;
return false;
}
alert (code);
}
</script>
==============================
I have to store action as data displaying in gridview and code from gridview.
Thanks,
sampad...
|
|
|
|
|
hi,
I've a problem figuring out how to design my website's interface.
I have a menu control that's horizontal..it takes the whole width of the screen and right under it I have datagrid that also takes the whole width of the screen, so my problem is that new items are added in the menu regularly so that means the menu will be too wide for the screen..so I was thinking of converting it to a vertical menu but my problem is that the grid also takes the whole screen so I don't know where exactly to put it so this means it's gonna take part of the width that the grid takes?
So I can't imagine where to put it exactly...any suggestions..maybe some links to websites as examples..
thanks
|
|
|
|
|
My Firefox turns the textbox bkcolor to yellow by default. If I'm changing it programtically, it doesn't work. All server controls. Any clue?
|
|
|
|
|
Smith# wrote: bkcolor to yellow
Is there a Google Toolbar that is installed?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
my table td is like below
i want to make visible at run time
<td class="blackText" id="cct1" style="visibility: hidden">;
i have tryed with below,its not works
str = "<script language=javascript>"
str = str + "function PopWindow()"
str = str + "{"
str = str + "document.getElementById(cct1).style.visibility='visible';"
str = str + "document.getElementById(cct2).style.visibility='visible';"
str = str + "}"
str = str + ""
Page.RegisterStartupScript("str", str.ToString())
please help me for this situation
parthiban
|
|
|
|
|
|
i want with push a button i can print a html page. do anybody know how can i do this?
|
|
|
|