|
|
Get it
And before posting your questions please read the guidelines mentioned
in the forum. please make your Subject as proper don't make it as Hi.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Sure - there are any number of hosting companies out there. Google can help you find some.
|
|
|
|
|
Hi,
Please tell me how i can add text like "@ www.abc.com copyright" on the top of the image when user upload his image. uploaded image saved in the folder "UserImages" on the server.
Pleaseeeeeeeeeeeeee help me...
Thanks
Pooja vaidvan
|
|
|
|
|
|
Hello everyone
I want to phrase my problem in a new way that the following code works well on the same system on debugging mode of the project but If I want to copy the url of the project and paste into new browser window without debugging mode, then the problem arises that Its shows progressing the browse folder dialog box does not appears any how. So If any one have the solution of my problem please reply me soon....
I written earlier on this topic shown below...
---------------
I am facing a problem of browse folder. Its working fine on loacalhost but when I upload my project into my client's server, the browse folder dialog box does not appears any how. It giving no error but browser progress bar shows progressing....
Is the reason behind this is I have used Shell32.dll for browse folder.. Or there is another way of implementing browse folder functionality on my project..
Thanks
following is mine code
-------------------------------------------------------
Using shell32;
protected void AddFolder_Click(object sender, EventArgs e)
{
string strPath = "";
string strCaption = "Browse a directory for uploading Album.";
//DialogResult dlgResult;
string dlgResult = "";
Shell32.ShellClass shl = new Shell32.ShellClass();
Shell32.Folder2 fld = (Shell32.Folder2)shl.BrowseForFolder(0, strCaption, 0, System.Reflection.Missing.Value);
if (fld == null)
{
dlgResult = "Cancel";//DialogResult.Cancel;
}
else
{
strPath = fld.Self.Path;
lstboxFile.Items.Add(strPath);
//strPath = "albums\\MSN Home Page";
lstboxFile.Items.Add(strPath);
BaydonConstants.hif1.Add(strPath);
dlgResult = "Ok";//DialogResult.OK;
}
}
-------------------------------------------------------
Vishnu Narayan Mishra
Software Engineer
<div class="ForumMod">modified on Monday, December 17, 2007 7:16:26 AM</div>
|
|
|
|
|
This could be a permission issue related to your client's hosting company
|
|
|
|
|
What are those permission security issues..?? How can I Trace out problem.??
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
|
Thanks a lot for sharing the nice article. I have just read it. He mentioned about how to change ASP.NET to run under medium trust. but I think the most of ASP.NET hosting doesn't change like that, isn't it? I had some experiences in using DiscountASP.NET last year.. I'm able to access the Access database using Oledb.
WebPermission is restricted. This means your application can only communicate with an address or range of addresses that you define in the <trust> element.
Do you have any idea about this line? I'm not very clear with this.
Thanks again for sharing the interesting link.
|
|
|
|
|
I am afraid my experience with hosting is very limited, The company I work in host their own solutions, so this is never a problem.but AFAIK with Meduim trust you can only connect to SQL Server but I am not sure to be honest.
|
|
|
|
|
|
1. As Bassam Saoud suggested, your hosting might not give the permission to do that.
2. You need to add your website as the trusted site in your IE even your hosting give you the permission...
3. I don't think it's good idea to use Shell32 dll in web application.
|
|
|
|
|
using this code i downloaded one mdb file,down loaded successfully but it is not able to open... one error showing that unrecognized database format.
used codes is given below
string filepath = "../App_Data/Segasys.mdb";
string filename = System.IO.Path.GetFileName(filepath);
Response.Clear();
Response.ContentType = "application/ms-access";
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
Response.Flush();
Response.WriteFile(filepath);
please advise on this issue....
thanks
surjith
|
|
|
|
|
Is the file you downloaded the same number of bytes ? If you have debugging turned on, the debug HTML sometimes gets written, try a Response.End at the end of that code.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
i have an master page and i am having a content from where i am calling a another page as popup. i am getting the popup when i am selecting a paticular date it is showing that
"Windows.opener.document.form1.txtdate is null or not an object"...
Sivaraman
|
|
|
|
|
|
Hi,
I'm making a wizard in my project using the ASP .net's wizard control. my problem is that at step 3 and 4 I want the user to just click on a link button and he should be taken to the next step. As far as taking him over on the click event is concerned, that's not an issue. but the problem is that I want to turn off the navigation button esp the next button.
How can I do that. Can anyone plz tell me that?
Thanks
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
How to design a comparison type chart using VS 2003
Thank you
|
|
|
|
|
What is a 'comparison chart'? You need to provide more information when asking a question, otherwise no one will know what you are talking about.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Sorry for not providing the details....
My database looks like this.
SNo Restaurent Items
1 Rest1 Item1
2 Rest1 Item2
3 Rest2 Item1
4 Rest2 Item3
5 Rest2 Item4
6 Rest3 Item2
7 Rest3 Item4
Which means that, Rest1 contains only Item1, Item2
Rest2 contains only Item1, Item3, Item4
Rest3 contains only Item2, Item4
And my report should be like a comparison chart.
Restaurent values on Y-axis and Item values on X-axis and inside the report,if Rest1 is having Item1, then a tick mark should be placed in that particular column .Similarly a tick mark under Item2 but null values for item3 and item4
modified on Saturday, December 15, 2007 4:38:38 AM
|
|
|
|
|
|
Hi,
This is from chandrakanth.
Actullay i am able to upload the picture into Sqlserver2005.
But i can not able to get the picture.
And i want to show the picture in Gridview.
can any one tell me what are all things have to change in my code.
here the code is
protected void btnRetrive_Click(object sender, EventArgs e)
{
IDataReader objReader;
SqlDataAdapter da = new SqlDataAdapter();
DataTable dt = new DataTable();
objReader= KF.Search.GetUserIdImages(txtuid.Text);
dt.Load(objReader);
gdvImagesRetrive.DataSource = dt;
gdvImagesRetrive.DataBind();
}
GetUserIdImages ------ that metyhod code is....
public static IDataReader GetUserIdImages(string strImageUserId)
{
try
{
byte[] imagestr;
Database objDataBase = DatabaseFactory.CreateDatabase();
DbCommand objDbCommand = objDataBase.GetStoredProcCommand("STP_KF_Images_Retrive");
objDataBase.AddInParameter(objDbCommand, "@UserId", DbType.String, strImageUserId);
IDataReader objDataReader;
objDataReader = objDataBase.ExecuteReader(objDbCommand);
while (objDataReader.Read())
{
imagestr = (byte[])objDataReader.GetValue(1);
}
return objDataReader;
objDataReader.Close();
}
catch (Exception ex)
{
throw new Exception(ex.Message.ToString());
}
}
can any one tell me what are all things sholud change.
Thanks and Regards
Chandrakanth
Chandrakanth
|
|
|
|
|
The way I do it is store the image path in the DB and then just retrieve the path an set it to the asp:image control in the Grid's ItemTemplate column.
Hope this helps !
|
|
|
|
|
Hi,
This is from chandrakanth.
Actullay i am able to upload the picture into Sqlserver2005.
But i can not able to get the picture.
can any one tell me what are all things have to change in my code.
here the code is
protected void btnRetrive_Click(object sender, EventArgs e)
{
IDataReader objReader;
SqlDataAdapter da = new SqlDataAdapter();
DataTable dt = new DataTable();
objReader= KF.Search.GetUserIdImages(txtuid.Text);
dt.Load(objReader);
gdvImagesRetrive.DataSource = dt;
gdvImagesRetrive.DataBind();
}
GetUserIdImages ------ that metyhod code is....
public static IDataReader GetUserIdImages(string strImageUserId)
{
try
{
byte[] imagestr;
Database objDataBase = DatabaseFactory.CreateDatabase();
DbCommand objDbCommand = objDataBase.GetStoredProcCommand("STP_KF_Images_Retrive");
objDataBase.AddInParameter(objDbCommand, "@UserId", DbType.String, strImageUserId);
IDataReader objDataReader;
objDataReader = objDataBase.ExecuteReader(objDbCommand);
while (objDataReader.Read())
{
imagestr = (byte[])objDataReader.GetValue(1);
}
return objDataReader;
objDataReader.Close();
}
catch (Exception ex)
{
throw new Exception(ex.Message.ToString());
}
}
can any one tell me what are all things sholud change.
Thanks and Regards
Chandrakanth
Chandrakanth
|
|
|
|