|
I don't think so unless somebody convince me.
you can easily crack any strong name assembly.
try ildasm *.dll /out=*.il
open *.il from notepad, remove public key section, then crack whatever you want
ilasm *.il
done!
Reflector is a nice tool to decompile *.il
|
|
|
|
|
What is reason to post this in asp.net forum as Question ?
cheers,
Abhijit
|
|
|
|
|
Hello,
I'm trying to read data from a cookie (In hebrew) but I got just garbage.
The read and write are like this:
myCookie["aa"] = ServerEncode(TxtBox1.Text);
TxtBox1.Text = Server.HtmlDecode(Request.Cookies["myCookie"]["aa"]) ;
I tried all the combination of decode and encode in the read and write but the result is the same.
When I'm opening the cookie in notepad its look right and the data is in hebrew.
Also - when I'm running the application on my local pc its look good and it read the cookie in hebrew.
Only on the server it can't read it well but I don't see any diffrence between my pc and the server.
I'm using fw2, c#.
Thanks!
|
|
|
|
|
using the globalization in the web config and adding URLEncoding/Decoding instad of htmlEncoding/Decoding.
Thanks.
roy.
|
|
|
|
|
Hi all,
I have a button In my master page which perform a search .when i click on this button the content portion's textboc vadildatios fires.How can i avoid this.
Thanks In Advance
|
|
|
|
|
Use custom validators and write an onclientclick method for the button that returns true, after setting a javascript variable that turns off validation.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Can u please help me by providing sample code,I didn't get it fully.
|
|
|
|
|
Yeah, I figured that, given that I was asking you to know ASP.NET and write code. Using validation groups is a better idea actually, I forgot about those.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Set ValidationGroup a special value for both search button ,textBox,and validator if exists in Search area.
Example:
ValidationGroup="search"
sepel
|
|
|
|
|
Hello All,
Im trying to make a simple web app so i can send emails from the website.
Im using Visual Studio 2008 / C#. I am having problems sending the email due to the problem with the web.config settings.
Within the web.config file , more specifically where the host is specified.
...what do I need to put here if I want to use a third party email like gmail and what other things do I need to add in or consider.
Initially I tried using a local host address but that didnt work either.
Best Regards + Happy New Year;
|
|
|
|
|
Why do you need anything in the web.config ? why not just write code that sets the server up ? I didn't even know you COULD set up something special in the web.config, and I've written tons of web sites that send emails.
I WOULD store the server as custom fields in the config, to make it easy to change, but I wouldn't do anything more special than storing and retrieving the server info.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Writing the code is the alternative...if Im correct, but Im having real problems trying to establish the host server.
|
|
|
|
|
Well, you need to ask your mail provider for that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all, Happy New Year
Can someone please help me with the following scenario. I do not like how the default setting is to have the select and delete button together in a grid view row so I am extending gridview (for other reasons) and am dynamically adding my own fields, select at 0, delete at columns.count - 1.
Whenever I add OnClientClick code to the delete button the button is just posting back and not firing a delete command.
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
ButtonField select = new ButtonField();
select.CommandName = "Select";
select.ButtonType = ButtonType.Image;
select.ImageUrl = Page.ClientScript.GetWebResourceUrl(GetType(), EDIT_ICON);
Columns.Insert(0, select);
ButtonField delete = new ButtonField();
delete.CommandName = "Delete";
delete.ButtonType = ButtonType.Image;
delete.ImageUrl = Page.ClientScript.GetWebResourceUrl(GetType(), DELETE_ICON);
Columns.Add(delete);
}
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
if (Page.IsPostBack == false)
{
foreach (GridViewRow row in Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
ImageButton select = row.Cells[0].Controls[0] as ImageButton;
select.ToolTip = "Modify";
select.AlternateText = "Modify";
select.CssClass = "select-button";
ImageButton delete = row.Cells[row.Cells.Count - 1].Controls[0] as ImageButton;
delete.ToolTip = "Delete";
delete.AlternateText = "Delete";
delete.CssClass = "delete-button";
}
}
}
}
Thanks,
Maurice
|
|
|
|
|
OK, I have worked out why, should have found it earlier.
The OnClientClick is being output like this when I add my own client click code:
onclick="return confirm('Are you sure you want to delete this item?\n\nClick OK to delete this item or Cancel to keep it.');javascript:__doPostBack('OrganicGridView1','Delete$0')"
So my new question is, what event do I need to hook to so I can output something like this. I could do it client side but I would rather not.
onclick="if(confirm('Are you sure you want to delete this item?\n\nClick OK to delete this item or Cancel to keep it.')) { javascript:__doPostBack('OrganicGridView1','Delete$0') }"
Thanks
Maurice
|
|
|
|
|
ok, I have tried everything I can think of and cannot do it server side. I have tried ButtonFields, TemplateFields, CommandFields and all offer different access to the button but it still renders it's own javascript that I cannot change.
So ... I have resolved it with client side code let the gridview to render it out.
If anyone requires the code, see below.
If anyone has a server side solution please let me know.
Thanks,
Maurice
Client Code:
function setupDeleteConfirmation() {
var imgs = document.getElementsByTagName('input');
for (var i in imgs) {
if (imgs[i].title == 'Delete' && imgs[i].className == 'delete-button') {
imgs[i].oldClick = imgs[i].onclick;
imgs[i].onclick = function() {
var answer = confirm('Are you sure you want to delete this item?\n\nClick OK to delete this item or Cancel to keep it.');
if (answer == true) { this.oldClick; }
return answer;
};
}
}
}
Server Code:
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if (DesignMode == false)
{
if (Page.ClientScript.IsClientScriptIncludeRegistered("_GridViewClicks") == false)
{
Page.ClientScript.RegisterClientScriptInclude("_GridViewClicks", Page.ClientScript.GetWebResourceUrl(GetType(), GRID_JS));
}
}
}
protected override void Render(HtmlTextWriter writer)
{
base.Render(writer);
writer.WriteLine("<script type="text/javascript"> // <![CDATA[");
writer.WriteLine(" setupDeleteConfirmation(); // ]]>");
writer.WriteLine("</script>");
}
|
|
|
|
|
Dear all
How can I publish my web pages (my website) using ftp program ????
Plz Answer this q as quickly as possible
Many thaaanks
|
|
|
|
|
ahlamasp wrote: Plz Answer this q as quickly as possible
Sorry for the delay, I answered as quickly as I could
only two letters away from being an asset
|
|
|
|
|
ahlamasp wrote: Plz Answer this q as quickly as possible
You're obviously mistaking this for a paid service.
ahlamasp wrote: How can I publish my web pages (my website) using ftp program ????
By getting a web host who lets you upload the pages via FTP. I know GoDaddy does. That's how I upload my changes to my website there.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Many thanks for you "Christian Graus"
|
|
|
|
|
i need to create inherit from gridview with extra properties and one column but in design time i can't see the column how i can do that
with my regards
Aloways go ahead
|
|
|
|
|
Hi all ,
How to check an email exist or not in asp.net.I know how to check the format but if there is no such email address exist,I need to redirect to page with bounce back message.Please give me code to check email exist or not.
Thanks a lot.
|
|
|
|
|
You didn't like the answers you received five days ago?
|
|
|
|
|
Oh, I see. You're retarded. I am sorry about that. Call one of your helpers, you know, the ones who change your diapers. Ask them to explain the answers you got last time, I'm sure they are used to speaking slowly enough that you can understand them. Perhaps you should refrain from posting here again, until you're able to understand plain English. Oh, and if you're being paid to write code, then you are an utter disgrace.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
can any body help me in this regard.
How can i put these facility like codeproject did.
Print and mail to friend options
Umesh
|
|
|
|