|
there are lots of ways for that.
u can use one label in repeater control make it visible=false. and bind ID to text of label.
another way is directly bind Id to link..
<asp:hyperlink id="testhlnk" runat="server" navigateurl="<%# "test.aspx?MYID=" & DataBinder.Eval(Container.DataItem, "ID")%>" text="It's MY" target="_self">
Thanks,
Sun Rays
|
|
|
|
|
Hey,
Hope i understood you question!! If not, correct me.
Infact, you need to display the ID value in repeater control for some reasons (to be captured in javascript or so). For that, you have to apply CSS.
Thanks,
Ziyad
|
|
|
|
|
Hi guys,
I'm developing a small site for someone who made the mistake of hosting with GoDaddy. I am unable to make any outbound connections for WebRequest and stuff from Godaddy.
<br />
<br />
String strResult;<br />
<br />
WebResponse objResponse;<br />
<br />
WebRequest objRequest =<br />
System.Net.HttpWebRequest.Create("http://www.google.com");<br />
<br />
objRequest.Proxy = new<br />
WebProxy("https://64.202.165.130:3128");<br />
<br />
WebProxy("https://64.202.165.130:3128");<br />
<br />
WebProxy("http://wc-v01.inet.mesa1.gdg:3128");<br />
<br />
WebProxy("https://wc-v01.inet.mesa1.gdg:3128");<br />
<br />
objResponse = objRequest.GetResponse();<br />
<br />
dispose the object <br />
<br />
<br />
using (StreamReader sr = new<br />
StreamReader(objResponse.GetResponseStream()))<br />
<br />
{<br />
<br />
strResult = sr.ReadToEnd();<br />
<br />
StreamReader<br />
<br />
sr.Close();<br />
<br />
}<br />
<br />
Response.Write(strResult);<br />
<br />
I used that code to test f I could make outbound connections. On my IIS it worked fine but when I uploaded it gave "Could not connect kind of error". I did comment out all the Proxy code when I ran it on my IIS. GoDaddy has a Proxy server. I've tried all combinations to make it work but it doesn't. GoDaddy claims its a coding error. Is there a simpler code to test whether I ca n make outbound connections froma particular server or something.
|
|
|
|
|
Hi
I have an image control and i try to draw a slice.Could you tell me what's wrong?
Bitmap bmp = new Bitmap(100,100);
Graphics g = Graphics.FromImage(bmp);
g.FillPie(Brushes.Azure, 10, 10, 10, 10, 0, 20);
bmp.Save("imagine.gif");
Image1.ImageUrl = "imagine.gif";
Thanks
|
|
|
|
|
What makes you think that there's something wrong?
---
single minded; short sighted; long gone;
|
|
|
|
|
hmm..because it doesn't work? :-P
|
|
|
|
|
What do you mean by "doesn't work" exactly? What happens? Doesn't it draw the way that you expected? Do you get an error message? Does the computer crash and burn?
---
single minded; short sighted; long gone;
|
|
|
|
|
it just shows there is an image control but that's it.Doesn't draw anything.Just like when you can't see the picture and you have tou right-click it and choose show picture which in this case doesn't work.
|
|
|
|
|
Use Server.MapPath to get the physical address from your virtual address, so that the image is saved in the web folder. Otherwise it's saved in the work directory of the ASP.NET enginge, which probably is something like "c:\Windows\System32\".
---
single minded; short sighted; long gone;
|
|
|
|
|
Dear all,
i have created an xml file on my server to help me work offline, now i need to upload this file to the client machine
how could i do this???
|
|
|
|
|
What do you mean? You could Xcopy?
|
|
|
|
|
Public Shared vas As String
the code shar val in all setion
i want shar in one setion not all
Plz help me
Ahmed El-Badry
|
|
|
|
|
What do you mean by section in this case?
If you want the variable to be local to the object, just remove the Shared keyword.
---
single minded; short sighted; long gone;
|
|
|
|
|
i want shar like cookes
or send me a sample in cooke
V thnx
Ahmed El-Badry
|
|
|
|
|
Oh, so by "setion", you mean session, not section?
If you remove the Shared keyword, the variable will be local to the object, and therefore also local to the thread. Each request that comes to the server is handled in a separate thread.
If you want to keep the value from one request to another, on a user basis, you have to use session variables or cookies.
---
single minded; short sighted; long gone;
|
|
|
|
|
how use session variables give me a ex
bad english sooooooooorye
thnx u
Ahmed El-Badry
|
|
|
|
|
You create a session variable by adding a value to the collection:
Session["answer"] = 42;
As session variables are of type object, you have to cast them to the correct type when you read them:
int answer = (int)Session["answer"];
You can remove a variable from the collection:
Session.Remove("answer");
You can also remove all variables:
Session.RemoveAll();
---
single minded; short sighted; long gone;
|
|
|
|
|
Thank you very much to help me
Ahmed El-Badry
|
|
|
|
|
I have added a CSS class to Selected Node Style Property of a TreeViewControl
But it's not working.I have given the appropriate path in the page.But the background of the selected node does not change.the CSS is just simple
.SelNode
{
background-color:Black;
}
monir
|
|
|
|
|
hi!
While developing project in asp.net 2.0 using c#.
I used Collapsible panel extender, ajax control. But the problem is that ,When Panel is expanded rest of the page scrolls down .
I don't want this to happen, rest of the page should remain as it is.
Please suggest some solution.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
Encapsulate your control in a DIV so that your problem would be resolved
Thanks,
Ziyad
|
|
|
|
|
Hi I developed a web application using 1280x1024 resolution. But the end user uses a different resolution which makes the page go into horizontal and vertical scrolls. Is there anyway I can make my webapp to resize based on user screen resolution?
Raj D
|
|
|
|
|
HI,
I have some text in a textbox that is reading directly from a database. My application is supposed to allow user to update this text, so it directly affects in the database content.
Now in my text there are some special characters like : , ' href < >. The code works fine as long as the text data in the text box does not contain these characters. As soon as it encounters data with these characters it does not update the database, any suggestions to tackle this. I already tried, <pages validaterequest="false"> in web.config with no success
Raj D
|
|
|
|
|
dasumohan wrote: As soon as it encounters data with these characters it does not update the database
It would be helpful if you described exactly what is happening, not just what is not happening.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks for the response
I have text box reading text content from database. When I change the text in the textbox and do update, it does not update in the database. I traced the problem to special characters like : and ' in the text field. When the text in the text field does not contain these special characters, it works fine. How to get around these special characters?
Raj D
|
|
|
|