|
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???
|
|
|
|
|
filecontrol.value property.
Parwej Ahamad
|
|
|
|
|
Thanks.
But I'm using FileUpload Control and there is no any propery like value.
Pls tell the solution.
Thanking You again in advance....
|
|
|
|
|
first u make filecontrol runat server
right click on control and selectect run at serer.
if u feel more trouble then pls send me your code and description on my id
Past in message body don't attach.
g_parwez@rediffmail.com
parwej ahamad
|
|
|
|
|
how can we bind DataReader() results to a table in asp.net WebForm (in dynamic format)(without using DataAdapter())?? Please help me.... its urgent....
|
|
|
|
|
execute query from command object
like command.executereader and
dim Rd as datareader=commnad.executeread
and then bind the grid
Softy Boy
|
|
|
|
|
i would like to bind it dynamically(prefferably html table) not in a grid...is there any options??please help
|
|
|
|
|
Perhaps if you explain what it is that you want to accomplish.
An html table has no data binding capabilities.
---
b { font-weight: normal; }
|
|
|
|