|
I am using two grids in my program.Here is the code on page load and buttonevent.
My problem is ,ican display ccode,cname in the first grid,and by selecting ccode with checkboxes from first grid,
i am displaying cname in the 2nd datagrid.
---->>>html code is
<asp:datagrid id="dgscreens" runat="server" width="348px" height="200px" datakeyfield="screen_id"
autogeneratecolumns="false" cellpadding="2" headerstyle-backcolor="Black" headerstyle-forecolor="White"
headerstyle-horizontalalign="Center" headerstyle-font-bold="True" oneditcommand="dgscreens_edit"
style="Z-INDEX: 103; LEFT: 40px; POSITION: absolute; TOP: 140px">
<headerstyle font-bold="True" horizontalalign="Center" forecolor="White" backcolor="Black">
<columns>
<asp:templatecolumn headertext="Select">
<itemtemplate>
<asp:checkbox id="chekbox1" runat="server">
<asp:boundcolumn datafield="ccode" readonly="True" headertext="code">
<asp:boundcolumn datafield="cname" readonly="True" headertext="CrName">
->>>>the code is as below,on pageload
Dim strsql As String
Dim cmd As SqlCommand
Dim dr1 As SqlDataReader
strsql = "Select CCode,CName from CMaster order by ccode"
cmd = New SqlCommand(strsql, dbconn)
dr1 = cmd.ExecuteReader()
dgscreens.DataSource = dr1
dgscreens.DataBind()
dr1.Close()
->>>>on buttonclick(Means for the second grid)
Dim dgItem As DataGridItem
Dim chkSelected As CheckBox
Dim sel_ccode As integer
Dim strSQL1 As String = ""
For Each dgItem In dgscreens.Items
chkSelected = dgItem.FindControl("chekbox1")
If chkSelected.Checked Then
sel_ccode = dgscreens.DataKeys(dgItem.ItemIndex).ToString()
strSQL1 = "Select CName from CMaster WHERE ccode=" & sel_ccode & ""
Dim cmd1 As SqlCommand = New SqlCommand(strSQL1, dbconn)
Dim dr2 As SqlDataReader = cmd1.ExecuteReader()
DG.DataSource = dr2
DG.DataBind()
End If
Next
kissy
|
|
|
|
|
Hai,
My web page contains large data.so it takes more time to load.I want to display an message to user.ie)Please wait page is loading.....with one GIF image.I want to show this image for each time when the page is loading.
Thanks............
|
|
|
|
|
|
You might want to look into why the page is taking so long, instead of a hacky workaround.
|
|
|
|
|
There are many posts for this exact question. This is obviously homework.
|
|
|
|
|
in my web page m retrieving thousands of records thats why it is taking much time (25 to 35 sec) in the mean time i want to display a hourglass.
pls give me some idea
thank u
|
|
|
|
|
People here usually don't do homework for others.
|
|
|
|
|
In datagid there is a hyperlink column. I want to open a gif file in internet explorer, by clicking on this hyperlink column
aasstt
|
|
|
|
|
what is the problem? You didn't mention the problem. What have you done so far?
|
|
|
|
|
Hi all
I have publish my website and want to test to it. A error encounter
Could not load the assembly 'App_Web_spz_qkdk'. Make sure that it is compiled before accessing the page.
even i have set the debug="false";
please help me how could i handle this problem.
Thanks in Advandce to all of u.
regards,
srinadan
|
|
|
|
|
It appears 'App_Web_spz_qkdk.dll' is missing in the bin folder of your website...
Maybe you've removed a dll of a seperate component from you're bin folder or something from a diffrent web project... numerous of reasons to find...
|
|
|
|
|
hi Eduard Keilholz,
"App_Web_spz_qkdk.dll" is available in the bin folder.
but i am not getting why this problem.
thanks for support
srinandan
|
|
|
|
|
Is the web folder's application set? Is it using the correct .NET version?
|
|
|
|
|
Hi i have two radiobtns namely CCRadiobtn and PORadiobtn,also two panels one for CCPanel another for POPanel.
default is CCRadiobtn is checked so its corresponding Panel is enabled.
if i click PORadiobtn, then it is disabling the CCPanel and Enabling the POPanel.
Next time if i will check CCRadiobtn it is not enabling the CCPanel and not disabling the POPanel.
i.e postback event is not fired.
i given autopostback="true" for both the radiobtns
can any body give the solution for this.
Regards
Dayakar D.N
|
|
|
|
|
post some of the code, including the radiobutton definitions and event definitions for the radiobuttons.
|
|
|
|
|
hi,
in my web application made in asp.net 1.1
i want to save any web page (by passing URL of the web page) as an image.
later i would also show it in my browser.
how can that be achieved?
thanks & regards,
kapil thakur
|
|
|
|
|
Instead of image, you can look up HTH files.
|
|
|
|
|
I am student of final year engineering student. I selected “SMS Website” as my project topic. In this I have to send Bulk SMS through website and provide other kind of services related to SMS.
Please tell me which steps I should follow.
Please send me some material or any kind of source code related to it.
I need your help.
Thank you!!!
Contact Me: ashish.0619@gmail.com
|
|
|
|
|
|
kirthikirthi wrote: Chk This May it will help u
please don't SMS the board and explain yourself in plain readable english so that everybody can read and understand you.
|
|
|
|
|
Are you sure that a project? What school are you going to, SPAM University?
|
|
|
|
|
I have a big project in vs.net. I want to cut it into two project..
But how I call the page between the two project..? And use the same Session value between them?
|
|
|
|
|
Make 2 separate projects like projectONE & projectTWO
do the designing and coding in both projects.
now include the dll of projectTWO in \bin folder of projectONE. Also add the all the aspx pages of projectTWO in first project.
u can access the Session variables & querystrings across the two forms just like a single project.
suppose u declare a session variable in WebForm1.aspx of projectONE. like Session("UserName") = "Jack"
u can access this session variable in WebForm2.aspx of projectTWO (which you have added in first project) as :
dim name as string = Session("UserName")
note :
if you want to make any design changes in html of WebForm2.aspx of second project.............then you will have to open projectTWO.....make neccessary changes and again add the dll's and web forms in projectONE.
hope it was of help.
for further help, you can mail at thakur.kapil@gmail.com
|
|
|
|
|
why I have to add the all the aspx pages of projectTWO in first project?
|
|
|
|
|
hello u forget to set the autopostback property of the checkbox control...
chkAutoPostBack = true;
VMSSanthosh
VMSSanthosh
|
|
|
|