|
How did you solve this, as i also need to work this way.
Thanks
|
|
|
|
|
Erhm, strange that the required field validator shows a message although the user did enter a value in the field... I think something else is wrong, since a required field validator should only show a message when the field is left empty.
|
|
|
|
|
Hi
How to access session variable values from c# class file.
Regards
RPL
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
HttpContext.Current.Session
|
|
|
|
|
thanks MIHAI_MTZ. ya its a great idea
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
I'm writting a custom databound control. If I a name a property "LegendStartupAnimationType" it will not be properly serialized/deserialized at design-time (at runtime it works ok). If I change any letter in the property name it works ok. What is really strange is that I found about 6 different property names that behave the same way, so I kind of rule out reserved words or anything like that.
Does anyone know what exactly is going on?
|
|
|
|
|
i have dropped a database with the query
drop database db_test
can i get back the db ? if so, how ?
Please help me, its urgent.
hello
|
|
|
|
|
First of all, that is not a smart think to do!!
In your best case, there's still an MDB file of the database somewhere on your harddrive which you can attach, otherwise I hope you've created a backup file, cause usually the drop statement really drops the database (and thus listens to your command).
Good luck!
|
|
|
|
|
Hi
I have a Web User Control (ascx) that sits on my Master Page. It displays a summary of what's in the user's shopping cart. I want the ascx's summary to update as soon as the current page makes a change to the shopping cart. I noticed that the ascx wasn't updating until the next page load after the one that updates the cart, because the code I wrote to display the summary was in the .ascx's OnLoad, and this fires BEFORE the Page's OnLoad (where there is code to update the cart). So I put the .ascx summary code in it's OnPreRender and now it updates as I want it to, because the ascx's OnPreRender fires after the Page's OnLoad.
Although this works it seems like a bit of a hack. Is this the correct way to update the ascx's contents, or is there some other better way of doing it?
|
|
|
|
|
I don't know if this is the best approach, but have your tried loading the control at runtime??
Replace the control on your website with a container (a panel for example) and let's assume you name the panel pnlCartContent.
<br />
Control ctrlCartContent = null;<br />
<br />
try<br />
{<br />
ctrlCartContent = LoadControl("relative/path/to/control.ascx");<br />
pnlCartContent.Controls.Add(ctrlCartContent);<br />
}<br />
catch (Exception ex)<br />
{<br />
response.write("Damn, those exceptions!<br>"+ex.Message);<br />
}<br />
Have fun!
|
|
|
|
|
Thanks for your reply Eduard.
This would seem to work too, but still feels like a little bit of a hack. I'll just use OnPreRender for now.
Cheers!
|
|
|
|
|
Hi
write ur code here of Button_click event
Pathan
|
|
|
|
|
---------On DayRender Event--------
Iam Using This to get Check boxes
CalendarDay d = ((DayRenderEventArgs)e).Day;
string sID = "chbx" + e.Day.Date.ToString("yyyyMMdd");
cb.ID = sID;
DateTime theDate = e.Day.Date;
e.Cell.Controls.Add(cb);
This loop for selected date
foreach (DateTime d in cal.SelectedDates)
{
}
srinivas
|
|
|
|
|
I have a WebcontrolsImageMap containing a image from an URL. I now want to create an Image object containing the Image from the ImageMap. Any ideas how this is possible?
____________
TmG
|
|
|
|
|
Have you considered opening a bitmap object from the URL??
<br />
string sDrivePath = Server.MapPath("relative/image/url.jpg");<br />
Bitmap bmpYourImage = null;<br />
if (File.Exists(sDrivePath))<br />
bmpYourImage = new Bitmap(sDrivePath);<br />
You can then create a new Image object from the Bitmap object, sounds good to me
|
|
|
|
|
Tnx, sounds like a great Idea, but my URL is longer than 260 chars and I therefore get a System.IO.PathTooLongException. I have no way to pysically shorten the URL, because it is from a web resource...
TmG
|
|
|
|
|
Now we're facing an entirely diffrent problem... and to be hounest, not a problem I ran into yet, so I'll leave it up to the other guys for now.. sry..
|
|
|
|
|
Problem solved.
I used Keilholz approach and solved the URL length exception by creating the image based on inputstream (With the URL as source). I were then able to store the image locally on the web server.
Thank you for your help!
TmG
|
|
|
|
|
hi friends
i want to collapse and expand tree view without page reload.
it is done whene i set showExpandCollapse=true and plush sign appear.
I want to expand and collapse tree view onclick event of Parent node ,not on plus sign click event.
I have also done it by code but page is reloaded.
Plz give me right solution
Thanks in advance
PaTHaN
|
|
|
|
|
Hi
You have to done it using javascript there are many solutions the thing is you have to search on google.
|
|
|
|
|
Hello.
Anyone knowing how to interact with yahoo group and ASP.NET?
We have one page , from that user should be able to submit username and password.
with this credentials Result should be All the Groups in which that user belongs to should come.
Means submitting the yahoo username and password.
It should display list of all the Groups in which this user belongs to.
plus all the information related to these groups.
Thanks in Advance.
Malay
|
|
|
|
|
i want create templet coulmn in my datagrid with programing and dynamically.
and i want put a dropdownlist in edititem templet and put a label in item templet in each column. how can do this work
|
|
|
|
|
|
This will add the template column in datagrid
Dim tempcol As New TemplateColumn
tempcol.HeaderText = "Runtime Display"
DataGrid1.Columns.AddAt(2, tempcol)
second in itemcreated event write
Dim lbl As New Label
lbl.Text = "Testing"
e.Item.Cells(2).Controls.Add(lbl)
and last use editcommand to add dropdownlist
e.Item.Cells(2).Controls.Add(New DropDownList)
i hope this will work
|
|
|
|
|
hai
iam using form authetication
iam having around 3-5 users
only those users would be having accessing the app
i want to know where these form credentials would be stored
with regards
ravi
|
|
|
|