|
I am NewUserWizard control in my website.After entering the required data at run time Data gets stored into sql server database by default.Now i want to change the default database SQL server to Access databse How to do this?
Pls help me out.
GIRISh
|
|
|
|
|
Hi all guys,
I am trying to get the index of the listbox,
after I selected RadioButton that has Autopostback=true.
Here is some code.....
string titleColor = this.titleColorList.Items[this.titleColorList.SelectedIndex].Text;
And then I tried to show the result: Transparent
The Transparent is the first member of list or it has index=0
It took me for hours still don't know how to get it work.
Anybody know how to resolve this problem?
Any help would be appreciated.
Thank you very much.
-- modified at 6:02 Friday 15th June, 2007
junior boy
|
|
|
|
|
set EnableViewState of your dropdownlist to true, it will save the value after the page load. If it is not what you need, I did not well understood
|
|
|
|
|
The listbox dropdownlist still keep and showing what member I selected after postback but when I tried to show what exactly selectedIndex is, it shows me the first index, it wasn't the index of the selected value.
Regard,
junior boy
|
|
|
|
|
why you don't do just this?
string titleColor = this.titleColorList.SelectedValue;
|
|
|
|
|
Hi,
Try this
In page load try to use
if(!page.Ispostback) and inside it try to keep the your code ...it may work.....
Goutham
|
|
|
|
|
Thank you very sir,
Not I got it worked
Actually I have tried to use SelecteValue but I didn't get it work somehow
but now I tried it again and it work well.
Thank you very much and really appreciated.
junior boy
|
|
|
|
|
It looks like the dropdownlist is getting rebound in Page_Load even on Postback. Can you check whether you could bypass this by using IsPostback property so that the control is resurrected of its values from the ViewState statebag?
|
|
|
|
|
Hi,
Please help me out from this
Iam using skmmenu control.when i am in partitucalar page that submenu item should remain highlighted.
Suppose if i am in HOME ..that HOME subitem should remain highlted..for highlighting i want to use a gif or jpeg image ....
Pls help me on how to do this
Goutham
|
|
|
|
|
Hi
am calling webform2 from webform1
and now i want to return value selected in the ddl of webform 2 to webform1
webform1:
btnsubmit.attributes.add("Onclick","javascript:opennewwindow();");
javascript of webform1:
window.open("webform2.aspx?="+cname,"aa","ht,widht...)
Webform 2:
i am loading the ddl with the help of query string passed from webform1
now how to send the selected value of ddl to webform 1 from webform2
Thanks for you help
|
|
|
|
|
First Put a frame.aspx in between child and parent form and do the following.
Use this in ur child form:
function AddDeptDesg()
{
var dept = document.all("<%=cmbDeptName.ClientID%>");
var desg = document.all("<%=cmbDesgName.ClientID%>");
var MyArgs = new Array();
MyArgs[0] = dept.options[dept.selectedIndex].value;
MyArgs[1] = desg.options[desg.selectedIndex].value;
window.returnValue = MyArgs;
window.close();
}
On Parent form:
function ChooseDept()
{
var winSettings = "dialogWidth:400px;dialogHeight:250px; help: no; status: no";
var values = window.showModalDialog("DeptFrame.aspx"," ", winSettings);
if(values)
{
values[0] += "," + values[1];
document.all("htxtDept").value = values[0];
return true;
}
else
{
return false;
}
}
|
|
|
|
|
hello everyone,
I have a doubt regarding Updating of GridView.
My doubt is: How to update all the coloums at a time to database in GridView.Plz write code in c#.
Plz help clear this solution, very urgent for me.
OK byee
Thank Q,
Murali
Murali
|
|
|
|
|
There is many ways and one of them is u can read the Gridview and store the values in string variable seperated by comma and then split it while saving.
Hope it helps u...
|
|
|
|
|
Thankq for u reply.
But i need the code for it.Plz post code.
ok byee
Murali
|
|
|
|
|
use this:
For intGridRowcnt = 1 To GridViewQuery.Rows.Count
ml_strValue = ml_strValue & GridView1.DataKeys(intGridRowcnt - 1).Item("ID").ToString() & "$"
ml_strValue = ml_strValue & gvClientInvoice.DataKeys(intGridRowcnt - 1).Item("Name").ToString()
ml_strValue = ml_strValue & "^"
Next
For saving in DB:
arrSplitRows = ClientInvoiceDetails.Split("^")
For i As Int16 = 0 To arrSplitRows.Length - 1
Dim strTemp As String = ""
strSql = ""
strTemp = arrSplitRows(i).ToString
arrSplitsRights = strTemp.Split("$")
'Your Query here.
Next
Hope it helps u???
|
|
|
|
|
Hello,
I'm developping a web site, using masterpages and content place holders. ContentPlaceHolders I put in the table.
The problem is that in IE the content is showed only in the small part of the COntentPlaceHolder, it is cut on the right and at the bottom.
In Firefox everything is fine, tables and PlaceHolders are automatically resized.
I tryed fixed, auto and percent values for tha table style.
Firefox
IE
Where can be the problem?
Thank you
|
|
|
|
|
USE CSS properly,.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I think I am... For example, the ContentPlaceHolder in the center (where you can see "test test test") is in the cell
<td style="height: auto; width: 700px; background: #d8e9d6" valign="top" align="left">
|
|
|
|
|
Using tables is not using CSS properly!
|
|
|
|
|
badgrs wrote: Using tables is not using CSS properly!
Excuse me, I don't really understand what do you mean
|
|
|
|
|
CSS is about seperating the style of a web page from its meaning. To make best use of it you should write semantic HTML that makes sense out of context (ie without any CSS styling). This is very hard to do with ASP.NET as the built in controls output rubbish HTML but it is possible if you ignore all the built-in styling crap that M$ thought so wisely to add. Table are meant for tabular data and should only be used as such, using them for layout is not best practice and very 'Web 0.5' - don't do it!
Check out the w3schools site for a good beginners introduction to this stuff.
|
|
|
|
|
well, almost all tutorials that I found in the net used tables tu put ContentPlaceHolders in. You propose to use divs or smth else?
|
|
|
|
|
I found the root of the problem - to fill my content pages, I use resource files. If I just fill the page in the VisualStudio, it works fine everywhere, but if I take data from a resource file it works nowhere but in Firefox
|
|
|
|
|
Hi All,
Is there any possible way to create an email attachments from an URL in C# application? I'm using frame work 2.0, System.Net.Mail component.
If I attach a file from my file system, that works fine. But I have to
call a http:// url which retruns a file name. I have to attach that
file to the email.
Can any one help me with this?
Thanks in Advance.
|
|
|
|
|
Do it internally.
Try to download it on the server.
Then try to attach.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|