|
How to run the program in the debug directory directly. I dont know how to run it in that way. Can you please help me or give me some idea?
Thanks a lot.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Go to C:\DEV\QUTU\Apps\QuarterlyUpdate\Ftg.Systems.QUTransUnionDataViewer\bin\Debug\ in Explorer and doubleclick
Ftg.Systems.QUTransUnionDataViewer.exe
The reason I asked is that sometimes paths in the config files will behave differently when run normally as opposed to being run is the debugger, especially if you use any System paths (doesn't look like that's the case here, though).
One thing I can say now, though, is if you don't have \CannedReports\TU.CANNED.SUCCESS.pgp and \CannedReports\TU.CANNED.ERROR.pgp also sitting in the debug directory, they won't be found by the program when running from within VisualStudio.
|
|
|
|
|
I have double clicked it still its giving me the same error
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Well, then, it's gone beyond me for the moment.
This http://www.codeproject.com/KB/aspnet/ConfigSections.aspx might help more.
|
|
|
|
|
Where did you put your CongifurationHandler class? Is it in a separate assembly (.dll) or is it in the same assembly as your app?
|
|
|
|
|
Hello. I need to develop an sms application to send sms to all customers phone numbers immediately an item comes into stock. Please i need to understand the basics. How to cut out sms resellers and develop my own. please its important and urgent.
Thank you for your anticipated response and clear help.\
kind regards
hassan
stay jacking
|
|
|
|
|
|
Don't cross post, you have asked the same question in the C# forum.
|
|
|
|
|
hi
I want read the file base64 and show on the image control
thanks
|
|
|
|
|
Use a generic handler to read the base64 encoded image , decode it and output it to the browser. Feel free to use Session or Request to pass parameters to the handler to determine which file to read.
If you use ASP.NET 4 you can use the very convenient MemoryStream.CopyTo()-method, in versions below you'll have to do the copying yourself.
In your webform you can use it like this: <asp:Image ImageUrl="Base64ImageHandler.ashx" runat="server" /> (using the HTML img-element works too ofcourse)
<%@ WebHandler Language="C#" Class="Base64ImageHandler" %>
using System;
using System.Web;
using System.IO;
public class Base64ImageHandler : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "image/jpeg";
string data64 = File.ReadAllText(@"e:\flotspe\www\images\5base64.txt");
byte[] data = Convert.FromBase64String(data64);
using (MemoryStream ms=new MemoryStream(data)) {
ms.CopyTo(context.Response.OutputStream);
}
}
public bool IsReusable {
get {
return false;
}
}
private static void CopyStream(Stream input, Stream output) {
byte[] buffer = new byte[32768];
while (true) {
int read = input.Read(buffer, 0, buffer.Length);
if (read <= 0)
return;
output.Write(buffer, 0, read);
}
}
}
|
|
|
|
|
As an alternative to using a generic handler you could also embed the base64-code directly into the src-attribute of the img element.
trivial example:
using System;
using System.IO;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e) {
string data64 = File.ReadAllText(@"e:\flotspe\www\images\5base64.txt");
this.form1.Controls.Add(new Image() { ImageUrl = string.Format("data:image/jpg;base64,{0}",data64) });
}
}
for more information about data URI scheme's see http://en.wikipedia.org/wiki/Data:_URI_scheme[^]
|
|
|
|
|
I am making simple board by using gridview.
gridview support page index and this function is good.
I am setting PageSize to 10.
1.
I want to add function which can move first page and last page.(<, >)
For example <(move first page) 1 2 3 4 >(move last page)
2. if pageSize is 2, and result row number is 100.
Pageindex will have many. such like blow.
1 2 3 4 5 6 7 8 9 10...
So i want to show 5 index such as 1 2 3 4 5 >
Is it possible?
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
buffering83 wrote: Is it possible?
Yes it is possible.
You need to create your own pager template (user control).
There are lot of good Article about paging here in Code Project.
Best luck.
|
|
|
|
|
hi
I want create html file form aspx file
|
|
|
|
|
Hi,
try this code below, if your page name is "signin.aspx" than
StringWriter sw = new StringWriter();
HttpContext.Current.Server.Execute("~/signin.aspx",sw,true);
String renderedHtml=sw.ToString();
|
|
|
|
|
Perhaps if you explained what is you are trying to accomplish we could assist you better.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I am sorry for asking such an obvious question, and (frustratingly) I KNOW what I am looking for is on this website somewhere already, but could anyone be good enough to point me at a good article for writing a base page class for an ASP.NET base page?
Best wishes, Patrick
|
|
|
|
|
Have a look these links. Might be useful.
Link 1[^]
Link 2[^]
Regards,
TweakBird
***** Posted 50000th post in GIT O_O ******
|
|
|
|
|
Patrick Skelton wrote: I am looking for is on this website
I guess you missed this "on this website"
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: you missed this "on this website"
Yes. I missed it.
Regards,
TweakBird
***** Posted 50000th post in GIT O_O ******
|
|
|
|
|
|
Thanks for those links. Very useful. I think the one on 4GuysFromRolla was the one I read originally. I think I was mistaken about it being on CodeProject.
Thanks again.
Best wishes, Patrick
|
|
|
|
|
Patrick Skelton wrote: I think the one on 4GuysFromRolla was the one I read originally.
Next time, Bookmark it!
You can flame me whichever way you want and I wouldn't care a bit.
But if you group me with some idiots, I'll turn into your worst nightmare.
|
|
|
|
|
I thought I had. I am, however, human.
|
|
|
|
|
I use the following code in order to conncet my asp.net website to facebook
string appId = "xxx";
string[] extendedPermissions = new[] { "publish_stream", "offline_access" };
var oauth = new FacebookOAuthClient { AppId = appId };
var parameters = new Dictionary<string, object>
{
{ "response_type", "token" },
{ "display", "popup" }
};
if (extendedPermissions != null && extendedPermissions.Length > 0)
{
var scope = new StringBuilder();
scope.Append(string.Join(",", extendedPermissions));
parameters["scope"] = scope.ToString();
}
var loginUrl = oauth.GetLoginUrl(parameters);
Response.Redirect(loginUrl.AbsoluteUri);
but when I run this I get a login page(full page altough I set the display property to "popup"), and after login I redirected to a page which is not my website page(http://www.facebook.com/connect/login_success.html#access_token=xxx;expires_in=0). The page includes the word "succeed" only...
|
|
|
|