|
</head>
use this code inside head tag in html
Thanks,
Mini
|
|
|
|
|
use this code inside head tag in html
Thanks,
Mini
|
|
|
|
|
Dear all
i opened a pop up window using the javascript function window.open fired by clicking on an image button
the pop up window contains a form, i fill the data and save, i want the button "save" to close the window and refresh the main page that opened the pop up
how can i do that?
what functions do i need?
Thanx in advance
Best Regards
3ala2
|
|
|
|
|
You can't do that. If you close the window from the save button, the form will never get posted back to the server. Also, if you refresh the main page before posting the form, the changes will not show up on the main page as it will be loaded before the changes are made.
What you need to do is to put some Javascript in the page that is produced as a response after the form has been posted. The Javascript is simple:
window.opener.location.reload(true);window.close();
---
b { font-weight: normal; }
|
|
|
|
|
That works fine ...
Thank u very much
Best Regards
3ala2
|
|
|
|
|
Hii every body
I need help so fast as you all can I am working on my owen website and I have created a menu using java script and it getting so slow and overload I want replace it with new one but I need it to be so easy to be create and do not cause any overload on the homepage .
So any one please have any way to do that tell me how to
Thanks in command
|
|
|
|
|
does using query string in url of SieMapNode of Web.sitemap file correct?
Like This:
SiteMapNode title="My Page" url="MyPage.aspx?ID=1"
as when i made this and binded the file to SiteMapPath Control then
the SiteMapPath control does not appear when I Run the Page which url in Web.siteMap file contain Query String so how can i fix this matter
as i need to use QueryString in web.sitemap file
thanks in advance
-- modified at 4:12 Monday 16th October, 2006
|
|
|
|
|
can i know how can i view the source code of the web page in the browser window using asp. is it any file present +developed using asp
i know that by right clicking the mouse i can view but what is actually behind it.
athivak
|
|
|
|
|
You want the server code? There used to be a bug in iis 4 that would let you see the unprocessed file by calling $DATA after the file name but this has long since been fixed. I think your out of luck here. This would be a huge security problem to see the server code from the client. Because the server file is processed by the ASP dll and spits out HTML all you get to the browser is the raw HTML
|
|
|
|
|
In my site, I have placed my aspx files in folders.When I publish my site Visual Studio puts one assembly in Bin(folder) for each folder.These assembly files have some random and meaningless names.I cant recognize which assembly belogs to which folder unless I use disassembler.So I have problem updating site since when I want to change the code for some page I dont know to replace which assembly.Is there anyway for VS to give a clear name to those assemblies ?
If someone know an article about updating site in ASP.NET 2 please help me ??
|
|
|
|
|
|
Hi..
How could I convert the value of a textbox in JavaScript to a number so I can compare it as a number for eg.: if(textbox1.value< 18) ?
I am too late but i will never give up
|
|
|
|
|
If the textbox is supposed to contain only integers, you can use the parseInt function to convert it.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you very much ..this helped me alot to accomplish my javascript validation
I am too late but i will never give up
|
|
|
|
|
I'm trying to make the data which appears in datagrid linkable in such a way when i click on it it will execute some sql command and redirect to same page but it will display another datagrid depending on the sql command I specify could anyone help me out in this matter .
S.Mohamed Radhi
|
|
|
|
|
You can make in the data grid item template a hyperlink control that has a command arg and command name and then handle the command using a method like this:
public void hyperlink_Click(object sender,CommandEventArgs e)
{
if(e.CommandName=="MyCommand")
ExecuteMyProcedure();
}
Where ExecuteMyProcedure() is the method that you should design to execute the stored procedure and you can use the results in QueryString to be redirected to the page as you wish.
I have wrote the code from my memory so you should check it to be shoor using good refrences.
I am too late but i will never give up
|
|
|
|
|
hi
I have a datalist. Linkbuttuon inside it. On clikc of which i need to fll up a data repeater with images of particular id .(commandargument of linkbutton is id) Now I need to do this same with href. Means I want to put href instead of linkbutton .so
I want fun() calls the codebehind method which fills up datarepeater with images of particular id. But I dont want this to be ajax method as it wont access server controls in code behind. means if fun('id') calls FillUp() in code behind which is declared as ajax method then i wont be able to get repeater access in it . Now i m trapped here. Neither I can use ajax nor I want to use linkbutton as on its mouseover i get javascript_dopostback() comes which need to be removed. so plz suggest any alternative ?
Prob 1 : put linkbutton but remove javascript_dopostback() from status bar on mouseover.
Prob 2 : If use anchor instead linkbutton then how to fill up repeater with javascript method.
plz help .
regards,
max
|
|
|
|
|
I tried to use push model to create crystal reports in our project. For that i got sample code from our codeproject forum.
-----------------------------------------------------
private void Page_Load(object sender, System.EventArgs e)
{
CrystalReport1 report=new CrystalReport1();
CrystalReportViewer1.Visible=true;
DataSet ds=new DataSet("Account");//give same name as on
//dataset1 table header
DataTable table=new DataTable("Account");//give same name as on
//dataset1 table header
table.Columns.Add("Fname",typeof(System.String));
table.Columns.Add("Lname",typeof(System.String));
table.Columns.Add("Salary",typeof(System.String));
DataRow row=table.NewRow();
row["Fname"]="Mathew";
row["Lname"]="Hayden";
row["Salary"]="5000$";
// add to table
table.Rows.Add(row);
ds.Tables.Add(table);
// set report's dataset
report.SetDataSource(ds);
// set report source
CrystalReportViewer1.ReportSource =report
-----------------------------------------------------
But in my project i cant create object for the crytal report
like this "CrystalReport1 report=new CrystalReport1();". i am struggling with this 2 days. Could you help me.
Jey
|
|
|
|
|
Hello...
Can someone tell me how to save and retrieve a gif/doc file to a my sql server. i need to upload resume and photograph through my form.
Nizha
Nizha
|
|
|
|
|
pls find below url,
http://support.microsoft.com/kb/317670/en-us
Parwej Ahamad
|
|
|
|
|
|
Hello !!
I've one Image control on form.
I'm using FileUpload control to browse an image.
I want to display the selected image in the Image control when I click on Open Button in DialogBox(which opens after clicking Browse button).
Waiting for answer...!
|
|
|
|
|
u can do in two
1) direct set the path of image control url to filecontrol.path
or
2) first save on local machine on default location with the help of map path and then set imageurl to default path
parwej ahamad
|
|
|
|
|
u can do in two way
1) direct set the path of image control url to filecontrol.path
or
2) first save on local machine on default location with the help of map path and then set imageurl to default path
parwej ahamad
|
|
|
|
|
Thanx
pls Tell me where to write code for assigning path to imageurl?
And how to get path which is displayed in that textbox? because FileUpload control has property FileName which gives only file name but how to get whole path???
|
|
|
|