|
<asp:panel id="pnl" runat="server" xmlns:asp="#unknown">
DropDownList ddl = new Dropdownlist();
pnl.control.add(ddl);
|
|
|
|
|
i wud like to read data from the bar-code device and store it the database, help me out to find a solution.
|
|
|
|
|
|
ok i just want the data from that device to be caught
|
|
|
|
|
That show you have no idea about ASP.NET. I reiterate, you can't use ASP.NET for doing such things.
|
|
|
|
|
I use the following code to disable back in IE
In javascript i use
window.history.forward(1);
]
and on code side
protected void Page_Init(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
}
protected void Page_Load(object sender, EventArgs e)
{
Response.AddHeader("pragma", "no-cache");
Response.Expires = -1;
}
But When i move from login page to firstpage it should not retun to login page
when the back button is clicked.
right now its returning to login page.How can i avoid that.
|
|
|
|
|
|
Hi,Try to go through the following link.
http://dotnetslackers.com/articles/ajax/HandlingTheBackButtonFromServerCode.aspx
hope it helps.
|
|
|
|
|
Can You please tell me how to add Briefcase functionality to my Website?
|
|
|
|
|
I have to display images as thumbnail from a specified folder or list of files from an array
Regards
Radhakrishnan G.
|
|
|
|
|
And at which point are you having a problem?
|
|
|
|
|
my question is how can i create aspx page in runtime ?
i want to give option "add new page" to the user, where he can add a new page and control its all contents.
so i need to know how to create that aspx page in the runtime
|
|
|
|
|
hi,
I'm trying to create a folder sharing using WMI win32_share on an ASP.NET c# page.
while running it using the visual studio 2008 it works great.
But after I publish it to the IIS and run the WebPage nothing happends?!
it's seems like the page was loaded fine but checking the folder I see no share was created.
Any ideas?
I'm using .NET 3.5, visual studio 2008, c# webapplication.
IIS 6 server.
here is the code
string shareName = "Test";
string CUDir = @"D:\Test";
ManagementClass managementClass = new ManagementClass("Win32_Share");
ManagementBaseObject inParams = managementClass.GetMethodParameters("Create");
ManagementBaseObject outParams;
inParams["Description"] = "";
inParams["Name"] = shareName;
inParams["Path"] = CUDir;
inParams["Type"] = 0x0;
outParams = managementClass.InvokeMethod("Create", inParams, null);
tnx
modified on Tuesday, January 27, 2009 4:33 AM
|
|
|
|
|
The problem was on the IIS application pool.
in order for me to use Win32_share I need to setup the predefined Identity of the Application Pool to Local System. otherwise I have no premissions to use WMI.
I can also set the Configurable to a user with the right premissions to do the same.
To access the Identity you need to open the IIS Manager.
Colpase the Apllication pools and either create a new pool to be used or edit the deafult by right click and Properties.
Go to the Identity tab and choose your wish.
Also do not forget to go to under Web Sites and on your selected website/virtual directory properties to set under the Application settings the Apllication pool to the one with the new premissions.
|
|
|
|
|
e.g. datagrid to look like after name and address columns have bind to datagrid.
name l address l l l
|
|
|
|
|
in such a situation you will have to hide column after binding it...
but if you hide that column using grid property of hiding it then you wont be able to use that data in it or data will be lost on postback...
umerumerumer
|
|
|
|
|
U can use bound field.
BoundField b = new BoundField();
b.DataField = field name you would like to bind with.
b.HeaderText = " ";
datagrid.Columns.Add(b);
|
|
|
|
|
Hello everyone,
Is it possible to add a cssClass to a TreeNode?
|
|
|
|
|
Hello,
I have put a combo box on a form in VB.NET; which will be populated through oracle table "PLACENAMES". I wish that when a user types the name of place in the combo box the relevant / like place names should be auto dropped down for his selection, and if it is a new place name then this new place name should be saved in the table on pressing the enter key.
Please guide me how to achieve this feature.
Thanks & Regards
Girish
|
|
|
|
|
For solving your first query, set the following properties of combobox :
cboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend
cboBox1.AutoCompleteSource = AutoCompleteSource.ListItems
and for 2nd query follow these steps :
1. Handle KeyUp event and catch for Enter Key.
2. If enter key is pressed then check if selected value of combobox is nothing
means, item does not belongs to list.
3. If item does not belongs to list then code your logic for adding it to database.
|
|
|
|
|
Thanks for your valuable answer.
Meanwhile I placed a new textbox i.e Textbox11 and code like following: (invrst is my ADODB.recordset name)
Private Sub TextBox11_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox11.TextChanged
Dim strField As String = "PLACENAME"
ComboBox4.Items.Clear()
If TextBox11.TextLength = 0 Then
ComboBox4.Items.Add("<blank>")
ComboBox4.DroppedDown = False
ComboBox4.MaxDropDownItems = 4
Me.Cursor = Cursors.Arrow
End If
If TextBox11.TextLength <> 0 Then
invrst.Filter = strField & " like '" & Trim(TextBox11.Text) & "%'"
invrst.MoveFirst()
Do While Not invrst.EOF
ComboBox4.Items.Add(invrst.Fields(0).Value)
invrst.MoveNext()
Loop
ComboBox4.DroppedDown = True
ComboBox4.MaxDropDownItems = 4
Me.Cursor = Cursors.Arrow 'It is mandatory because setting droppeddown=true case mouse pointer to hourglass
End If
Me.Cursor = Cursors.Arrow
End Sub
I am trying to achieve the feature like address bar of browser i.e. if there is reference of visited page then it comes to the top of list otherwise it will be appened in the cache list.
In the above code, problem is if there are more items in combobox is dropped down over other controls of the form and looks bad; even i have set MaxDropDownItems=4.While;
ComboBox4.AutoCompleteMode = AutoCompleteMode.SuggestAppend
ComboBox4.AutoCompleteSource = AutoCompleteSource.ListItems
is working fine but two problems:
1.I am not able to write the code for add a new place name in the table.
2.I click on combobox and then type few chars in the combobox then another list comes over main list area and it makes something confusing.
Please quote your valuable views.
Thansk & Regards
Girish
|
|
|
|
|
I have a requiredfield validator in my form which is not firing at all while clicking on the Submit button. The CausesValidationProperty is true for the button control. The rfv is checking against a textbox and that is also set correct in the rfv property. However, the star appears after the postback. Any idea what's happening? Am I doing anything wrong here? Please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Is the CausesValidation property for the textbox set to true ?
|
|
|
|
|
Yes. It is set to True.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Ideally it should work when you have a text box attached to a RFV. Make sure that the button is not calling a client side javascript which in turn submits the page...
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|