|
i hav three dropdown list country,state and city with out update panel my password will erased and if i use update panel my state ddl is not filter by country i already googled but i my organization all other sites are blocked only asp.net and cp is runnin.........
plz help..........
|
|
|
|
|
bhavnvyas wrote: i hav three dropdown list country,state and city with out update panel my password will erased and if i use update panel my state ddl is not filter by country
I didn't get your question. can you please rephrase the question ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thnx for rep........
in my application i have user detail fields like user name password city state and country in this i hav to maintain password text even after page load. my page loades when i select Country India from India state dropdown list will bind and same for city so now INDIA>MAHARASTRA>PUNE but due to this my password field will be erased.
|
|
|
|
|
Try this:
Take 2 update panels.
Put all user details related controls in one update panel and password related controls in second one.
In this way, when you select an item from drop down list only the first update panel will refresh.
|
|
|
|
|
|
Set that function public
public void funName()
{
}
Mohammad Khansari
|
|
|
|
|
First check the scope of the methods you want to access by creating the object.
And if every thing seems to be fine then post some relevant code of the class and how you are trying to access the methods.
|
|
|
|
|
You Dont Have Rights To delete the message..!
Its very rude
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi,
How can i apply the different colors on the text of single textbox while the user is typing.
Thanks,
Sonia
modified on Saturday, December 19, 2009 2:38 AM
|
|
|
|
|
|
You should be able to assign a CSS style to textbox to control the colour of the text.
You could have a new style activated using an event handler.
|
|
|
|
|
I want to have one word in green second in red and third in black in the textbox.
How can i do this.
Sonia
|
|
|
|
|
Not sure you can do this on a live textbox.
|
|
|
|
|
Hey.
I have one table in MySql Database.
I have two field.
documentBinary LongBlob
documentContentType varchar
My code to download file.
byte[] data = (byte[])Dt.Rows[0]["documentBinary"];
System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearHeaders();
response.ClearContent();
response.Clear();
response.ContentType = Dt.Rows[0]["documentContentType"].ToString();
response.AppendHeader("Content-Disposition",
"attachment; filename=" + Dt.Rows[0]["titel"].ToString() + ".pdf; size=" + data.Length.ToString());
response.BinaryWrite(data);
response.Flush();
response.End();
When I download file,File is downloaded successfully but not open in pdf format.
Please look at my code and tell me where I am going wrong.
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Whether PDF is installed in your system.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Yes. It is installed. When I open file it shows me that file is corrupted.
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Check by check points and find can u you able to retreive the data from MYSQL.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Sathesh Sakthivel wrote: Check by check points and find can u you able to retreive the data from MYSQL.
Everything works file, file is created also, but does not open. It shows me that file is corrupted or not supported.
please don't forget to vote on the post that helped you.
|
|
|
|
|
I have a question.. I am trying to add items to a dropdownlist or select box and then when someone pushes the submit button (ASP.net button) it gets the list of items.
The problem is it doesn't work like that. It doesn't see any of the items. What I am doing is populating one dropdownlist with peoples names and email addresses from active directory (name == text, email == value). When you select the name and click add (HTML button) it adds the email to my other dropdownlist with javascript:
function btnAddEmail_onclick() {
var cbCCEmails = document.getElementById("cbCCEmails");
var dropUserEmails = document.getElementById("<%= dropUserEmails.ClientID %>");
var SelectedIndex = dropUserEmails.selectedIndex;
var Email = dropUserEmails(SelectedIndex).value;
var Name = dropUserEmails(SelectedIndex).text;
if (SelectedIndex != -1)
{
cbCCEmails.options.add(new Option(Email, Name));
dropUserEmails.remove(SelectedIndex);
}
}
Now the code you see above takes the name from one box and adds the email to another one (cbCCEmails).
Now in the code behind im trying to loop through each ListItem. What I am tryign to do is CC all the emails in that listbox:
for (int i = 0; i < cbCCEmails.Items.Count; i++)
{
if (String.IsNullOrEmpty(CCEmails))
CCEmails = cbCCEmails.Items[i].Text;
else
CCEmails += "," + cbCCEmails.Items[i].Text;
mm.CC.Add(new MailAddress(cbCCEmails.Items[i].Text));
}
Please ignore the CCEmails string.. that is used for inserting into a database.
I understand that i am losing the values on postback beacuse of the button, but how do I retain those values? ViewState is enabled but autopostback is not since im adding it with javascript. Teh reason I am using javascript on that side is because posting back takes to long and is slow
|
|
|
|
|
Use hidden variables for your scenario.Assign the values from javascript and you'll able to access from codebehind also.
Cheers!!
Brij
|
|
|
|
|
I'm more of a windows developer.. so I take it hidden variables is saving the results to one textbox or something?
So each time someone adds the email, append it to a textbox, then on the postback get the items from the textbox and split it by a comma (if that is how I seperated them)?
|
|
|
|
|
I can't find wizard control in tool box [Visualstudio2008].
I have already added it but not showing in my tool box.
please advice
|
|
|
|
|
See the following.It might be of help
Click here
Cheers!!
Brij
|
|
|
|
|
He is talking abt Web Application And You are talking abt Windows application..! check your answer..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
You No need To add it will come under Login Controls..!If it not there u need to repair the Visual studio..!
You are talking abt web application right?
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|