|
Displaying binary data directly in ASP is a bit hairy. I'd stick with an <img tag; View Source in IE to see what the path is, and check the data list to see if it's formatting your HTML as text - there should be a property in there somewhere. Again, View Source will help you out. My instinct is that it's some kind of HTML formatting issue.
|
|
|
|
|
hi all
plz i'v 2 datagrid
i want work with 2 tables.
so i've team and shampionliugue
when i choose 1 team from 1 datagrid
in the second datagrid the shampionliugue will display in it.
plz how to do it????
|
|
|
|
|
cheikhanio wrote: shampionliugue
LOL.
You want to catch a click event on datagrid one, and then use a value selected from that row, to select the data to show in grid two.
ChampionshipLeague.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hi,
I have a Td, which Iam converting it to edit mode.And Iam giving a textarea by which User can type along with the Old string in td.
But the problem is the textarea is not getting fixed to the Td.
I have given overflow:auto even set width and height to 100%
however if I press enter button in textarea itz getting fixed to Td.
so I tried using "/r/n" which is next line still the problem persists..
Can any one tell me how to INSERT A ENTER to the end of a String in Javascript? or is there any other solutions
Thanks in Advance
|
|
|
|
|
Hello all,
i want to now how i can have some thing be similar to bulleted list that it filter my data be similar to dropdownlist.
for example i have this list of item for subject of book:
computer book
children book
i want when i click on one of them(for example computer) i navigate to another page that be have sub group of computer book subject that it filtered by it's id:
Software
Hardware
Network
that in this page exist a data list that when i click software,in datalist comes subject of book for example related to software.
i try do this, but i wasn't successful,i'm not sure what Control is suitable for this work too.
i used bulleted list and i try behave with it be similar to drop down list and data lists in 2 pages
please help me...
Thank you
Hoda
|
|
|
|
|
I would use a repeater to generate my bullet list, if you are doing it from a data source. Then I'd render links that post back to allow you to create the behaviour you're after
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
hi all of you;
i am developing asp.net webpage with ajax component.
i have one update panel. On the update panel i have dropdownlists,
radiobuttons, and Textboxes and one button.
i want to give a message if some of the parts are not filled.
but on button clicking page is refreshing and data which is inside of textbox is clearing.
Textboxes work with ajax cleander also.
Only textboxes values are clearing, the other parts is not clearing when the page is refreshing.
How can i solve this problem?
are there any one to help me.
|
|
|
|
|
Hi
i need to check the information on a web page and access information to text box on this web, by code.
how can i do that in c#?
thanks.
|
|
|
|
|
Is it your web page and you are writing the server side code? If so the server side code is the same as writing a C# application with forms:
string str = textBox1.text;
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
Thanks Dan
Its a client side. i need to open the site as a regular internet user do, on screen.
check the information on screen and access to txtbox with no human intervention.
how to do that?
|
|
|
|
|
You can download the the web page using a httpWebRequest object (I think thats its name - its definitely close).
Parse the web page that is returned for the name of the textbox and then parse its value - that should do it.
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
Hi there,
Ok.. not really too grate on the C# / Generics bit.. so feel free to laugh!
I have a simple idea.. a stupid implementation!
I am trying to create a generic method to cache something (i.e. string, hashtable, etc), and the a simple method to return that cached generic value without unboxing.
So I have something like:
(Create method)
public void add<T>(string ID, T itemAdd)
{
Cache.Insert(ID, itemAdd);
}
(Retrieve method)
public void ret<T>(string ID, T itemBack)
{
itemBack = Cache.Get(ID);
}
Okay, okay, I know that doesn't look right, and the only way I can get it to work is:
public void ret<T>(string ID, T itemBack)
{
itemBack = (T)Cache.Get(ID);
}
Obviously the way it works is by unboxing the cache item back rather than some "generics" magic.
As I said, I am not an expert, and I have been searching to find references to this albeit not
too successfully as I am probably asking the wrong question!
Any ideas, or laughs at my stupidity most welcome! </t></t></t>
|
|
|
|
|
More fun... actualy found that in an ASP.NET page, you can of course do the following with the Cache object:
Cache.Cast<T> which takes the content of the Cache and makes it available to whatever generic type you need.
Also, got around (albeit I'm guessing not necessarily a best practice) the Cache retrieval part within a class using HTTPruntime and the following:
public T getCache<T>(string CacheID)
{
if (CacheID != null)
{
return (T)Cache.Get(CacheID);
}
else
{
return default(T);
}
}
Not pretty.. but works... the only thing now is finding out WHY and if I SHOULD !!!
|
|
|
|
|
|
I installed .Net framework 3.0 but not getting the templates of WCF WPF etc. What extra configuration is to be done for that.
Bijay Bhaskar Deo
Thanks & Regard
|
|
|
|
|
This is not the right forum for this question. However, I'm in a good mood so I'll answer it - you need to download the VS2005 extensions here[^] assuming you are using VS2005.
|
|
|
|
|
hi all, i have made asp.net application in C#. suppose my site adress is
"abc.com"
I have pages related to admin and user but there are no folder, there
are internal page links on my site, like login link, when login link is
clicked within site user is redirected to "abc.com/login.aspx" and this
appear as it is on Ie browser bar, what i want is it should
"abc.com/admin/login.aspx" or "abc.com" (change browser bar adress and use
httpcontext.rewritepath() method),
There more similar situations like this but that is simplest, i know
other solution of that instead of login.aspx, link href should be
"/admin/login.aspx" but i dont want this solution and use
httpcontext.Rewritepath() method.
what i am intrested is href should be "abc.com/login.aspx" but afer
clicking on link and on post back Browser bar should display
"abc.com/admin/login.aspx" or only "abc.com", i want change values from
browser bar.
i hope you understand this problem i am doing this asp.net C#.
Regards.
Tasleem Arif
|
|
|
|
|
The autoeventwireup , if it is set to false , it will not execute the code written in the page load function , and reverse is true.
My question is , how should i implement this case in the project and in which situation i should use it?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Pankaj Garg wrote: how should i implement this case in the projec
you have create your own eventhandler and
delegte it to execute function. you have also create some custome property , if its true then you should delegete to that function else not.
Pankaj Garg wrote: which situation i should use it?
if you check "FileSystemWatcher" components in C# windows application, it has raised event like "Create, Delete , Rename and Changed" and according to that it delegate to some function.
Now there is a property EnableRaisingEvents . if you set it to yes then it will raised those events.
hope this clears you !!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
hai,
i am doing texteditor concept it return error message in
---->A potentially dangerous Request.Form value was detected from the client (HamHtmlEditor1:ContentHtml="dfdfdfd
i will search the google it return to set -->validateRequest="false"
i set it work fine ,i solve my error ,but i host website in my project. it is not work.the empty page display to me..
if you know the code or answer replay to me....
thank you
|
|
|
|
|
your problem is not clear . can you please inform it in details ?
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
i am using -->
]]>
]]>
]]>
<title>WebForm1
<uc1:hamhtmleditor id="HamHtmlEditor1" runat="server">
<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Button" validationgroup="1">
c# coding:
protected void Button1_Click(object sender, EventArgs e)
{
string ss = ((hamHtmlEditor)this.FindControl("HamHtmlEditor1")).ContentInnerHtml;
con.Open();
SqlCommand cmd = new SqlCommand("insert into mail values('" + ss.ToString() + "')", con);
cmd.ExecuteNonQuery();
con.Close();
Response.Redirect("mailfinal.aspx");
}
i am using text editor .if i give the string it is accept.but i give
czvcvcv
it not accept it display the error----->
A potentially dangerous Request.Form value was detected from the client (HamHtmlEditor1:ContentHtml="dfdfdf
so how to slove the problem.if you replay it will help to me...thank you
|
|
|
|
|
add ValidateRequest="False" in page directive. Hope will solve your problem.
good luck !!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
thank you..it work fine in local system..but i host website to my project i didn't get the text.the empty space store to the database in the server...
so help me...thank you..
|
|
|
|
|
Which Editor Control R u using ? is it any third part control or you developed that ?
Which browser are you using ? does that control support your bowser?
Please check !~!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|