|
You need to upload the files into wwwroot, if not specified from IIS console explicitely.
The default website location points to wwwroot directory..
If you have filemanager to upload, then dont bother about the root directory, just upload the files.. create folder just following your directory structure .
After you upload everything.. I hope it will work.
|
|
|
|
|
Got my 5, b/c i don't see why this got a 1.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks mate... .
I dont know why few people downvote even without replying the reason, even though I always try to help as much as I can.....
|
|
|
|
|
i have tried it many ways as mentioned in different sites seacrhing in google.one solution mentioned in this site also.In many sites they have asked to place this
(top:expression(this.offsetParent.scrollTop);})
in css.
But while adding this line its saying :expression is not valid value for top property.
please give a sol for this and it should be working for firefox.
|
|
|
|
|
I don't understand your requirement. Do you want to place header row in a fixed position while scrolling? Then you may need to implement something like floating div. Please search "floating div" on google.
|
|
|
|
|
|
I have a website (c#) that dynamically creates and opens excel reports. In these reports, some of the cells contain hyperlinks. When the cell's link is clicked, a new dynamic excel file is to pop open containing detailed information about the cell the user clicked on in the original file.
My plan was to create a hyperlink to a .net webpage like the following:
http://www.mySite.com/GenerateNewExcel.aspx?cellId=245&report=Report2
Then, this new webpage would generate a new report and pop it open based on the parameters passed into it.
Is this the best way to go about this? If so, how can I create a page that can achieve this (or is there perhaps a search "term" that describes this process that you can provide me with to help)?
Thanks.
|
|
|
|
|
Are you using MS office interop libraries to create excel file? Then there is a hyperlink property for worksheet. Check this[^]
|
|
|
|
|
Hi Kannan.
Thanks for the response, however my issue is actually what I should do after I click the hyperlink.
The hyperlink would need to open a new dynamically generated excel file that contains details of the value inside the cell.
So my thought was to create a webpage that I could link to that automatically pops open a 2nd excel file based on the parameters passed into it. I'm just not sure if this is the best approach or if there's a better way to go about this.
Thanks again.
|
|
|
|
|
That depends on the system and client requirements. It is difficult to evaluate the best method with out having the idea of your implementation. But in my personal opinion, a web page is more flexible for future modification.
|
|
|
|
|
Hi All,
According our requirement we have to use three UserControls in a page,like Categories,shops,and few features as three usercontrols respectively.in the same page if select categories and click on next button it shud show next usercontrol then we have to select shops and if click next,it shud go to features control fine.
Now again i want to come back the previous control if we select "Back" button
Can i do the "Back"-button thing as i am doing now for "Next" -button,i mean i coded everything to get the next control.Like wise i can get previous too
But i want to know whether any other way is there to get this?
Let me know,if there
Thanks In Advance,
Yamuna
|
|
|
|
|
You can set the query string on the click of the buttons. Then in the load event check the value and load control accordingly.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
You can use button onclick="javascript:history.go(-1)" to work the same way as your back button.
But I personally suggest not to rely too much on history object. If user deletes cache.. back will not work. Rather implement back button to point to the location just prior to it so that it calls the proper page rather than using Cached page of the browser.
|
|
|
|
|
Hi...
I have textbox for password and textmode = password. when the page is posted back value goes and textbox remains empty. i want to retrieve this value on postback and would set this value again to textbox.
please guide me
thanks,
By:
Hemant Thaker
|
|
|
|
|
TBOMK, you can't set the text in a password field
only two letters away from being an asset
|
|
|
|
|
There's a very nice extension of a text box in an article right here on CP that allows for this. As the article points out, it is usually not advisable to set the text in a password box, but the control is a useful arrow to have in your quiver for those times when it is not.
|
|
|
|
|
Hi Hemant,
Why you wanna retain password field on paostback , obviously you can store it in a hidden control ,
but the password field is never supposed to work in this way
|
|
|
|
|
Nishant Singh wrote: Why you wanna retain password field on paostback ,
Although the advice is good, and well meant, the idea that any of us can tell the client, "you can't have a password input that retains its value," is far-fetched. We are supposed to solve the client's problems, not create new ones and if they can imagine it, then we should be able to program it.
Of course the above is my opinion and worth every penny you paid for it.
|
|
|
|
|
Hi to all,
I want to add sms service in my application, I have API of sms service, but i dont know how implement it. please help me!
Farogh Haider
Web developer
|
|
|
|
|
API or service?
There are services available that let you send messages.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
farogh123 wrote: I have API of sms service, but i dont know how implement it.
So why are you asking us and not them ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Farida , You can implement it using the Value First SMS API like the following code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SMS.aspx.cs" Inherits="SMS.SMS" ValidateRequest="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>SMS Pace Client API Version 1.2</title>
</head>
<body>
<form action="http://api.myvaluefirst.com/psms/servlet/psms.Eservice2" method="post" runat="server">
<textarea name="data" cols="60" rows="16">
="1.0"="ISO-8859-1"
<!DOCTYPE MESSAGE SYSTEM "http://127.0.0.1:80/psms/dtd/messagev12.dtd">
<MESSAGE VER="1.2">
<USER USERNAME="" PASSWORD=""/>
<SMS UDH="0" CODING="1" TEXT="" PROPERTY="0" ID="1">
<ADDRESS FROM="ASPNetApp" TO="919831012345" SEQ="1" TAG="some clientside random data"/>
</SMS>
</MESSAGE>
</textarea>
<INPUT TYPE="SUBMIT" name="action" value="send"/>
</form>
</body>
</html>
|
|
|
|
|
hi all.,
this is how i inserted images into sql.. and displayed thumbnail in image control..
byte[] img = new byte[FileUpload1.PostedFile.ContentLength];
HttpPostedFile postfile = FileUpload1.PostedFile;
postfile.InputStream.Read(img, 0, (int)FileUpload1.PostedFile.ContentLength);
System.Drawing.Image img12 = System.Drawing.Image.FromStream(FileUpload1.PostedFile.InputStream);
SqlCommand cmd = new SqlCommand("insert into image11 (type,name,length,byte) values(@type,@name,@length,@byte)", cnn);
cmd.Parameters.Add("@type", SqlDbType.VarChar).Value = FileUpload1.PostedFile.ContentType;
cmd.Parameters.Add("@name", SqlDbType.VarChar).Value = FileUpload1.PostedFile.FileName;
cmd.Parameters.Add("@length", SqlDbType.VarChar).Value = FileUpload1.PostedFile.ContentLength;
cmd.Parameters.Add("@byte", SqlDbType.Image, img.Length).Value = img;
cnn.Open();
cmd.ExecuteNonQuery();
cnn.Close();
DataTable dtTemp = new DataTable("TempImage");
dtTemp.Columns.Add("Image", System.Type.GetType("System.Byte[]"));
DataRow dr = dtTemp.NewRow();
dr[0] = img;
dtTemp.Rows.Add(dr);
Session["dt"] = dtTemp;
Image1.ImageUrl = "de.aspx?id=0";
im trying get image to a image control
but im unable to retrive that image from database i tried using handler.ashx
|
|
|
|
|
madhukk wrote: im trying get image to a image control
Did You write code in
madhukk wrote: Image1.ImageUrl = "de.aspx?id=0";
To show the image..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi Madhukk,
Please visit this site.
http://www.aspsnippets.com/post/2009/02/21/Display-Images-from-Database-using-ASPNet.aspx
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
|
|
|
|